Forums

Recent spam in comments (38 posts)

  1. divrom
    Member
    Posted 7 years ago #

    jwurster,
    You need to read TG's code here: http://tamba2.org.uk/wordpress/spam/#seven

  2. Nom
    Member
    Posted 6 years ago #

    Regarding previous code fix, I tried putting it into the original from my 1.0 and receiving one comment in moderation and:

    Fatal error: Call to undefined function: _e() in /home/nommune/public_html/wp-admin/moderation.php on line 161

  3. James
    Happiness Engineer
    Posted 6 years ago #

    TG's code was only tested to work in WP v1.2.x. It was later included as part of WP v1.2.2.

  4. Nom
    Member
    Posted 6 years ago #

    Used 10 lines of correction in moceration.php in a 1.0 version, tried several times from the original. Getting:

    Fatal error: Call to undefined function: _e() in /home/nommune/public_html/wp-admin/moderation.php on line 161

    Also checked in wikis. Is the code from 10-31 above good for 1.0?

  5. Nom
    Member
    Posted 6 years ago #

    Is the code above good for 1.0 version?

    Getting:

    Fatal error: Call to undefined function: _e() in /home/nommune/public_html/wp-admin/moderation.php on line 161

    After several attempts into the original.

    Recent posts page in Troubleshooting and my profile indicates a similar post made earlier, but do not see it here, so posting again.

  6. Nom
    Member
    Posted 6 years ago #

    My apologies for multiple posts. I was not familiar with second page and only noticed my posts were not appearing. Thought it might have something to do with error line. Meanwhile posted error line and code:

    http://phpfi.com/67489

  7. James
    Happiness Engineer
    Posted 6 years ago #

    TG's code was only tested to work in WP v1.2.x. It was later included as part of WP v1.2.2. TG's code as an external hack is no longer supported.

  8. Nom
    Member
    Posted 6 years ago #

    This is the material attempted to put into 1.0 to change default from Do Nothing to Delete:

    Move the 'checked="checked"' value from 'Do nothing' to 'Delete':
    <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-delete" value="delete" checked="checked" /> <label for="comment[<?php echo $comment->comment_ID; ?>]-delete"><?php _e('Delete') ?></label>
    <input type="radio" name="comment[<?php echo $comment->comment_ID; ?>]" id="comment[<?php echo $comment->comment_ID; ?>]-nothing" value="later"/> <label for="comment[<?php echo $comment->comment_ID; ?>]-nothing"><?php _e('Do nothing') ?></label>
    Now the default for comments awaiting moderation is "delete", so you can clean them out with one click.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.