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

blogbyhau on ""Warning""

$
0
0

My wordpress writes this when I want to go to the worpress administration.

Warning: Missing argument 2 for wpdb::prepare(), called in /home/nannahau/public_html/wp-content/plugins/category-icons/category_icons.php on line 1047 and defined in /home/nannahau/public_html/wp-includes/wp-db.php on line 992

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/nannahau/public_html/wp-includes/wp-db.php:992) in /home/nannahau/public_html/wp-content/plugins/cleantalk-spam-protect/cleantalk.php on line 159

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/nannahau/public_html/wp-includes/wp-db.php:992) in /home/nannahau/public_html/wp-content/plugins/cleantalk-spam-protect/cleantalk.php on line 159

Warning: Cannot modify header information - headers already sent by (output started at /home/nannahau/public_html/wp-includes/wp-db.php:992) in /home/nannahau/public_html/wp-includes/pluggable.php on line 875

WHAT TO DO??


jinyuan139 on "Plugin scan file shell by keywords"

$
0
0

Anybody help me give me a link about article talk about plugin wordpress scan all file on folder wordpress find file shell(file hack) by keywords or function php file shell open use as base64_encode,...

p/s: thoi trang cao cap

whitey Hitchcock on "jp.codedculture"

$
0
0

Somehow clicking on my blog page brings up a text block from "jp.codedculture.net" that indicates it is from web mail. There is no way out of the page except click OK and then its a Spanish site to download flash. Anybody who hits the blog now gets that message.
Does anyone know anything about this? Seems like some form of malware. The blog no longer functions. Hints?

JLT80 on "Location path within external JS file"

$
0
0

Hi there

I have written my own plugin. It seems like something is going wrong with the Javascript. I have queued two JS files and one Jquery.

Within one of the external JS files I use the following script:

$(document).ready(function(){
$("#tag").autocomplete("autocomplete.php", {
selectFirst: true
});
});

It looks likes the plugin can't find autocomplete.php how can fill in the write path to the file?

Thanks for your help!
Jelte

redone975 on "Reduce size of images in Edit Gallery"

$
0
0

Hello,

