The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Calendar - Upcoming Events
Hello,
I added a second calendar to my web site, but I only want events from the first calendar to show up under the "upcoming events" section of the main forums page. Is this possible? I think it is easiest to manage by having a "display upcoming events on main forums page" yes/no option in each calendars setup. Any assistance would be appreciated. Thank you, -Raymond |
#2
|
||||
|
||||
Fast method:
Find in includes/functions_databuild.php: Code:
AND visible = 1 Code:
AND visible = 1 AND calendarid <> X After that you have to edit/add/delete an event to update the event cache. |
#3
|
|||
|
|||
Thanks, that worked great.
For mine I did: AND visible = 1 AND calendarid = 1 Since I only want the first calendar to display. Thanks again, -Raymond |
#4
|
|||
|
|||
This works great for me. I have 3 calendars and I block one of them. The first two display events for the next seven days.
How would I go to have the blocked one which I use for Today in History, display event only for today? |
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
I just did a hack on my site about that. Was not easy. I had to copy the function_databuild.php into otherdatabuild.php, edited it to remove all that was not needed, then in index.php I copied the upcoming events, changed all the names, did a vboptions settings for amount of days to show in today in history etc...
and now, I got two distinct events: Today in History and Events. For today in history I pull today's events only and for Events, the next 7 days. |
#7
|
|||
|
|||
I just gave this one a try and it works great.
https://vborg.vbsupport.ru/showthread.php?t=76264 Lionel, I'll look into yours a bit later. It will be icing on the cake. The calendar sure does need help. |
#8
|
|||
|
|||
If you know php a little, I could email you my changes and you will sort it out for yourself. It's very customized that's why I don't post it. And besides you need to create a settings in vboptions.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|