Here why, i'm not making it more complacated, im making it much eaiser on the user that will be using this hack:
1.) If the user makes a new forum he has the option to turn this hack on or off per forum. See Screenshot:
Now in this query below i need to add the forum IDs where they were turned on. from the screenshot above:
See this query below? Where you see X,Y,Z, i want to code it so it calls the forum ids from where they are turned on from.
PHP Code:
$mar = $DB_site->query("
SELECT
thread.threadid as threadid,thread.title as title,thread.forumid as forumid,thread.postusername as postusername,thread.dateline as dateline
FROM thread AS thread
WHERE postuserid= $userinfo[userid] AND forumid IN(X,Y,Z)
ORDER BY dateline DESC
");
Make ant sense now?