Surfer
11-28-2002, 07:29 AM
Hi,
I basically want the system that vb3 is using for my vb2 version!!
In vb3 it basically works so that when you have read all threads in a forum the status of the forum becomes "read" on the "forumhome" page.
OK, I found some code in index.php:
// do light bulb
if ($bbuserinfo['lastvisitdate']=='Never') {
$forum['onoff']='on';
} else {
if (($fview = get_bbarraycookie('forumview', $forum['forumid'])) > $bbuserinfo['lastvisit']) {
$userlastvisit=$fview;
} else {
$userlastvisit=$bbuserinfo['lastvisit'];
}
if ($userlastvisit<$forum['lastpost']) {
$forum['onoff']='on';
} else {
$forum['onoff']='off';
}
}
if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
$forum['onoff'].='lock';
}
Is this the code I need to hack to change the forum status function. Any pointers on what to do? Any help would be greatly appreciated...
Thanks
:D
I basically want the system that vb3 is using for my vb2 version!!
In vb3 it basically works so that when you have read all threads in a forum the status of the forum becomes "read" on the "forumhome" page.
OK, I found some code in index.php:
// do light bulb
if ($bbuserinfo['lastvisitdate']=='Never') {
$forum['onoff']='on';
} else {
if (($fview = get_bbarraycookie('forumview', $forum['forumid'])) > $bbuserinfo['lastvisit']) {
$userlastvisit=$fview;
} else {
$userlastvisit=$bbuserinfo['lastvisit'];
}
if ($userlastvisit<$forum['lastpost']) {
$forum['onoff']='on';
} else {
$forum['onoff']='off';
}
}
if ((!$forumperms['canpostnew'] and $showlocks) or $forum['allowposting']==0) {
$forum['onoff'].='lock';
}
Is this the code I need to hack to change the forum status function. Any pointers on what to do? Any help would be greatly appreciated...
Thanks
:D