2011-06-28, 12:49 PM
Less precise solution
1. Generate a timestamp at http://www.timestampgenerator.com/ (run a few tests first, to make sure you are using the correct timezone settings in the tool)
2. Execute these SQL queries (replace Y with the timestamp you found in step 1):
More precise solution
1. Manually locate the first spam thread or post.
2. Get the TID or the PID of the thread or post (found in the URL).
3. If the first spam was a thread, execute this SQL query (replace X with the number you found in step 2):
4. If the first spam was a post, execute this SQL query (replace X with the number you found in step 2):
5. Copy the value in the dateline field.
6. Execute these SQL queries:
1. Generate a timestamp at http://www.timestampgenerator.com/ (run a few tests first, to make sure you are using the correct timezone settings in the tool)
2. Execute these SQL queries (replace Y with the timestamp you found in step 1):
DELETE FROM `mybb_threads` WHERE `dateline` >= 'Y'
DELETE FROM `mybb_posts` WHERE `dateline` >= 'Y'
More precise solution
1. Manually locate the first spam thread or post.
2. Get the TID or the PID of the thread or post (found in the URL).
3. If the first spam was a thread, execute this SQL query (replace X with the number you found in step 2):
SELECT * FROM `mybb_threads` WHERE `tid` = 'X'
4. If the first spam was a post, execute this SQL query (replace X with the number you found in step 2):
SELECT * FROM `mybb_threads` WHERE `pid` = 'X'
5. Copy the value in the dateline field.
6. Execute these SQL queries:
DELETE FROM `mybb_threads` WHERE `dateline` >= 'Y'
DELETE FROM `mybb_posts` WHERE `dateline` >= 'Y'