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

Rminton on "WordPress administrator captcha"

0
0

Upon register or login, this pops up. It is confusing to everyone. There is no reason for such a thing to even exist. It asks for dwmm6c and the sum of 15+8 to be entered, although it looks like a login prompt.

If I could get some info on how to make this go away permanently, I would be grateful. I just switched all to WP and this is a deal breaker for some.

Additionally, this poorly constructed CAPTCHA ask for username and PW, which almost everyone takes to mean their desired uname/PW if new registration or login info if already registered.

I would even settle for a reasonable, easy to understand CAPTCHA. Best case, show me where in the code I can hack this out completely. I would be willing to keep that as a SOP from now on to prevent this huge inconvenience.

THX,

Roy Minton, MTA, A+, MCP, Security+, CISSP


jcc5018 on "loop to display taxonomy terms and description"

0
0

So I am attempting to build the first page in my navigation heirarchy to choose product categories.

I have a custom taxonomy called collections. I would like to create a page that loops through all terms in the collections taxonomy and displays the Term +link and description.

I created a file called taxonomy-collections.php and put the following code in. But it is not doing the trick.

<?php if ( have_posts() ) : while ( have_posts() ) : the_post();

$terms = get_terms( 'collections' );

echo '<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  term_description($post->ID,$term);

    }

echo '</ul>';

?>

<?php endwhile; else : ?>
	<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>

This is almost straight from the codex so I'm guessing I am missing something.

currently the code has each term displayed as a list, but I do want to change it to a grid format if someone could help with that too.

So each term and description will be wrapped in a div and right aligned with the next.

Thanks

inpariswithyou on "Media uploads directory structure"

0
0

I know you can change the default folder for uploads with a simple adjustment to the wp-config file, and I know you can turn off the option to save in folders based on month and year, but is there any way to change that system entirely?

I would like to have Wordpress store attached files in directories based on the post's custom taxonomies and/or title. Is this possible?

dedepress on "How to get $_GET var on customize.php?"

0
0

I'm trying to do something with $_GET vars on customize.php page, but It is quite difficult than I expected.

//======== Example

WP Version: 4.0-beta4
Also tested with 3.9.2, so I think it's not a wp beta version bug.

URL:

http://localhost/wp/wp-admin/customize.php?var=google

Code:

add_action('customize_register', 'testing');

function testing($wp_customize) {

    // this can't get vars and throw a undefined index error,
    // but if I check source code of the page, I can see it's here.
    print_r($_GET[var]); 

    // Notice: the stuff below inside will render properly,
    // in other words, I got the var once,
    // but it cause another fatal problem:
    // the setting which added inside here will not be saved.
    if(!empty($_GET[var]) {
        $wp_customize->add_setting(...);
        $wp_customize->add_control(...);
    }

}

if I hook the testing() function to 'customize_controls_init', I'm able to get $_GET vars and no errors, but it also cause the same problem: the settings will not be saved.

seems it's caused by iframe and refresh, but I tried a variety of ways and still can't make it working well.

Anyone have an point? Thanks in advance.

jovac on "Antivirus blocking my blog"

0
0

Hello
I have just started a new blog http://www.jovac.in few days back. But antivirus like kespersky,Quick heal are blocking my blog, alarming as harmful wesite. I have checked my blog again and again through google safe search and sucuri where nothing wrong found. I have installed free wordfence security plugin, which also saying blog is clean. Please help

bvucp on "Preserving option screen input for the next option page render"

0
0

Here's the scenario:

I have a field on an options page that accepts input from a wp_editor() TinyMCE editor.

If certain conditions are met (e.g. input is too long) the input will not be saved. Currently, I have the sanitization function display an error via add_settings_error() so the user is at least aware that this happened. But, since my option render function simply spits out whatever is currently saved (& so retrieved by get_option), the user immediately loses their invalid input when this happens.

However, I would like to also give the user back their input that was rejected in the WP Editor window, so they have a chance to revise and fix it and hit Save again, rather than their changes being immediately lost to the void. My immediate thought is to use $_SESSION, but is there a WordPress-specific way of carrying this information over temporarily?

My google fu appears to be weak - I'm sure this has been discussed, but I can't seem to find anything covering it.

dragoeco on "Random post according to localization"

0
0

Hi all. I'm searching for a way to get a ling to redirect to a radom post according the language selected by the visitor. I've created my own button but I just need a link who can do that. Maybe someting like:
mysite.com/?display-post&orderby=rand
or maybe a modification to function.php file like here
I have 2 languages and about 10 categories on each languages.
If anyone have an idea, he'll makes my day :) Thanks

coverfield on "Disable "add new" post to anyone who has one published or in waiting the revie"

0
0

Hello everyone, I wanted to know if there is a possibility to add a single post to a contributor, and be prevented from adding another one.

For example, if a contributor just recorded adds an article, which will then be moderated, and sent for review, I wish that he be prevented from adding another (should no longer appear on the "add new"), but may still change the one you just wrote, and re-submit it for review, but can not add another one.

In short, every contributor can publish only one (1) item.

I hope I explained and thank you in advance.


johnsimoneau on "Slider Questions"

0
0

Sorry, this is a double post because I couldn't figure out how to delete or move my other post. I never seem to get reply's when I post to the plugin area so I'm thinking it might not have been the appropriate spot to post and this area is better?

We currently have such a system in place but it seems sloppy and has issues. We need a slider for our users profiles. We have an auto play banner slideshow at the top of their profile that they upload banner images too. Then a gallery slideshow at the bottom that needs to have image thumbnail & arrow navigation. Both simple slideshows just with a fade. We use Front End Pro so our users can customize their profiles and upload images to the custom fields for the slideshows.

Then in the author template we are able to call the slideshow and then load the custom image fields via html in the template.

Problem is that alot of the good wordpress sliders are using shortcodes for templates instead of html so I can't add the images custom fields. They want you to create the slides in the wp-admin etc rather then letting me load the images from custom fields in a template. I know there is some non-wordpress ones out there but my concern with those is the potential pain in the butt updating and staying up to date as well as putting random scripts in my header that I don't have good control over.

Thanks

kaitanium on "anyone using linkwithin? how to customize?"

0
0

So my understanding of code is 100% but I do have a custom homepage. When using linkwithin, it injects the links all over the page yet I cant find the code that does it on my index.php. If I inspect element with chrome i can easily find it and remove it but cant find anything related to "linkwithin" it in the backend php files.

ideas? thanks

Esther Moudy-Gummere on "Trying to add "order" function to posts..."

0
0

I'd like for my posts to appear in a certain order on category pages, which theoretically is possible by only slightly modifying the snippet from the add_post_type_support in function reference here like this:

//ATTRIBUTES
////
add_action('init', 'my_custom_init');
function my_custom_init() {
	add_post_type_support( 'post', 'page-attributes' );
}

The meta-box for "order" comes up and it saves, but unfortunately doesn't affect the order in which the posts appear.
Anybody have any ideas how to make it happen?

Thanks in advance!

Davit8924 on "I forbid you to make any changes to my site!"

0
0

Hello dear administration Wordpress. Dear administration, please tell me, why are you changing the size of the letters on my site? Who were you allowed? who gave you this right to change the font size on websites? I am writing to you in the first and last time. I'm STRICTLY FORBIDDEN to make any changes to my site, my site is registered as the media, and I have all the necessary documents in order to apply for you in court for ILLEGAL changes on my site. Last time when you DELIBERATELY change the size of the letters on my site my site fell and within 2 days I could not recover my mysql site. I STRICTLY FORBID YOU TO MAKE ANY CHANGES TO MY SITE, CONSIDER THIS A FORMAL REQUEST. In cases of recurrence of unlawful intrusion on my site and changing the font size, I will write a complaint against you to the FBI, the Guardian and the British Embassy in Armenia. I have enough dokazatelstvo that would apply for you in court.

Note:

The Text above was written messages, if necessary, will be included in a complaint against you.

Yours Sincerely David Yeghiazaryan

millerguide on "Please help me fix my syntax."

0
0

This is in comments.php. Could someone please tell me what is wrong here that I keep getting a syntax error? Thank you:

<?php
$args = array
'title_reply' => __( '您的评语 Your Review', 'customizr' ),
);

