WordPress.org

Ready to get started?Download WordPress

Forums

CSS moderate comments (4 posts)

  1. mauriciomesquita
    Member
    Posted 3 years ago #

    this is possible using. css? Some say yes. How?

    I have 12 different regular contributors on my site, each overseeing two categories. Is there a hack or plug-in that would allow them to see and moderate only the comments for the posts in their categories or the posts they authored? Otherwise, they have to sort through a million comments to find the ones they need to moderate. I've searched around and haven't found anything yet to do this.

    They are logged in with "author" priviledges.

    this is possible using. css? Some say yes. How?

    thanks

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    It's not possible using CSS.

  3. mauriciomesquita
    Member
    Posted 3 years ago #

    Inserting function.php on the theme that I use:

    function esconde_no_autor_comentarios_admin(){
    	global $user_identity, $user_level;
    
    	$nome = strtolower(str_replace(' ','-', $user_identity)); 
    
    	if (current_user_can('edit_themes')) {
    		return false;
    
    	} else {
    	echo "
    	<style type=\"text/css\">
    		#the-comment-list .comment-item{display:none;}
    		#the-comment-list .comment-author-".$nome."{display:inherit;}
    	</style>\n";
    	}
    }
    add_action('admin_head', 'esconde_no_autor_comentarios_admin');

    Can hide the authors' comments. The script
    adds the name of the author css class, but only when the
    author makes a comment in your own post, the
    comments by others not named after the author until
    not always because the user must be logged in to
    comment.

    I am not able to identify who created the
    comment_class post to handle.

    If anyone has an idea how to get the author's name
    you can finish doing this function, using. css. But unfortunately our ideas exhausted.

    If anyone knows help...
    thanks

  4. mauriciomesquita
    Member
    Posted 3 years ago #

    up

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.