The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Does anyone have a CLUE on how the Calendar works?
I've done some searching and it seems that anytime anyone asks a question about a calendar hack nobody knows the answer. If someone has ANY experience with modding the calendar, I could use some help.
I have regional forums set up on my site and a corresponding calendar for each forum. I have the calendars linked in stickies and in the forum description. But the problem is, there is no way of listing the upcoming events other than what is shown on the Forums Home page. Since the regional pages are like mini-forums of their own, I'd like to display the upcoming events from the corresponding calendar. So what it looks like I need to do is A. find a way to separate events by region (by calendarID), and B. find a way to display the upcoming events of a specified calendarID in the Forumdisplay template with <IF> conditionals. I'm guessing that the code in the Index.php file would probably have to be copied to the Forumdisplay.php file and modified. Then, I'd have to add a template (or modify the forumdisplay template) and write a bunch of <IF> statements to have the correct events displayed in the correct forums. Can someone advise on how the PHP code should be written? And if someone can help with this but is not willing to help out for free (which sadly seems to be the case these days), then please contact me privately to discuss other options. I need to get this done one way or another. |
#2
|
|||
|
|||
Copying the calendar code from index.php to forumdisplay.php is a start. You'll also need to edit includes/functions.php so that the calendar cache will be refreshed as it only checks if it's index.php and a few others to do the rebuild. That's basically all I did when I built my CMPS version for my front page and things work fine.
At the very least this should give you a start of what's needed in addition to editing the FORUMDISPLAY templates |
#3
|
|||
|
|||
Wow, someone replied. Thanks Tom. That should get me started. I think the thing I'm totally in the dark about is how to only show event listings for a specific calendar, not all of them.
|
#4
|
|||
|
|||
If you can set up the calendars based on permissions it should all more or less fall out. OTOH if everybody is allowed to see everything then it will be a bit tougher. I'm certainly no expert here but I believe what you want to do shouldn't be that hard. To top it off you might be able to do it as a plugin so future upgrades area snap as well.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|