The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I'm not calling this a hack because it's so trivial... but those of you that need a private calendar (like myself) can make this simple modification that will allow you to keep the ... unwanted element out of your calendar.
As I said, it's very simple and rather inelagent approach, but at least it's something. Personally, I'd like to see the calendar a little more robust, with the ability to make certain events viewable only by certain user groups. Maybe one day ... Anyway, on with the mod: Open up calendar.php: Find (should be right at the top): Code:
if (!$calendarenabled) { eval("standarderror(\"".gettemplate("error_calendardisabled")."\");"); } 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. I told you it was trivial, and I'm almost embarassed to post this With a little work, you can make it so it works based on usergroups instead of forums... but for my purposes it functions like I need it to. Hopefully we'll see a more robust calendar system in vB soon. |
#2
|
|||
|
|||
This is not trivial at all to most of us. All the little tricks and small tweaks or modifications that people figure out are usually going to help someone else out. Thanks for sharing.
|
#3
|
||||
|
||||
yah, easy or not I would have spent at least 3 hours having to learn php and the vBulletin layout. I am an experianced coder but I would much rather copy and paste and write a thank you than spend those 3 hours =p
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|