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

crazyweb on "Website Hacked? Hacked By Akram Stelle"

$
0
0

Hello, I have seen the recent security threat to Wordpress, and all my sites have been effected with this. Help me! I dont want to lose all my sites.

This is what is shown?

Hacked By Akram Stelle
I Know You Have Security Here
But it's fucked By Me !! haha
http://Www.Facebook.Com/stelledz | akram.stelle@gmail.com
Greetz : All Arab (Algerien) Hacker
Index #OpWorld Akram Stelle 2014 ©

My sites affected!
http://www.pauseforanimals.org
http://www.creativeartnett.co.uk
http://www.crazywebservices.com


vatanbytyqi on "Disable email notifications for custom post type when commenting"

$
0
0

Hi,

I'm working on a plugin and have a custom post type and when someone makes a comment I don't want to send an email to admin telling that a new comment need attention. But I don't want to disable the notifications for all post type only for my custom type. I have tried some codes that I have found here on the forum but it is not working for me, I still get the notifications.

This is what I have tested so far:

add_action('comment_post', 'my_custom_commment');
function my_custom_commment($comment_id){
    global $cache_settings;
    $comment = get_comment($comment_id);
    $post = get_post($comment->comment_post_ID);
    if ( $post->post_type=="my_custom_type" ) {
        $foo = get_settings('comments_notify'); // make sure it's cached
        $cache_settings->comments_notify = 0;
    }
}

Thanks in advance!
Vatan

Peppersandmore on "Not sure if this is the right place"

$
0
0

I have taken off the register widget to my site due to the amount of unwanted registering...once it is off I still get hacker registering how do I stop this

omer34 on "js css placement image overlay"

$
0
0

Hi,

I hope someone can help me with this. I was looking for a nice image overlay effect and saw this: http://callmenick.com/2014/03/06/image-overlay-hover-effects-with-css3-transitions/

Now I downloaded the source and tried to add it to my site. Im not really good with this kind of stuff but I tried nevertheless. I added the css and js folder to the root of my website and tried to put the html code for the effect on a new post on my website. This did the trick but the whole website layout was effected by the styles.css i put in the root. So Im guessing I need to paste the styles.css i downloaden into the already existing styles.css in wordpress. But where do I go from there. Where do I put the js and how do I call up the effect.

I hope someone can help

Red Deer Web Design on "Checkbox validation"

$
0
0

Hey guys,

I have a list of checkboxes and am wanting to build in some kind of loop so I don't have to list every single checkbox. Currently I just have 2 to test with:

// Sanitize and validate input. Accepts an array, return a sanitized array.
	function lc_options_validate($input) {
		// Our first value is either 0 or 1
		$input['option1'] = ( isset($input['option1']) == 1 ? 1 : 0 );
		$input['option2'] = ( isset($input['option2']) == 1 ? 1 : 0 );

		return $input;
	}

I am drawing a blank, any ideas on how I can have this loop?
Thanks!

KennedyRBrown on "Need help custom coding User Submitted Posts"

$
0
0

Hi,

I need help custom coding the User Submitted Posts plugin. I want the posts to automatically publish to the page "Share a Story".

I am new to WordPress, and really need help with this.

My page is http://www.kennedyrbrown.org.

Thanks!!!

th3harold on "How to view trash post without have to click restore?"

$
0
0

I run a website with over 800 user.. Is there a way i can view the trash post without have to restore the post without have to confused the user that post been deleted or not etc wish there a way where admin can view the trash post in private way.. so i can caught up what really going on.

when you restore the post the more problem it get...

Let me know if this can be done.. i am sure there is..

TH3

octohedron on "Display code/tags mid sentence with text editor without symbols?"

$
0
0

I need to find a way to write tags mid sentence without creating a block and without having to write & lt; every time and without using the visual editor.

Example of how its not working.
What i need

Right now im only using Code Markup which is good but it doesn't work completely or as it should according to its website.


Predeep pothuraju on "My site shwoing "Error""

$
0
0

