Firefox PHP

A spcified post allways be shown on top ?

Posted by DZ 
DZ
A spcified post allways be shown on top ?
February 20, 2002 05:39AM
Hi all,

I searched for a solution, but didn't find any, so here's my problem:

Is it possible, to have a specified message always be listed on top of the messages ?

e.g. as a moderator i'd like to set a flag like "always on top" so the message will always be the first one in the list.
(maybe set the last-post-date to a date int eh future)

Is there a hack for this or can anyone help me for a solution ?

Thanks in advance
and greetings,
Al
That's possible
February 20, 2002 02:47PM
If you have acces to your forum tabel, you can change the "time stamp" value of the specified message. Changing only the first digit to a 9 will result in a date like this: 01-01-70 00:59. Phorum will use the "time stamp" (or whatever) value to determine the place of a message.
So your message will stay on top till january 1st 2070. I hope that's long enough ;)
Leo
Re: That's possible
February 20, 2002 03:23PM
Sorry, I was wrong. It should be "modifystamp" NOT "timestamp"
English.... :(
DZ
Re: That's possible
February 21, 2002 02:34AM
Hi and thanks,

Sadly i have no access to the table cause I have no idea how to change it.
The Forum is hosted by Strato, so i dont know how to access the database manually.

I tried to change the modifystamp by modifying the post-functions.php for test, and it worked, but as my php-knowledge is limited, i am not able to insert some checkbox in the related page, that activates it.

Greetings,
Al :)
DZ
Re: That's possible
February 21, 2002 08:32AM
Hi,

more or less i got it now (allthough not satisfying)

I changed the post-functions.php a little,
i checked the $author against a special Username to set the
$modifytimestamp to high-value if true.

Greetings
Al
Hank
Re: That's possible
March 08, 2002 11:44AM
this is all useless because if another user posts a reply that will update the modifystamp to current time!
Kaegan
Re: That's possible
November 23, 2003 09:09PM
then you lock the post so no one can reply to it.
Re: A spcified post allways be shown on top ?
December 18, 2003 01:59PM
also on your message board list "Last Post" will always be set to the date of the "top" message.

I think a better way would be to look at how Phorum 5 handles it and recreate the same behavior for Phorum 3. I think it's a matter of having a boolean field and when listing posts, order them by the ones that have "STICKY" to true.
Sorry, you do not have permission to post/reply in this forum.