Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter tomcat23

    (@tomcat23)

    A followup to clarify. In the WordPress settings>discussion page, they had

    “Before a comment appears – (unchecked) – An administrator must always approve the comment”
    “Before a comment appears – (checked) – Comment author must have a previously approved comment”

    and I changed it to:
    “Before a comment appears – (checked) – An administrator must always approve the comment”
    “Before a comment appears – (unchecked) – Comment author must have a previously approved comment”

    In hopes that these comments would now sync properly. They do not want people having to register and login to their site to make a comment — and in googling an answer I’m seeing some people complain that the setting “Users must be registered and logged in to comment” causes a user to have to log in to a site twice to comment? (Once for the site, once for ID.)

    I still ran into this error 4 months later…

    I was looking for a similar solution to this plugin. I had researched making my own, but found that editing the admin page to remove, replace or modify the category display in the post edit window is harder than it seems. (No filters or hooks in the code.)

    In 3.0, one can use the get_terms filter to modify the categories of a post. (Described here: http://soulsizzle.com/wordpress/filtering-wordpress-categories-using-an-undocumented-hook )

    I’ve found this advice, which really only moves the menu item for the plugin to the USERS menu.

    This plugin sets it so that each user can be constrained to a specific category. I’d like to make it so that each user will have their posts assigned to a specific category in addition to whatever they set their category to. Nothing in this plugin (or the code in the forums) will hide the category box in the edit page under 3.0

    I’m trying it below line 75 in the 2.0.7 version…

    Oh,it works. basically, me slug of code just adds to the html before it gets all rendered properly. Pretty simple. Just add my if statement before the line that reads
    $html = '<input type="text" name="' . $name . '" value="' . esc_attr( $value ) . '"' . $atts . ' />';

    Oh, and thanks!

    I believe the same line I just posted could be added to line 70 of modules/text.php in the new 2.0 version, but I’m not sure about the block of code above it. So I’d suggest using

    if ( $value != '' ) {
    	$atts .= ' onfocus="if (this.value == \'' . esc_attr( $value ) . '\') {this.value = \'\';}" onblur="if (this.value == \'\') {this.value = \'' . esc_attr( $value ) . '\';}"';
    }

    I am going to try adding this into line 216 of includes/classes.php (version 1.10.1)

    $atts .= ' onfocus="if (this.value == \'' . esc_attr( $value ) . '\') {this.value = \'\';}" onblur="if (this.value == \'\') {this.value = \'' . esc_attr( $value ) . '\';}"';

    This is tested and working.
    Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)