WordPress.org

Forums

Howto Moderate Trackbacks Only (23 posts)

  1. LisaS
    Member
    Posted 8 years ago #

    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.

  2. James
    Happiness Engineer
    Posted 8 years ago #

    Thanks, LisaS! Nice work!

  3. Mark (podz)
    Support Maven
    Posted 8 years ago #

  4. Nick Momrik
    Member
    Posted 8 years ago #

    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

  5. 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!

  6. pfleming
    Member
    Posted 8 years ago #

    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?

  7. Nick Momrik
    Member
    Posted 8 years ago #

    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.

  8. 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. :)

  9. @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!

  10. Nick Momrik
    Member
    Posted 8 years ago #

    Did you get it figured out?

  11. 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. :)

  12. CarolOtt
    Member
    Posted 8 years ago #

    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.

  13. Nick Momrik
    Member
    Posted 8 years ago #

    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.

  14. CarolOtt
    Member
    Posted 8 years ago #

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

  15. CarolOtt
    Member
    Posted 8 years ago #

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

  16. Nick Momrik
    Member
    Posted 8 years ago #

    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.

  17. CarolOtt
    Member
    Posted 8 years ago #

    Well I'm glad to know it's not just me -- I've had a couple hundred, too. At one point it almost drove me to tears -- these people should be drawn and QUARTERED. :: sigh ::

    I haven't gotten any in the past few minutes, so either they've given up, or the plugin is working. Nothing's shown up in my moderation queue, though.

    The only spam prevention plugins I have running are the Spammer Tar Pit (LOVE THAT ONE!) and...well, I think that's it. The blacklist, too.

    Oh -- I just looked at my plugins admin page -- yes, I'm using 1.11 for both pingbacks and trackbacks. :-)

  18. Nick Momrik
    Member
    Posted 8 years ago #

    I really can't think of why it wouldn't be working, even with another spam plugin.

    The way the current version of the plugin works is after WP processes a trackback, the plugin goes into the DB and sets it to unapproved, no matter what it's set to currently. So I'm very surprised that it's not working for you.

    This is something I need to change. The next version will be checking to see if it's already set to 'spam' by the blacklist or anything else for that matter.

  19. CarolOtt
    Member
    Posted 8 years ago #

    Well we could do a test -- would you go to my blog and try to do a trackback?

  20. Nick Momrik
    Member
    Posted 8 years ago #

    Here's a trackback test site...

    http://www.tamba2.org.uk/wordpress/Trident/index.php

    You can log in there and send yourself trackbacks and pingbacks.

  21. CarolOtt
    Member
    Posted 8 years ago #

    Awesome -- thanks!

  22. Nick Momrik
    Member
    Posted 8 years ago #

    I just updated both the PB and TB moderation plugins both to version 1.12. Now they don't do anything if it has been marked as spam.

  23. Nick Momrik
    Member
    Posted 8 years ago #

    The Moderate Trackback plugin is now at version 1.2.

    Instead of marking a trackback for moderation at the end of the trackback process, it's done right before it's put into the database. This means that you'll now get the correct email messages from WordPress asking you to moderate.

    :-D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.