Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 12
Joined: Aug 2000
Posts: 12
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.

<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.


- Simon

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I haven't seen that bug before and can't find any info on it here or at - 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.

- Allen wavey
- What Drives You?

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)