Page 1 of 1

Posts in a topic, seen by some users

Posted: Fri Jan 10, 2003 7:20 pm
by zacky
I want the post to change color for the people that have not seen the post..
what's the best way to check if a user have seen a post or not??
..without spamming the db with all the nick's who have seen the post.. :roll:

Posted: Fri Jan 10, 2003 8:32 pm
by Kriek
What forum and version are you running?

Posted: Fri Jan 10, 2003 8:45 pm
by zacky
my own forum, and alpha v0.10 8)
just alpha, yet 8)

do you have some tips..?

Posted: Fri Jan 10, 2003 9:00 pm
by Kriek
Have you considered using cookies? Based off the system that allows you to view whether or not a thread or forum you are viewing has new posts since your last visit. The cookie would track the current user session as well.

Posted: Fri Jan 10, 2003 9:12 pm
by zacky
but I don't like cockies :cry:

Posted: Sat Jan 11, 2003 12:02 am
by volka
Do you see which threads you've read here? Do you like it?
Then you experienced the amazing powers of cookies ;)
viewtopic.php of phpBB:
...
//
// Set a cookie for this topic
//
if ( $userdata['session_logged_in'] )
{
$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array();
....
setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), ...

Posted: Sat Jan 11, 2003 6:01 am
by zacky
hm, but what about the bug in phpbb where all the new post's vansishing sometimes? :oops:
and at the end of the session.. should I save it in the db, for each user or what?
:roll: