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 Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
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


Top Posters Last 30 Days
AllenAyres 83
Gizmo 29
sirdude 24
Zarzal 22
blaaskaak 13
willing 7
swebs 6
Who's Online
2 Registered (blaaskaak, sirdude), 39 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Nice Ajax Chat
by sirdude
07/05/08 04:29 PM
[7.x] UBB.Post Templates v0.1
by sirdude
07/05/08 12:48 PM
Team UBBDev Rides Again!
by AllenAyres
07/04/08 10:56 PM
[7.3.x] ubb.links
by AllenAyres
07/03/08 06:15 PM
Changing currency for subscriptions?
by AllenAyres
07/03/08 01:15 PM
Protect users emails
by AllenAyres
07/03/08 11:36 AM
VPS and Newbies
by Gizmo
07/02/08 09:08 PM
New Mods
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
Newest Members
ryzilla, M4D, Jer, Kanigo2, Bubba
13302 Registered Users

 

 

 
fusionbb message board php hacks