Log in

View Full Version : vb cookies


AN-net
07-22-2004, 04:31 PM
i was wondering about the function fetch_bbarray_cookie();
is it a predefined php function or is it a vbulletin function, also what is contained in that cookies as far as vbulletin forum information and how would i implement sometype of thing like that to check if someone has viewed something i.e. a forum:)

thanks for all your help;)

CarCdr
07-22-2004, 05:20 PM
Decent examples of its use can be found in forumdisplay.php or threadrate.php. It's a vB function that is used to store an array of information by key, like forumid or threadid.

As for checking when a forum was last viewed, you should see that in forumdisplay.php. The cookie may not be set, so you'd need something along the lines of:$last_view = fetch_bbarray_cookie('forum_view', $foruminfo['forumid']);
$last_view = max($last_view, $bbuserinfo['lastvisit']);

AN-net
07-22-2004, 05:40 PM
im still kind of confused what it does>_<

cookies is sort of a new thing to me :lol: