Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all 8245 articles
Browse latest View live

mtilbury on "users with same email address"


Wei Hong on "Error on second redirect"

$
0
0

Hi,

My site was hacked last week and I engaged sucuri service to fix the malware issues. But after that my site is running very slow and right now have a serious issue on redirecting the page.

Here is the scenario,

If I directly key in the URL as http://www.prforaustralia.com/en/testimonial >> the page will be able to load.

however, if I key in the home directory http://www.prforaustralia.com/en and then I click on the menu bar to direct to another place. I am unable to load the page "testimonial".

Anyone have any idea how to fix this?

Thanks.

arjanvr on "Some changed admin username"

$
0
0

Hello,

On my VPS someone changed all usernames of all different wordpress installements on different websites. They changed the admin to sec-w.com i discovered when resetting the password. I cannot change this username of the admin account back and when i add a new admin user and try to delete it, it is also not possible. I have a few questions:

- How can someone change all the usernames on the server when i cannot even change it from wordpress.
- How do i change it back or delete the main account
- Does the username sec-w.com ring a bell?

Thank you

oneruffryder on "Custom tab shortcode"

$
0
0

Hi, i built the widget to display recent post tags and comments. It looks really well. Now i want from that code to custom it so i can use it for my posts. I dont want to install plugin, as i already styled this one nice.

Now i dont know how to do it, this is a problem. I tried many solutions but my php knowledge is not so good.

This is my html code

<div class="tabs tabs-style-topline">
                <nav>

<ul>
<li><a href="#section-topline-1"><span>Home</span></a></li>
<li><a href="#section-topline-2"><span>Deals</span></a></li>
<li><a href="#section-topline-3"><span>Upload</span></a></li>
<li><a href="#section-topline-4"><span>Work</span></a></li>
<li><a href="#section-topline-5"><span>Settings</span></a></li>
</ul>
                </nav>
                <div class="content-wrap">
                    <section id="section-topline-1"><p>content</p></section>
                    <section id="section-topline-2"><p>content</p></section>
                    <section id="section-topline-3"><p>content</p></section>
                    <section id="section-topline-4"><p>content</p></section>
                    <section id="section-topline-5"><p>content</p></section>
                </div><!-- /content -->
            </div><!-- /tabs -->

Now i have to i guess loop the "li" element and then take index and add it dynamically for numbers 1-x , or i am wrong ? Anyway i know this have to be done in function.php but whatever i tried, it doesnt work.

Inside the code the first -top part is for titles and the second one is for content.

I want it to be like normal tabs shortocode similar to this

[tabgroup]

[tab title="tab1"]Content[/tab]

[tab title="tab2"]Content[/tab]

[tab title="tab3"]Content[/tab]

[/tabgroup]

So, anyone knows how to do it ?

Thanks

wrian on "Meta Widget - simple adjustment . . . . ?"

batteriesInc on "Preventing access to the raw webserver 404 page"

$
0
0

