PDA

View Full Version : Disable guest viewing of calendar


Reverend
07-18-2002, 07:05 PM
Is there a way to disable guest viewing of the calendar.
The only options available in the user group permissions are;

Can post Public events on Calendar

Can edit other's Public events on Calendar

Thanks

Logician
07-18-2002, 08:29 PM
Edit calendar.php, find:


if (!$calendarenabled) {
eval("standarderror(\"".gettemplate("error_calendardisabled")."\");");
}


After that add:


if ($bbuserinfo[userid]<1)
{show_nopermission();exit;}


Enjoy..

Reverend
07-18-2002, 09:04 PM
Perfect. :cool:

Thanks.

Littlebit
08-04-2002, 12:10 PM
Woo Hoo! I asked this soooo long ago in vbulletin.com and the only reply I got was a PM from someone wanting cash for a customized calendar. Thanks Logician! :)