jwurster,
You need to read TG's code here: http://tamba2.org.uk/wordpress/spam/#seven
jwurster,
You need to read TG's code here: http://tamba2.org.uk/wordpress/spam/#seven
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
TG's code was only tested to work in WP v1.2.x. It was later included as part of WP v1.2.2.
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?
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.
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:
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.
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.
This topic has been closed to new replies.