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

Home » FUDforum Development » Bug Reports » sticky and announcement bug?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: sticky and announcement bug? [message #5411 is a reply to message #5376] Mon, 02 September 2002 02:12 Go to previous messageGo to previous message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma:
Senior Member

prottoss wrote on Fri, 30 August 2002 10:40

Ah... I see now, I'll check this problem.

now i know why i can't set sticky and announcement as my thought!

/* De-announce expired announcments and sticky messages */
$r = q("SELECT k12_thread.id FROM k12_thread INNER JOIN k12_msg ON k12_thread.root_msg_id=k12_msg.thread_id WHERE k12_thread.forum_id=".$forum_id." AND is_sticky='Y' AND (k12_msg.post_stamp+k12_thread.orderexpiry)<".$tm);
while( list($tid) = db_rowarr($r) )
q("UPDATE k12_thread SET ordertype='NONE', is_sticky='N' WHERE id=".$tid);
qf($r);

these code auto delete all sticky and announcement when i post or edit post!
[Message index]
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Trying to to Data Import into newly created forum
Next Topic: bug in adm/admmassemail.php
Goto Forum:
  

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

Current Time: Sat Nov 23 17:18:12 GMT 2024

Total time taken to generate the page: 0.04206 seconds