Is it possible to reduce the size of the thumbnails that are displayed within the "Edit Gallery" page (where you can drag and drop to change order) in the default WordPress Gallery... The default image size is 200x200 with the "caption this image" input box below (she's not using captions).

Edit Gallery image for reference

I have a photographer client who is using the gallery to share proofs (100+ photos) and wants to reorder the proofs after uploading them to her site... She currently has a laptop with a lower resolution that only allows her to see a column of two, which makes this process very difficult and tedious.

It would be great if there's a way to reduce the size of these images to 100x100.

Thanks in advance for any insights into this issue.

everyeurocounts on "foreach if else"

$
0
0

I Have a issue using a mvc type plugin (groupbuying if anyone else uses)

In the controller for the cart view i have these

$line_items = array(
    'subtotal' => array(
    'label' => self::__( 'Subtotal' ),
    'data' => gb_get_formatted_money( $cart->get_subtotal() ),
    'weight' => 10,
 ),
    'discount' => array('label' => self::__( 'Facebook Discount @100%') ,
    'data' => gb_get_formatted_money( $facebookdisc ),
    'weight' => 11,
 ),
    'total' => array(
    'label' => self::__( 'Total' ),
    'data' => gb_get_formatted_money( $cart->get_total()
 ),
    'weight' => 1000,
 ),
);
    $line_items = apply_filters( 'gb_cart_line_items', $line_items, $cart );
    uasort( $line_items, array( get_class(), 'sort_by_weight' ) );

and then in the view

<tbody>
 <?php foreach ( $items as $item ): ?>
   <tr class="cart-line-item-row-<?php esc_attr_e( $key ); ?>">
 <?php foreach ( $columns as $key => $label ): ?>
   <td class="cart-<?php esc_attr_e( $key ); ?>">
 <?php if ( isset( $item[$key] ) ) { echo $item[$key]; } ?>
   </td>
 <?php endforeach; ?>
   </tr>
 <?php endforeach; ?>

<?php foreach ( $line_items as $key => $line ) : //issues here!
 if ( $line['weight'] = 11) : ?>
  <tr class="cart-line-item cart-line-item-row-<?php esc_attr_e($key); ?>">
  <th scope="row" colspan="<?php echo count($columns)-1; ?>"><?php esc_html_e( $line['label'] ); ?></th>
  <td class="cart-line-item-<?php esc_attr_e($key); ?>"><?php esc_html_e($line['data']); ?></td>
  </tr>
<?php ;
  else : ?>
  <tr> this sucks </tr>
  <?php endif; ?>
  <?php endforeach; ?>
</tbody>

The issues occur on the 2nd foreach statement.

If i use just the if statement, all the $lines will show, if i include the else statement it doesn't print the line which i gather to mean its seeing all the weights as 11 or i've mucked up somewhere!

Anyone any ideas of why its not working (BTW if i take out the if statement altogether it prints all the $line_items)

cameron.stimson on "Hacked, fixed, but blog looks different"

$
0
0

Hello there,

My blog was recently hacked, and the hackers inserted spam text into the header of my blog, above the masthead. I called my hosting site, go daddy, who informed me that it had been hacked. When I went into the Editor section of my blog (Under the Appearance section, then Editor), I found the offensive text and deleted it. However, now my sidebar is gone, and my blog is one wide column. The sidebar info is still there, it's just below the most recent posts. Does anyone know how I can fix this? I don't speak code very well, but catch on quickly if led in the right direction. I'd appreciate any help. Thanks!
~Cameron

blog site is http://thestimsonchronicles.com so you can see what I'm talking about.

stacyjuba on "Hacked - Blackhat SEO Spam"

$
0
0

I updated to the latest version of WordPress a couple days ago and almost immediately afterwards I noticed my server got really sluggish. I thought at first that it was my host, Go Daddy, but today I noticed when I was trying to access my dashboard it said something like cloud.net as the address it was trying to go to.

I ran a Sucuri scan and a bunch of pages have malware in the URL. It also indicated that this was the problem:

Details:

http://sucuri.net/malware/entry/MW:SPAM:SEO
<script type='text/javascript'>if --- display = 'none';}</script><div id="page">

I found the script once in my source code but then after I removed that section, my page design got split up and messed up so I pasted the script back where I found it and now it looks okay again. Also even when the script was removed, I did the scan again and I still got the same list of infected pages and the above message.

How do I get rid of the script and what else should I have my designer look for? I did a scan for suspicious files and it didn't find anything overly conclusive - a few files to check but one was from a plug in I put in today. (Evergreen Post Twitter) The sluggishness server problems started before I added that plug in.

I know I need to change passwords and secret keys once problem is fixed but any other advice on how to get rid of it would be appreciated. I don't see any other users on my site.