Hi, my site is " http://lolfollows.com/ ", 30 mins back i have been activeted social share button plugin for my site, but i change something on plugin code, when its active mode, suddely my site down, its showing
" Parse error: syntax error, unexpected 'elseif' (T_ELSEIF) in /home/lolfollo/public_html/wp-content/plugins/social-share-button/social-share-button.php on line "

Can any one hlep me pls ASAP, its live site..

Regards,
Pradeep.

mattregister on "Cutting a list of terms in half"

$
0
0

I have a custom taxonomy called "guest". This function outputs an unordered list of the guests linked to the taxonomy archive for the term.

function print_guests() {
$terms = get_terms( 'guest' );

echo '<div class="vcex-bullets vcex-bullets-gray"><ul>';

foreach ( $terms as $term ) {

    // The $term is an object, so we don't need to specify the $taxonomy.
    $term_link = get_term_link( $term );

    // If there was an error, continue to the next term.
    if ( is_wp_error( $term_link ) ) {
        continue;
    }

    // We successfully got a link. Print it out.
    echo '<li><a href="' . esc_url( $term_link ) . '">' . $term->name . '</a></li>';
}

echo '</ul></div>';
}
add_shortcode('print-guests', 'print_guests');

What I am trying to do is split the list into two lists; one with the first half and the other with the second half so I can split the output into two columns on the page they are being displayed in.

Any thoughts as to how I can limit this list to the first half and then split the list into the second in another shortcode?

jstallard on "Accessing WordPress functions from external php program"

$
0
0

I'm writing a program to import user info from TYPO3 to my WordPress multisite and don't want sensitive info (user info and TYPO3 database password which is visible in the program) accessible over the net. So I want to run my program from the command line.

I want to use WordPress functions for creating the users (seems safer). But if I load wp-load.php I can only access my debug output via a browser.

I've tried outputting to a file, and that works when I run the program from a browser, but when I run the program from the command line, the file isn't even created. That means I can keep user info secure but not the TYPO3 database password.

So, how do I run WordPress functions from a program run from the command line and send output to my terminal or to a file?
Thanks!

enderoe on "Wordpress default screen options"

$
0
0

Hi,

I would like to uncheck certain screen options such as the sharing and excerpt fields.

I already found some code wich i implemented into my functions.php but this isnt working:

function set_user_metaboxes($user_id=NULL) {
    $post_types= array( 'post', 'page', 'link', 'attachment', 'product' );
    // add any custom post types here:
    // $post_types[]= 'my_custom_post_type';
    foreach ($post_types as $post_type) {

       // These are the metakeys we will need to update
       $meta_key= array(
           'order' => "meta-box-order_$post_type",
           'hidden' => "metaboxhidden_$post_type",
       );

       // The rest is the same as drebabels's code,
       // with '*_user_meta()' changed to '*_user_option()'

       // So this can be used without hooking into user_register
       if ( ! $user_id)
           $user_id = get_current_user_id(); 

       // Set the default order if it has not been set yet
       if ( ! get_user_option( $meta_key['order'], $user_id ) ) {
           $meta_value = array(
               'side' => 'submitdiv,formatdiv,categorydiv,postimagediv',
               'normal' => 'postexcerpt,tagsdiv-post_tag,postcustom,commentstatusdiv,commentsdiv,trackbacksdiv,slugdiv,authordiv,revisionsdiv',
               'advanced' => '',
           );
           update_user_option( $user_id, $meta_key['order'], $meta_value, true );
       }

       // Set the default hiddens if it has not been set yet
       if ( ! get_user_option( $meta_key['hidden'], $user_id ) ) {
           $meta_value = array('postcustom','trackbacksdiv','commentstatusdiv','commentsdiv','slugdiv','authordiv','revisionsdiv' , 'avia_hero' );
           update_user_option( $user_id, $meta_key['hidden'], $meta_value, true );
       }
    }
 }

presis_carsten on "admin user automatically added"

$
0
0

For my company we maintain around 50 WordPress websites. Recent something strange has happened.

Almost every website had a new user with the username 'admin' with Adminstrator role, emailadress 'admin@localhost' and registration date '2010-03-01 11:06:24'. The password is a MD5 hash (no salt, like a normal WordPress password), example: 1c1df24bdf22b10fce4b2a5003bdbdfa

