# b2 VIEW ALL COMMENTS #
by Stevem
Source: http://cafelog.com/board/viewtopic.php?t=5893
Updated:
18.11.04, updated version featuring search, step 1 and 4
17.11.04, notes and STEP 3
It is useful to have a list of all the comments on your blog in case there is
some old spam to weed out or you want IP addresses to add to the blacklist.
The b2allcomments.php will list all the comments (from new to old) and also allow
you to quickly delete them.
STEP 1
a) If you don't have any comments (fresh install), skip this step.
b) Backup your database. You can use b2 Quick Backup available at http://www.sigg3.net/cafelog/files/b2backup.zip
STEP 2
Put this into a file called b2allcomments.php:
[CODE]
Go back !");
if ($search!="") {
$query = "DELETE FROM $tablecomments WHERE comment_content NOT LIKE '%
(
) (IP: )
@
Delete Comment ]";
?>
Comment was made in
@