Previous Thread
Next Thread
Print Thread
Rate Thread
Not Showing Anonymous posts (B_PosterId 1) HELP #286037
01/13/2006 1:31 PM
01/13/2006 1:31 PM
Joined: Aug 2000
Posts: 24
S
simon333 Offline OP
Newbie
simon333  Offline OP
Newbie
S
Joined: Aug 2000
Posts: 24
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 &lt;&gt; '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

Sponsored Links
Re: Not Showing Anonymous posts (B_PosterId 1) HELP [Re: Fenrir] #286038
01/13/2006 8:56 PM
01/13/2006 8:56 PM
Joined: Mar 2000
Posts: 25,587
Texas
AllenAyres Offline
I type Like navaho
AllenAyres  Offline
I type Like navaho
Joined: Mar 2000
Posts: 25,587
Texas
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.


- Allen wavey
- What Drives You?

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
· Blue Host
· Interserver.net
Visit Us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,938
Joined: January 2000
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,448
Posts293,484
Members13,793
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 25,587
JoshPet 11,330
Rick 8,373
LK 7,396
Lord Dexter 6,503
Gizmo 5,938
Greg Hard 5,533
Top Posters(30 Days)
isaac 4
Today's Statistics
Currently Online 713
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 22
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2018 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180622.dev)
Page Time: 0.030s Queries: 15 (0.009s) Memory: 3.2247 MB (Peak: 3.3439 MB) Zlib enabled. Server Time: 2018-06-22 17:01:14 UTC