Facebook Twitter Pinterest Share

Other vBulletin Requests vBulletin requests that don't fit into other request topics.

New Thread  Post Reply
Lawreaga's Avatar
Lawreaga : Newbie
Lawreaga is on a distinguished road
offline Joined: Dec 2007 Posts: 3 Thanked: 0
Thread Starter Unread 02-02-08
Private Calender

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?


I think thats what I'm trying to do.
pollutioN's Avatar
pollutioN : Newbie +
pollutioN will become famous soon enough
offline Joined: Sep 2007 Posts: 12 Thanked: 3
Unread 02-07-08
Open up calendar.php:

Find (should be right at the top):

if (!$calendarenabled) {
Just under it, add:

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.
New Thread  Post Reply

Thread Tools

  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
calender, private
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021