millerguide on "Change text of comment form "Post Comment" button."

0
0

Hello,
I would like to change the text of "Post Comment" on the comment form button. I am not sure where to do this. Here is my comment.php code so far:

?>
<?php if ( have_comments() ) : ?>

<?php echo apply_filters( 'comment_separator', '<hr class="featurette-divider '.current_filter().'">' ); ?>

<?php endif; ?>

<div id="comments" class="comments-area">

<?php
$args = array(
'title_reply' => __( '您的评语 Your Review', 'customizr' ),
);

comment_form($args);

?>

<?php if ( have_comments() ) : ?>

<?php do_action ( '__comment' );?>

<?php endif; // have_comments() ?>

</div><!-- #comments .comments-area -->

Marceline on "Make text excerpt fade out"

0
0

I want to make the text excerpts before the "Read More" button fade out slightly. I thought I'd be able to do this with a widget, but I haven't been able to find one. Is there a simple way to do this?


millerguide on "Remove two simple, specific things from comments field."

0
0

Hello,

How do I remove these two simple things from my comments field?

1. the text: Your email address will not be published. Required fields are marked *

2. The word Comment.

Thank you!!!

millerguide on "Change three specific things about comment box."

0
0

Hi! I would like to change the WordPress comment box/form in the following ways: (thank you!)

1. Change the text on the button, and for all fields (like name and email).

2. Get rid of the html markup intructions below the box, and if possible, make it into simple click icons above the box.

3. Change the text of the word "Comment" at the top left of the box.

How can I do this, please? Thank you!

millerguide on "Remove all fields in comment form."

0
0

Please, how can I just remove all the fields (name, email, etc.) from my comment form? If you are kind enough to give me the code, please kindly also tell me where in comments.php to put it exactly, as I am new at this. Thank you!

Viamultimedia on "Problem selected sidebar option for posts"

0
0

Hello

Well i propose a select option meta box sidebar. All sidebar apears correctly in the select options but if i go to a post and i choose a sidebar it don't save the sidebar selected for the post.

An idea please ?

public function bakerineMetaOptions() {
		global $post;
		if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return $post_id;
		$custom = get_post_custom($post->ID);
		$sidebar = $custom["sidebar"][0];
		$options = $GLOBALS['wp_registered_sidebars'];
		$selected = '"selected"';
	?>
    <select name="sidebar">
    <?php foreach ( $options as $sidebar ) : ?>
	    <option value="<?php echo $sidebar; ?>"<?php echo $selected; ?>><?php echo $sidebar['name']; ?></option>
    <?php endforeach; ?>
    </select>
    <?php
	}

ace2307 on "Help with security"

0
0

Hey guys,
What are some things I can do to secure my blog from hackers? I have my blog set up so that you must register to comment on any of my pages. Yet, I had a comment from an unregistered person. How could somebody comment on something when I have it set specifically for registered users? Are there any plugins or things I can do to help with the security of my blog?

Viewing all 8245 articles
Browse latest View live




Latest Images