FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » moderation error
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
moderation error [message #2885] Tue, 04 June 2002 11:06 Go to next message
tufan is currently offline  tufan   Turkey
Messages: 70
Registered: June 2002
Karma: 0
Member
There is a small bug in the script.

When reading the thread in the tree view in a moderated forum, UNAPPROVED messages appear as a link (though they shouldn't appear), but when clicked, a database error occurs...

This is due to a small bug in the sql query.

You can correct it by editing forum/template/src/tree.php.t

--- FIND (around line 156) -----
WHERE
thread_id=".$th." ORDER BY id");

--- AND CHANGE IT TO -----

WHERE
thread_id=".$th." AND {SQL_TABLE_PREFIX}msg.approved='Y' ORDER BY id");


For your information,


http://sfx-images.mozilla.org/affiliates/Buttons/firefox2/firefox-spread-btn-1.png
Re: moderation error [message #2908 is a reply to message #2885] Tue, 04 June 2002 15:58 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Thanks for the detailed bug report, the problem has been fixed in CVS.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: INNER JOIN on mysql 3.22.32 broken?
Next Topic: Spellchecking creates new lines
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 13:06:05 GMT 2024

Total time taken to generate the page: 0.02331 seconds