Tag Info

Hot answers tagged

9

you can use comment_unapproved_to_approved action hook to call your function which will use a commentmeta field to count how many times that comment has been approved or by how many users and if it's less then 3 then we updated the comment to not approved : update I'm posting an updated code in the form of a plugin which fixes a few typos: <?php /* ...


6

Per default wp_list_comments() calls the class Walker_Comment. Its method start_el() calls edit_comment_link() and here we find a filter for your question: It is called 'edit_comment_link' and it passes two variables, the link text and the comment ID, which we can use. The URLs to mark a comment as spam or to delete it are: ...


5

Here you go, paste this code in your themes functions.php file: function loggedin_approved_comment($approved) { // No need to do the check if the comment is already approved anyway. if (!$approved) { if (is_user_logged_in()) { // Note: 1/0, not true/false $approved = 1; } } return $approved; } // ...


3

I would probably either use GravityForms or CForms plugins to allow that, both have a "form to post" feature that creates a new post and lets the admin moderate it before publishing.


3

I haven't tried it. but this plugin looks like it satisfies your alternative option http://wordpress.org/extend/plugins/mu-manage-comments-plugin/ Conveniently shows a list of blogs with spam or unmoderated comments so that the Network Administrator can manage the the comments on network blogs. The list shows counts by blog with links to each comment. ...


2

The default author role does not have the moderate_comments capabilities so you need to add that capability to the author role, so add this to your plugin: function add_theme_caps() { $role = get_role( 'author' ); // gets the author role $role->add_cap( 'moderate_comments' ); // would allow the author to moderate comments } add_action( ...


2

Probably not the answer you want to hear, but I'm afraid that is not possible as a user needs the edit_posts Capability in order to access the moderate_comments capability. (source: http://codex.wordpress.org/Roles_and_Capabilities#moderate_comments)


2

use the follow var: $comment->comment_approved and check for the value <?php if (0 == $comment->comment_approved) { ?> <em><?php _e('Your comment must approved.', FB_BASIS_TEXTDOMAIN) ?></em> <?php } ?> code example: http://code.google.com/p/wp-basis-theme/source/browse/trunk/basis/comments.php


1

function facebook_setup_function() { add_meta_box( 'facebook_widget', 'Facebook Moderation Tools', 'facebook_widget_function', 'dashboard', 'normal', 'low' ); } function facebook_widget_function() { include ('facebook.php'); } add_action( 'wp_dashboard_setup', 'facebook_setup_function' ); add the above to your functions file and replace the ...


1

you may use this plugin : http://wordpress.org/extend/plugins/disabler/ i found this function somewhere on the internet (but can't remember where...). it may do what you are looking for : // Remove self pings add_action( 'pre_ping', 'my_no_self_ping' ); function my_no_self_ping( &$links ) { $home = get_option( 'home' ); foreach ( $links as $l ...


1

You could call a function whenever a user publishes a post (checkout the publish_post action here) In this function you would first check how many posts your user has already published, and only allow the new post to be published if this number is within a range you specify (ie. < 100) Then you would check if the post content doesn't contain any "bad ...


1

For registration you can use something like this:https://wordpress.org/extend/plugins/front-end-users/screenshots/ or you can do a search here or on any search engine and I'm sure you'll find more than enough plugins. As for the moderation, I have new posts added as drafts and then publish them myself after checking them. Not sure what you want to do with ...


1

Try this: Capability Manager http://wordpress.org/extend/plugins/capsman/ and also read (if you have't already done so) the Wordpress roles and capabilities docs: http://codex.wordpress.org/Roles_and_Capabilities


1

Yes, it is possible. However, your buddypress theme must be compatible with bbpress or else /forums won't be setup correctly. Reference: http://devpress.com/blog/how-to-make-a-site-like-devpress/ bbPress for Forums or Message Board Although BuddyPress has group forums, I don’t have it enabled on DevPress. It’s because I prefer having a central ...


1

You could hook into 'pre_comment_approved' and change its return value. Sample code, not tested: add_filter( 'pre_comment_approved', 'wpse47172_approve_logged_in_users' ); function wpse47172_approve_logged_in_users( $approved ) { return is_user_logged_in() ? 1 : $approved; }


1

No plug-in needed for this. Just open your theme files using the WordPress theme editor or via FTP. Look for the code that is being used to display the notice. It should be in the index.php file, maybe in a content.php file if your theme uses that, and in some cases it's in your functions.php file. It will use the exact text you're talking about so it should ...


1

I can't offer an explanation as to why this is happening, but I can give you a quick fix to silence it. The function responsible is wp_notify_moderator, which is a pluggable function. You can copy the contents of the function into your own plugin and modify it to return true in the case of a comment moderation email. after the line: $comment = ...


1

Figured it out. Looking at wp-comments-post.php there is a filter called comment_post_redirect which I used to check if the comment was approved and then added a query string to the URL. So easy. //A query string needs to be added when redirecting back to the post after a comment is posted and not approved. This ensures the page with the "Your comment is ...


1

You could use Gravity Forms and generate a draft of a custom post type on submission. The form could contain the URL and all other fields. Nice thing about Gravity Forms is the fields can all be validated and has decent anti-spam measures. It also has hooks to do other tasks such as the post-generation. When a form submission is received, it can send an ...


1

Modify the file "form-topic.php" (located in "/wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php"): 32 <form id="new-post" name="new-post" method="post" action="<?php the_permalink(); ?>"> Change it to: 32 <form id="new-post" name="new-post" method="post" action="<?php echo the_permalink() . ...



Only top voted, non community-wiki answers of a minimum length are eligible