It seems it was something automated. Even a website protected with a .htpasswd had this 'admin' user.

Our webhoster says their system is not hacked. The plugins and themes that we use are from the official WordPress website.

Does anyone have an idea how did happened?

anand454pandey on "Working with child theme"

$
0
0

Hello All,,,
As i have read all the Document related to child theme given in the Documentation in wordpress.org
1)According to the documentation we can simply add a themename-child folder and add a style.css to our child theme folder if we want to add a child-theme to a parent theme....

My question is that if in parent theme has more than one style.css as ex(rtl.css,editor-style.css,ie.css etc) can one css of child theme's(style.css of child theme) reflect all the mentioned css's of parent theme.

Can someone give me appropriate answer for the query.
I am totally confused.......

anand454pandey on "Working with child theme"

$
0
0

As from wordpress documents we can add additional things in style.css of child theme rather than adding it in parent themes style.css.

Just one thing i want to confirm:

Overriding the features of which style of parent theme's is it style.css or ie.css or rtl.css as we know there are many css's in the parent themes directory?

if it is overriding the feature of style.css of parent theme then what will be with others(i.e. ie.css,rtl.css)? are they working?

As i have added only one css file in child theme for my theme (Twentythirteen-child/style.css)

can somebudy tell me properly


lbeckerpointio on "How to use value from form data to add option to WP database"

$
0
0

How do I save the value of some form input into an option in WordPress?

I developed a simple plugin that embeds a URL into any WordPress site. I have also created a plugin settings page following the model provided at Otto's tutorial. I have only one setting that user's can edit - the URL of the website they'd like to embed. It seems simple enough, but I cannot find where in Otto's tutorial an option is created. There is no call to add_option. So I'm not clear how to make my function work to retrieve the URL the admin has typed in from my plugin settings page:

function get_url_to_embed() {
	$options = get_option('plugin_options');
	if ($options == FALSE) {
		return "http://www.google.com/";
	}

	return $options['text_string']; // What goes inside the brackets??

}

If you didn't already understand, the default embedded URL is Google. If the admin has typed in a URL on the plugin settings page, I'd like THAT website to be embedded. How do I do this?

lbeckerpointio on "Error when changing option name"

$
0
0

I used the code as shown on Otto's tutorial and tried to change the option name ‘text_string’ to something else – ‘embedded_url’. I have WP_DEBUG enabled. When I loaded my plugin’s settings page, right above my text input field is this error: “Notice: Undefined index: embedded_url in ….” and then it points to the echo line of this function:

function plugin_setting_url() {
	$options = get_option('plugin_options');
	echo "<input id='plugin_url' name='plugin_options[embedded_url]' size='40' type='text' value='{$options['embedded_url']}' />";
}

Since this is the only place that 'text_string' appears other than the validation method, I do not understand why 'embedded_url' is not defined in the same manner as 'text_string' was. What am I doing incorrectly?

vahost on "Modify popular_posts_per_category function"

$
0
0

I found the following code for adding links to posts in the same category. It works great, but I need a modification, and I don't know how to do it.

function popular_posts_per_category() {
	global $post;
	$categories = get_the_category();
	foreach($categories as $category) {
		$cats[] = $category->cat_ID;
	}
	$cats_unique = array_unique($cats);
	$args = array(
		'category__in' => $cats_unique,
		'orderby' => 'date',
		'order' => 'DESC',
		'post_type' => 'post',
		'post_status' => 'publish',
		'posts_per_page' => 50
	);
	echo '<ul>';
	$popular_posts = null;
	$popular_posts = new WP_Query($args);
	while ($popular_posts->have_posts()) : $popular_posts->the_post();
		$title_trim = get_the_title();
		if (strlen($title_trim) > 60) {
			$title_trim = substr($title_trim,0,60);
		} ?>

		<li><a href="<?php the_permalink(); ?>"><?php echo $title_trim; ?></a></li>
	<?php endwhile;
	rewind_posts();
	echo '</ul>';
}

