php forum
php mysql forum
php mysql smarty
 
Topic Options
#286037 - 01/13/06 12:31 PM Not Showing Anonymous posts (B_PosterId 1) HELP
simon333 Offline
Newbie

Registered: 08/23/00
Posts: 24
First noticed in the control panel that I had Approval Requests pending but when I clicked to view them I saw nothing.<br /><br />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.<br /><br />Here is the code from the approveposts.php in the admin directory that is not functioning properly. <br /><br />
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 />
<br /><br />remove these two parts from the query above and I at least see registered users pending posts.<br />SELECT ... t2.U_Username<br />AND t1.B_PosterId = t2.U_Number<br /><br />* 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 .<br /><br />Here are my system specs<br />- Linux RHLE 4<br />- MySQL 4.1.12<br />- UBBThreads 6.5 <br /><br />Any help or ideas would be greatly appreciated.<br /><br />Thanks,<br /><br />- Simon

Top
#286038 - 01/13/06 07:56 PM Re: Not Showing Anonymous posts (B_PosterId 1) HELP [Re: Fenrir]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: 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?

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks