SQL ERROR: Unable to do_query: SELECT Bo_Keyword, Bo_Last FROM w3t_Boards WHERE Bo_Total > 0 AND () You have an error in your SQL syntax near ') ' at line 5 Warning: Supplied argument is not a valid MySQL result resource in /home/httpd/html/sdsrdom/wwwthreads-php/markallread.php on line 141
Warning: Supplied argument is not a valid MySQL result resource in /home/httpd/html/sdsrdom/wwwthreads-php/mysql.inc.php on line 83
Sorry... user authentication was incorrect... my apologies. This is my installed version which works. The name of the file should be markallread.php. The difference is: after: // Get the user info you need to have: $Username = $w3t_myname; $Password = $w3t_mypass;
Err... I just grabbed it and for some reason I fail to see the reason for this:
$Board = 'websites'; // edit this board name to one on your site
// --------------------------------------- // Set a cookie, or register a session var if ($config[tracking] == "sessions") { session_register('w3t_visit'); $w3t_visit .= "-$Board=$Last-"; } else { $w3t_visit .= "-$Board=$Last-"; setcookie("w3t_visit","$w3t_visit",0); }
Why do we need to set the last time for a board?
[EDIT] I always keep forgetting something: you'll also have to add $config to the 'global' line of the domarkallread function (otherwise the test for cookie/session mode will not work properly)
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.