Basically, this function returns links to posts in descending date order, newest post first. I need to modify it so that, instead of starting with the most recent post in the category, it starts with the current post as most recent and works its way back from there.

So if the current post was published on June 14, 2014, and the newest post in the category was published July 26, 2014, instead of showing the 50 most recent posts in the category starting July 26, 2014, I want it to show posts starting with the post most immediately preceding this current post, published before June 14, 2014.

Can anyone tell me how to modify this function in order to accomplish this change?

kirsten-SAdev on "Malicious-like query bring my WP site down"

$
0
0

I have this query that is bringing my website to it’s knees. I started seeing it yesterday. I have no idea where it originates from. I definitely do not have that sort of a query in my theme. I use a few plugins as I prefer to write my own. At first I thought we were been injected in the search box, I hard search.php. The query kept popping. Then I disable SEO sitemaps. The query kept popping. Now I don’t know where to look. Have we been compromised in some way? What is going on?

Does anyone have an idea where this sort of query could be originating from?

`SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND (((wp_posts.post_title LIKE '%community%') OR (wp_posts.post_content LIKE '%community%')) AND ((wp_posts.post_title LIKE '%development%') OR (wp_posts.post_content LIKE '%development%'))) AND (wp_posts.post_password = '') AND wp_posts.post_type IN ('post', 'page', 'attachment', 'afp_feed_article', 'byline_bio_box', 'network_news', 'weather', 'event', 'tweet_of_the_day', 'video_of_the_day', 'cxt_site_poll', 'cxt_daily_cartoon', 'citizen_gallery', 'phakaaathi_log', 'phakaaathi_video', 'phakaaathi_gallery', 'phakaathi_mmedia', 'multimedia', 'fixtures_results') AND (wp_posts.post_status = 'publish') ORDER BY (CASE WHEN wp_posts.post_title LIKE '%community development %' THEN 1 WHEN wp_posts.post_title LIKE '%community%' AND wp_posts.post_title LIKE '%development%' THEN 2 WHEN wp_posts.post_title LIKE '%community%' OR wp_posts.post_title LIKE '%development%' THEN 3 WHEN wp_posts.post_content LIKE '%community development %' THEN 4 ELSE 5 END), wp_posts.post_date DESC LIMIT 0, 10;'

'afp_feed_article', 'byline_bio_box', 'network_news', 'weather', 'event', 'tweet_of_the_day', 'video_of_the_day', 'cxt_site_poll', 'cxt_daily_cartoon', 'citizen_gallery', 'phakaaathi_log', 'phakaaathi_video', 'phakaaathi_gallery', 'phakaathi_mmedia', 'multimedia', 'fixtures_results' are my custom post types.

The words/phrases been searched for in the query keep changing. It will be "community", then a celebrity nae, then a football club, etc.
Once this query is executed about 5 times, the query below pops up and subsequently all the queries on the site become slow and the database stops responding.

SELECT post_modified_gmt FROM wp_posts WHERE post_status = 'publish' AND post_type IN ('post', 'page', 'attachment', 'afp_feed_article', 'byline_bio_box', 'network_news', 'weather', 'event', 'tweet_of_the_day', 'video_of_the_day', 'cxt_site_poll', 'cxt_daily_cartoon', 'citizen_gallery', 'phakaaathi_log', 'phakaaathi_video', 'phakaaathi_gallery', 'phakaathi_mmedia', 'multimedia', 'fixtures_results') ORDER BY post_modified_gmt DESC LIMIT 1;

cornelinux on "hook function for plugin options saved"

$
0
0

I was trying and googling for a while, but maybe I did not use the right keywords.

I am writing a plugin. I have a settings for that saves just fine.

I'd like to add a hook, to be able to either do some php stuff either before or after all my options are saved.

I thought I could find some code like

add_action("options_saved", "my_function");

I found several posts, but they seem do not seem to cover my concern.

Moreover: Would it be possible to pass data to such a hooked function, that will not be saved? I want to test the configuration on the server side and like to pass some user entered test data, that must not be saved.

THanks a lot and kind regards
Cornelius

Viewing all 8245 articles
Browse latest View live




Latest Images