(note: I suggested this simple fix should maybe become part of the WP code because it's the best place to implement it, but here it is in the meantime so you can use it)

When an external user accesses a site set up for /?page=123 style URLs, they can force the display of the site's underlying web engine 404 page by going to a page that lies "outside" WP, say site.com/abcdefg. Not only is that untidy, such default pages can sometimes contain information that can assist in working out how to hack a site.

Add the following to the root .htaccess file will force such an attempt into the WordPress generated 404 page (most themes have them in varying degrees of politeness - you can find it as 404.php in the theme directory).

# BEGIN WordPress
# Force 404s into WordPress by pointing at non-existing page reference.
ErrorDocument 404 /?page_id=999999
# END WordPress

If you run a different URL style, adjust accordingly - just make sure it points to a WordPress page that doesn't exist.

(a quick thank you to whoever runs http://www.htaccessbasics.com which made this easy to find :) ).

khan143 on "How to display the custom table data on admin panel of wordpress"

$
0
0

hi guys. I am completely new to wordpress, and stuck in a problem. please if you know the solution, then share with me.
I have created a custom table in wp database. and I am inserting the data in that table from front end and the data is successfuly inserted in table.
Now I want to retrieve the data at admin side. I have created a plugin type file for it. and showing the results. but when I give my custom table name in the "select" query, then the admin side of wp stop working and simple doesn't display anything, but when I do the same settings for any wp built in table, then it works fine.
here is my code. and please if anyone knows the solution then share.
thanks in advance.
<?php
add_action('admin_menu', 'reservation_admin_actions');
function reservation_admin_actions(){
add_options_page('Hotel Reservation', 'Hotel Reservation', 'manage_options', __FILE__, 'reservation_admin');
}
function reservation_admin(){
?>
<div class="wrap">
<h2>Hotel Reservations List</h2>
</div>
<table border="1" class="widefat">
<thead>
<tr>
<th>Date From</th>
<th>Date To</th>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
<th>Outlet</th>
<th>Subject</th>
<th>Message</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
// $qry = mysql_query("SELECT * FROM wp_reservation ORDER By id DESC");
// while($result = mysql_fetch_assoc($qry))
// {
global $wpdb;
$result = $wpdb->get_results ("SELECT * FROM wp_reservation where name != '' ORDER BY id DESC");
foreach ( $result as $data ) {
?>
<tr>
<td><?php echo $data->date_from; ?></td>
<td><?php echo $data->date_to; ?></td>
<td><?php echo $data->name; ?></td>
<td><?php echo $data->email; ?></td>
<td><?php echo $data->phone; ?></td>
<td><?php echo $data->outlet; ?></td>
<td><?php echo $data->subject; ?></td>
<td><?php echo $data->message; ?></td>
<td>id; ?>">Delete</td>
</tr>
<?php } ?>
</tbody>
</table>
<?php
}
if(isset($_GET['id'])) {
mysql_query("DELETE FROM wp_reservation WHERE id = '".$_GET['id']."'");
//header("location: index.php");
exit();
}
?>

Gregg Banse on "How to make plugin activation optional on multisite install"

$
0
0

I've written a plugin that I want to be active and available to admins of one of the websites in a multisite network. I've been trying to find the action/function to use so it won't be activated on all sites.


cinza on "Upload files to Media Library directly"

$
0
0

I have setup Advanced Custom Fields and I have an Image field. I would like to when I click it, it opens the file browser directly instead of opening the media library. Is there any way to bypass the media library panel?

katlove on "Am I reinventing the wheel? Creating lists plug in."

$
0
0

Hey WordPress Community!

I'm trying to figure out
1) If the following plug in already exists
2) If not, what the best way to go about creating it is

Plug-In Description:

A plug in that allows you to make an unordered list with a title and description that, via shortcode, you can place anywhere on your site.

It seems like this should already exist! Does it?

If not, read on:

How I'd make it:

If I were to make it myself, I'd make a CPT for "Lists" and then provide metaboxes which would capture title, description, list items, and custom css classes. The list item meta boxes would be able to be added and removed by the user, as needed. Then I'd create the shortcode that can ID the "List" custom post (somehow, not too clear on that part but I can research it) and generate the html output.

Is that the best way to do it? I don't need specifics, just to know I'm on the right track! I'm not new to code but new(ish) to WordPress.

I have been searching for a while for a plug in that does this but I haven't found one. It's also challenging to search for "list plug in" because it's quite vague.

I love to not reinvent the wheel on this one. Yet, if it's not already in existence, I'd also love any feedback on my plan should I end up coding it myself. Perhaps I can add it to the plug in directory if it's something others would find useful!

Thanks so much for taking the time to read this post. This WordPress community is amazing.

Peace,
Kat

k.ramos on "REDIRECCIONAMIENTO DE WORDPRESS"

$
0
0

Hola! no estoy segura de que esta sea la parte donde puedo poner un conflicto con mi wordpress, resulta que de repente se me re direcciono a http://es.gpoln.mx/ mi dominio es gpoln.mx y no me permite, no se que ocurre y necesito ayuda urgente, ya que mi página es referente a una gran empresa y es un proyecto a corto plazo. necesito la solución o su ayuda por favor. Gracias

gabrielwolf on "WP just removes the embedded icc profiles. Please, photographers need them!"

$
0
0

Hi core team and other fellows,

I and some other photographers have the problem, that even with the new option to use the ImageMagick engine, the embedded icc profile is striped while generating thumbnails and mid sized images. A embedded profile is now read by FF, Safari and Chrome. I tried the "ImageMagick engine" plugin aswell as the "onet regenerate thumbnails" plugin. Both also remove the profile.

Could someone provide a patch? I tried it myself but got no luck. On the command line it is easy:

(ImageMagick installed manually)

convert 1.jpg 2.jpg will create a new file and keep everything. You can resize and make some stuff, but the profile will be kept.

convert 1.jpg 1.icc will extract the profile

If you have a striped file (no profiles at all) for example
convert 1.jpg -strip 2.jpg and then import your previously extracted icc profile convert 2.jpg -profile 1.icc 3.jpg all is fine.

Core hackers or plugin developers - is this heavy to implement? A imagick PHP module driven patch is good aswell. (and if I could use the imagemagick-sharpen-resized-images plugin that would be super)

Thanks, Gabriel

