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

   Not Showing  Anonymous posts (B_PosterId 1)  HELP to Del.icio.us Add to del.icio.us
  Digg Not Showing  Anonymous posts (B_PosterId 1)  HELP Digg it
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: 25432
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


Who's Online
0 Registered (), 23 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 12
blaaskaak 7
tackaberry 5
FREAK1 5
Chris Bale 4
Ian_W 4
Gizmo 4

 

 

 
fusionbb message board php hacks