[Duplicate. Continue with http://wordpress.org/support/topic/hacked-blackhat-seo-spam-1?replies=2


planchettebd on "Is it possible to have changing background for my site."

$
0
0

Hi. I run wordpress site where I publish my webcomics.

http://www.planchette.ca

I used might background image to display a drawing of one of my project in the left side of the screen. I was wondering in it would be possible to make the background randomly select beetween several images (One for each of my project)so that the background would change every time someone visits the site. If it is possible, how could I code into the CSS editor.

Thanks

dylan on "From WooTumblog to Post Formats Admin UI"

$
0
0

For several years, I've been blogging with WooTumblog to manage my Post Formats. The trouble is, when I switch themes, I need to hack the them to include support for WooTumblog and I'd rather have my content travel with me. (Besides, I assume that the Post Formats Admin UI implementation is more like what wordpress will do natively, someday, maybe?)

I thought to post my question here, because others like me may have it as well, when that day comes:

How do I migrate my years' worth of WooTumblog custom field data to become suitable for use with Post Formats Admin UI?

I saw something on stack exchange that offered a variety of approaches, but I'm a bit shaky with mySQL so I thought to ask for any more feedback?

bigwoofer on "Duplicating custom fields"

$
0
0

So here is my question.... I am using a plugin to pull a feed off of a real estate board into my theme. However to make the theme work perfectly I need the data to have the correct key (or is it slug)

So the data imports as dfd_UnparsedAddress

I need it to be _est_meta_address

Any tricks to make this work automagically?

stacyjuba on "Hacked - Blackhat SEO Spam"

$
0
0

I updated to the latest version of WordPress a couple days ago and almost immediately afterwards I noticed my server got really sluggish. I thought at first that it was my host, Go Daddy, but today I noticed when I was trying to access my dashboard it said something like cloud.net as the address it was trying to go to.

My site is http://stacyjuba.com/blog/

I ran a Sucuri scan and a bunch of pages have malware in the URL. It also indicated that this was the problem:

Details:

http://sucuri.net/malware/entry/MW:SPAM:SEO
<script type='text/javascript'>if(document.getElementById('hideMe') != null){document.getElementById('hideMe').style.visibility = 'hidden';document.getElementById('hideMe').style.display = 'none';}</script><div id="page">

I found the script once in my source code but then after I removed that section, my page design got split up and messed up so I pasted the script back where I found it and now it looks okay again. Also even when the script was removed, I did the scan again and I still got the same list of infected pages and the above message.

How do I get rid of the script and what else should I look for? I did a scan for suspicious files and it didn't find anything overly conclusive - a few files to check but one was from a plug in I put in today. (Evergreen Post Twitter) The sluggishness server problems started before I added that plug in.

I know I need to change passwords and secret keys once problem is fixed but any other advice on how to get rid of it would be appreciated. I don't see any other users on my site.

sym_slip on "Creating Custom WPDB Tables?"

$
0
0

Hope this is in the right forum...I'm in the middle of creating a WordPress Plugin more or less for the first time, and have hit a bit of a wall. I've read through quite a bit of the Codex, but I'm still thoroughly lost on my next steps - and many of the Codex's examples don't seem to work.

The plugin I'm creating is intended to let users select backgrounds for single post pages based on the tags associated with that post. So a post tagged "horses" can be set up to have a background image of horses, and so forth. I've got the settings page set up to create a drop down menu via get_tags already, but haven't gotten beyond that yet.

My basic thought process/plan was to have the plugin's user be able to pick from the different tags on the settings page (via drop down menu) and allow the user to type in the url for the background image. They can then save that tag + background image url to the WP Database.

Then, at the head of each post (via wp_head?), check to see what tags the post is tagged with, and check to see if any of the tags match those in the database that have images associated with them. If yes, use CSS to change the page's background; if no, default to the background in use by the theme. (Aka, do nothing)

Where I'm stuck is:

1) I'm not sure how to create tables/store this data in the WordPress Database;
and 2) I'm not sure how to properly handle the code for the header.

I do know enough PHP to do this "raw" (so to speak), and know how to prevent script injection, but I'm very new to WordPress and so I'm getting bogged down trying to figure out how WordPress handles these things.

Any help/advice you guys can offer would be greatly appreciated! I can provide my existing code if it'll assist, though at the moment it's turned out fairly barebones. :)

Aboobacker P on "Display sub menu items of a parent menu - wp_nav_menu"

$
0
0

Hi,

I want to display sub menu items of a specific menu item.

I got a solution here: http://www.ordinarycoder.com/wordpress-wp_nav_menu-show-a-submenu-only/. It works charm, but actually I need to add some elements with the generated sub menu items. I am unable to add elements such as div, span etc. to them as they are generated with their own markup.

Please help me to generate them as an array.

-Menu_id_100
--sub menu1
--sub menu2
--sub menu3
-Menu_id_150
--sub menu1
--sub menu2

I want to get all the sub items of Menu_id_150 as an array. (which are sub menu1, sub menu2).

onirisweb on "expand posts titles from a category"

$
0
0

Hi,

I am working on an author page, that will first display the categories on which the author have posted.

When you click on each of them, I want that the posts lists of this category that he published expands.

I already can display the categories lists and the posts depending of each of them. My problem is that the jquery effect doesn't work.

First, I put my javascript and css codes in the header.php (before </head>):

