Quote:
Originally Posted by Allnick
This is an interesting add on.
One thing though.....I find it good practise to view as a guest myself at times.
For instance after creating a new forum and setting permissions. I need to see what guests can view, as well as registered users.
I presume Admin (me) would have to clear cookies to view as a guest.
It would be good to have the Admin account unaffected.
|
Try editing the product file before importing, replacing:
Code:
if (!isset($_COOKIE['NGBaccess'])) {
// we do NOT use vbsetcookie, because cookies set with vbsetcookie() are erased when the user logs out!
setcookie("NGBaccess", "yes", time()+31104000, "/");
}
with:
Code:
if (
!isset($_COOKIE['NGBaccess']) AND
!in_array($bbuserinfo['usergroupid'], array(6)) )
) {
// we do NOT use vbsetcookie, because cookies set with vbsetcookie() are erased when the user logs out!
setcookie("NGBaccess", "yes", time()+31104000, "/");
}
You can replace the "6" here with "6,5" (IIRC) to also exempt supermods. You will need to clear your cookies once before this exemption applies.