Support » Plugins » Howto Moderate Trackbacks Only

  • LisaS

    (@lisas)


    The following works on several blogs 1.2.1 and 1.2.2.
    Edit your wp-trackback.php file.
    Search for :
    ("$comment_post_ID", "$author", "$email", "$tb_url", "$user_ip", "$now", "$now_gmt", "$comment", "$approved") and change the $approved to 0 (zero). This will force all trackbacks into moderation.

    NOTE :
    This will not moderate comments. It will cause ALL trackbacks to be thrown into moderation for approval.

    To disable trackbacks completely you can comment out the following line :

    $pingstatus = $wpdb->get_var("SELECT ping_status FROM $tableposts WHERE ID = $tb_id"); by putting at the begining of the line \\
    then put a new line underneath with :
    $pingstatus = ‘closed’;

    NOTE :
    This will not disable comments. It will cause ALL trackbacks to be ignored.

Viewing 15 replies - 1 through 15 (of 22 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Thanks, LisaS! Nice work!

    Nick Momrik

    (@mtdewvirus)

    podz has a link to this in his tutorial, but I thought I’d add a direct link here to be easier to find.

    If you want all new trackbacks or pingbacks to automatically go inot the moderation queue, I’ve created a couple of plugins that do the job quick and easily…

    Moderate Trackbacks and Pingbacks Plugins

    LisaS: What lines does the code you posted correspond to in the default wp-trackback.php file? Or, can you elaborate further?

    I do see this:

    ('$comment_post_ID', '$author', '$email', '$tb_url', '$user_ip', '$now', '$now_gmt', '$comment', '$approved')

    If so, would one just substitute ‘$approved’ for 0? Thanks!

    pfleming

    (@pfleming)

    Ok… I’ve been hit with this as well… a couple of hundred today. What I don’t quite understand is where these show up. I mean they are publicly visible right? What is the purpose of the trackback flood spam?

    Nick Momrik

    (@mtdewvirus)

    btvillarin,
    If you download the plugin I’ve created, you don’t need to modify that file, although you may need to make a fix for another file. It’s really easy. Plus then you can choose to activate/deactivate the plugin with a simple click of the button.

    pfleming,
    These show up in with your comments by default, unless you’ve modified your templates/themes. The purpose is for these people to get links back to their sites from all different sites around the web.

    If you download the plugin I’ve created, you don’t need to modify that file, although you may need to make a fix for another file. It’s really easy. Plus then you can choose to activate/deactivate the plugin with a simple click of the button.

    @mtdewvirus: I don’t know how to make a fix for another file. Plus, I don’t recall you saying that it’ll work for WP 1.2.2. Can you point me in the right direction? Thanks. 🙂

    @mtdewvirus: Nevermind. I looked at your post and comments again, and saw the update and readme file. So I’ll see how the plugin works. Thanks!

    Nick Momrik

    (@mtdewvirus)

    Did you get it figured out?

    Well, I haven’t gotten any spam since then! *LoL* I did figure it out, however none of my links are reporting as updated. It might not be your problem though. Thanks for following up man. If any spam does go through and your plugin moderates it automatically, I’ll give you a holler – you have my word. 🙂

    MtDew, I installed your trackback plugin and I’ve gotten a couple of trackback spams since – in the past 15 minutes. Was there something I was supposed to modify in the plugin before installing?

    I looked for the Read Me file and couldn’t find it.

    Did you activate the plugin? I’ve been using it with 1.5 without a problem.

    I’m working on a better way to do the plugin.

    Yes, I’ve activated the plugin. Maybe it just takes a little while to work?

    I added it to my wp-plugins folder and then activated it through the admin page — was that correct?

    Yes. Are you using WP 1.5 and the latest version of the plugin (1.11)? Do you have any other spam prevention plugins that might be interfering?

    Trackbacks are going crazy this morning. It’s already caught a couple hundred for me in the past few hours.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Howto Moderate Trackbacks Only’ is closed to new replies.