<script src="js/jquery-1.4.2.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
// run the function below once the DOM(Document Object Model) is ready
$(document).ready(function() {
    // trigger the function when clicking on an assigned element
    $(".toggle").click(function () {
        // check the visibility of the next element in the DOM
        if ($(this).next().is(":hidden")) {
            $(this).next().slideDown("fast"); // slide it down
        } else {
            $(this).next().hide(); // hide it
        }
    });
});
</script>
<style type="text/css">
.hiddenDiv{
display:none;
}
</style>

And of course I upload jquery-1.4.2.js in the correct folder. I precise that actually the expand link works with simple texts. So the is no javascript conflict or anything else.

And then I tried this code in my author.php template :

<ul>

	<?php
$cat_args = array(
  'orderby' => 'name',
  'order' => 'ASC',
  'child_of' => 0
);

$categories =   get_categories($cat_args); 

foreach($categories as $category) {   

    echo '<ul>';
    echo '<li> <span class="toggle"><a href="#" style="cursor:pointer;">' . $category->name.'</a></span></li><div class="hiddenDiv">';

     $post_args = array(
         'category' => $category->term_id
    );

    $posts = get_posts($post_args);
	?>

	<?php
	foreach($posts as $post) {
	?>
			<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
	<?php
	}
	echo '</div>';
	echo '</ul>';
}
?>

Everytime I click the link leads to the top that's it. I tried to move hiddenDiv div at some other places in the code, but it doesn't work.

Does anyone has the solution to my problem ?

Thanks


solste on "Hacked/ lost drop down menu"

$
0
0

Hi there,

My website has been hacked, so I changed password, downloaded a new version of my theme "evolution", most of things are back to normal except the Header Menu which is not showing a drop down sign anymore?

http://www.foodandwinetasting.co.uk

Any suggestions?

Thanks,

S.

Jokke76 on "Twenty twelve & Widgets' dropdowns"

$
0
0

What are the css codes to customize dropdowns in widgets?

.postform gave me chance to do something but I'd like to get rid off that ugly arrow, change the selected colour and the font colour as well.

Thanks in advance

leeuniverse on "Shadowbox Js.... Images align fine, need help with Objects"

$
0
0

First, if you know of a "replacement" for this, let me know, won't bother.
It has to "automatically" display anything in lightbox, any Media, when that media/link is linked directly to it on or offline.

