UBB.Dev
First noticed in the control panel that I had Approval Requests pending but when I clicked to view them I saw nothing.

Looked into it further and found that if an entry in w3t_Posts has a B_PosterId of 1 (ubbthreads default 'anonymous') the message won't show. This is happening in the forum and pending requests and anywhere else anonymous user posts are displayed.

Here is the code from the approveposts.php in the admin directory that is not functioning properly.

Code
<br />$query = "<br />	SELECT t1.B_Number,t1.B_Subject,t3.Bo_Title,t1.B_PosterId,t2.U_Username<br />	FROM {$config['tbprefix']}Posts AS t1,<br />	{$config['tbprefix']}Users AS t2,<br />	{$config['tbprefix']}Boards AS t3<br />	WHERE t1.B_Approved <> 'yes'<br />	AND t1.B_PosterId = t2.U_Number<br />	AND t1.B_Board = t3.Bo_Keyword<br />	ORDER BY t1.B_Board,t1.B_Number DESC<br />";<br />


remove these two parts from the query above and I at least see registered users pending posts.
SELECT ... t2.U_Username
AND t1.B_PosterId = t2.U_Number

* Looks to me like the mysql linking(?) (t1,t2,t3) is not working but I'm not sure if it's a problem with the MySQL version I have or if there's some setting I need to enable .

Here are my system specs
- Linux RHLE 4
- MySQL 4.1.12
- UBBThreads 6.5

Any help or ideas would be greatly appreciated.

Thanks,

- Simon
I haven't seen that bug before and can't find any info on it here or at http://www.ubbcentral.com/boards/ubbthreads.php - it makes me think it may be something else besides threads. Are you running 6.5 or 6.5.2? There's no difference between the 2 versions of the approveposts.php file, but maybe the bug is in a different file.
© UBB.Developers