Private Calender

Lawreaga

New Member
I want to create a calender that is only visible to certain user groups. I've tried the calender permission function in vbulletin but other users can still see the title and dates of the calenders they don't have permissions to.

Is there a mod that I can prevent this?

can somebody give me the codes that located here?

http://www.vbulletin.org/forum/showthread.php?t=13837

I think thats what I'm trying to do.
 

pollutioN

New Member
Open up calendar.php:

Find (should be right at the top):

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

Just under it, add:

Code:
$permissions=getpermissions(13);
if (!$permissions[canview]) {show_nopermission();}


Now ... change the "13" in getpermissions(13) to whatever forum ID the users you want to have access to the calendar have access to.

IE - I have a private forum that a certain user group only has access to, which is forum 13. Everyone who has access to Forum 13 is authorized to view the calendar, those that can NOT view Forum 13, can NOT view the calendar.

Now save and upload calendar.php ... you are done.
 
Top