But if no alternative (can't find one), my first problem is that the script with any "object" that opens in the Lightbox like SWF, MPEG, etc. will align to the Top of the box instead of Center.

The second problem is that the script is "Responsive" in that the images and lightbox resizes fine, but again, because the Objects are Top aligned they are off in neverland somewhere.

See here for example: http://www.leeuniverse.com/2013/isaac-baby/

I did I think find the Shadowbox CSS that needs to be edited in order to make Objects "center align" properly. If anyone can give me thoughts on how to fix these problems?

Thanks much!

Here:

#sb-title-inner,#sb-info-inner,#sb-loading-inner,div.sb-message{font-family:"HelveticaNeue-Light","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:200;color:#fff;}
#sb-container{position:fixed;margin:0;padding:0;top:0;left:0;z-index:999;text-align:left;visibility:hidden;display:none;}
#sb-overlay{position:relative;height:100%;width:100%;}
#sb-wrapper{position:absolute;visibility:hidden;width:100px;}
#sb-wrapper-inner{position:relative;border:1px solid #303030;overflow:hidden;height:100px;}
#sb-body{position:relative;height:100%;}
#sb-body-inner{position:absolute;height:100%;width:100%;}
#sb-player.html{height:100%;overflow:auto;}
#sb-body img{border:none;}
#sb-loading{position:relative;height:100%;}
#sb-loading-inner{position:absolute;font-size:14px;line-height:24px;height:24px;top:50%;margin-top:-12px;width:100%;text-align:center;}
#sb-loading-inner span{background:url(loading.gif) no-repeat;padding-left:34px;display:inline-block;}
#sb-body,#sb-loading{background-color:#060606;}
#sb-title,#sb-info{position:relative;margin:0;padding:0;overflow:hidden;}
#sb-title,#sb-title-inner{height:26px;line-height:26px;}
#sb-title-inner{font-size:16px;}
#sb-info,#sb-info-inner{height:20px;line-height:20px;}
#sb-info-inner{font-size:12px;}
#sb-nav{float:right;height:16px;padding:2px 0;width:45%;}
#sb-nav a{display:block;float:right;height:16px;width:16px;margin-left:3px;cursor:pointer;background-repeat:no-repeat;}
#sb-nav-close{background-image:url(close.png);}
#sb-nav-next{background-image:url(next.png);}
#sb-nav-previous{background-image:url(previous.png);}
#sb-nav-play{background-image:url(play.png);}
#sb-nav-pause{background-image:url(pause.png);}
#sb-counter{float:left;width:45%;}
#sb-counter a{padding:0 4px 0 0;text-decoration:none;cursor:pointer;color:#fff;}
#sb-counter a.sb-counter-current{text-decoration:underline;}
div.sb-message{font-size:12px;padding:10px;text-align:center;}
div.sb-message a:link,div.sb-message a:visited{color:#fff;text-decoration:underline;}

[Bump deleted - please do not do that here]

t2hol2 on "Can't enable HTML for Tag Description"

$
0
0

Hi,
I have searched and read many tutorial on the internet for "How to enable HTML for tag description" and I tried all of them but it didn't work on my site.
1. I added the code below into archive.php of my theme to display tag description.
<?php echo trim(strip_tags(tag_description())); ?>

2. I installed the plugin "HTML in Category Descriptions" but the Wordpress till strip all html elements in tag desciption.

3. I disabled the plugin "HTML in Category Descriptions" and added the code below to function.php, but nothing happened.

foreach ( array( 'pre_term_description' ) as $filter ) {
remove_filter( $filter, 'wp_filter_kses' );
}
foreach ( array( 'term_description' ) as $filter ) {
remove_filter( $filter, 'wp_kses_data' );
}

I also tried the code below

remove_filter( 'pre_term_description', 'wp_filter_kses' );
remove_filter( 'pre_link_description', 'wp_filter_kses' );
remove_filter( 'pre_link_notes', 'wp_filter_kses' );
remove_filter( 'term_description', 'wp_kses_data' );

And all solutions didn't help me. You may see my tag description here http://www.uniquefree.com/tag/stablehost-coupon/

Please help.
Thank you.

Howdy_McGee on "Custom MetaBox Data Not Being Added"

$
0
0

I can't figure it out - it won't add anythign to the database even though there is 100% a value being passed into $_POST['_desc'] what am I doing wrong?

/** Add the Meta Box **/
function add_custom_meta_box() {
	global $meta_box;
    add_meta_box(
		'short-desc', // $id
		'Short Description', // $title
		'show_custom_meta_box', // $callback
		'post', // $page
		'side', // $context
		'high'); // $priority
}
add_action('add_meta_boxes', 'add_custom_meta_box');

/** The Callback **/
function show_custom_meta_box() {
	global $post;
	// Use nonce for verification
	echo '<input type="hidden" name="shortdesc_meta_box_nonce" value="'.wp_create_nonce(basename(__FILE__)).'" />';

	// get value of this field if it exists for this post
	$meta = get_post_custom($post->ID);
	echo var_dump($meta);

	// Begin the field table and loop
	echo '<table class="form-table"><tr><td>';

		echo '<strong>Enter A Short Description:</strong>
			<input type="text" name="_desc" id="short-desc" value="'.$meta['_desc'].'" size="30" />';

	echo '</td></tr></table>'; // end table
} 

/** Save the Data **/
function save_custom_meta($post) {
	// verify nonce
	if (!wp_verify_nonce($_POST['shortdesc_meta_box_nonce'], basename(__FILE__)))
		return $post->ID;
	// check autosave
	if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
		return $post->ID;
	// check permissions
	if (!current_user_can('edit_post', $post->ID))
		return $post->ID;

	echo $_POST['_desc'];
//	die();

	if(isset($_POST['_desc']))
		update_post_meta($post->ID, '_desc', strip_tags($_POST['_desc']));
}
add_action('save_post', 'save_custom_meta', 1, 2);
Viewing all 8245 articles
Browse latest View live




Latest Images