lgoral1986 on "Wordpress popup plugins issue"

$
0
0

Dear All,

I am having issues with one of the websites to display any sort of popup. It used to work fine with WP Splash Image plugin (I need to display image upfront). Then I by mistake I changed url in settings and the website went down. I managed to restore it but the plugin did not work anymore. Today I decided to try multiple other solutions like WP Welcome and same story no popup when I enter the site.

I installed wordpress from scratch (fresh db, new installation) few minutes ago but looks like I have this the same problem but I run out of ideas.
Web address is: http://www.historiemowione.pl
Perhaps I am doing something wrong. Can you please help me out here? I tested it on my other web and it worked fine: http://www.onlineaid.pl

Thank you in advance for any hints and tips on how to solve it.

Regards
Lukasz

Maikel1987 on "http:// to https:// goes bad"

$
0
0

Dear,

A week ago we installed a SSL-certificate on our server. The problem is when I set our website to https:// I can't edit pages anymore. When I try to edit a page in the Wordpress toolbar I get the error that the page can't be found. The same problem occurs when I want to edit a page in the Wordpress environment itself.

Does anyone have experience with this or knows how to solve this?

Thank you in advance.

Greetings,
Maikel

wallends on "users.php not loading"

$
0
0

Hi, I recently updated my site to WP 4.0
I had noticed that I had a lot of fake users being added, so I turned off user subscription for posts, not finding any better options for the time being.

So for housekeeping, I was trying to delete the users, however, the final delete button is missing?
While tinkering with screen settings option in the users page, I increased the number from 100 to 400, and then increased the memory in the wp-config.php to 2GB.
Now my users.php page does NOT load.
I have tried deleting the wp-admin folder and re-uploading a fresh one via ftp, but no luck. Any suggestion on how I can untangle myself from this situation?


marathikavitablog on "adding excerpt or content in rss title"

$
0
0

I want to add rss excerpt to post title,any help?

icetek on "Made all my posts appear in FancyBox; Plugins don't load in iframe view-source:"

$
0
0

I made all my clicks to posts open single.php in a FancyBox modal javascript window. I'm noticing that my plugins which normally load in single.php are not loading at all in the modal window. I put a ?lightbox=1 argument to the URL for the hook. I've copied everything from added some custom CSS. Basically I engineered single.php to have everything header.php has (minus the menu creation) plus added custom CSS, with !important and max-width flags so it fits the iframe well.

Skipping get_header and doing everything up to the <body> tag did this.. I do not know what to do. When You are putting your site's single.php in a modal iframe window, you want to skip the menu and footer- content only and add custom CSS with !important to make your post area fit the size of the iframe. For some reason my plugins wont load.

kaskarino on "Disable author box from specific author"

$
0
0

I am trying to customize my new theme (SimpleMag), but i am having a serious problem.

I want to remove the author box from a specific author. Author boxes should appear for all author except 1.

Does anyone know any trick to do it?

jaaway on "Pages added by hack are not showing up in FTP files"

$
0
0

I have just recently registered our site with Google webmaster tools. After running the security scan it found two pages that may have URL injections. the problem is that these two pages, according to the FTP files do not exist. How can I find and delete these files.

emaxads on "Sessions and login status non wordpress pages"

$
0
0

Other posts on this subject are not really resolved or are old...
I currently have a legacy site that uses phpbb as a support forum with site-wide authorization and status. The site itself has many sub directories and pages i am thinking of installing a fresh wp install with bbpress and getting rid of the phpbb alltogether. I would like to have the same functionality across all the pages in the site as loged in users are delivered different content on different pages. With phpbb i use a function on pages like this one for a page in the root other directories just change root path to phpbb

define('IN_PHPBB', true);
$phpbb_root_path = './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();

if(isset($_POST['login']))
{
    $username = request_var('username', '', true);
    $password = request_var('password', '', true);
    $autologin = (!empty($_POST['autologin'])) ? true : false;

    $result = $auth->login($username, $password, $autologin);

    if ($result['status'] == LOGIN_SUCCESS)
    {
        //User was successfully logged into phpBB
        // append/replace SID
        $redirect = reapply_sid('curPageURL()');

        meta_refresh(0, $redirect);
    }
    else
    {
        $badlogin = 'bad';
    }
}
if (isset($_GET['logout'])) {
	$user->session_kill();
	$user->session_begin();
	$redirect = request_var('redirect', "index.$phpEx");
	redirect($redirect);
}

Looking if anyone has done this with Wordpress and what i might need to do. I know I will have to define cookie path but what else am i getting into any help would be greatly appreciated

Thanks Chuck

Viewing all 8245 articles
Browse latest View live




Latest Images