Log in

View Full Version : Calendar - Upcoming Events


popowich
06-24-2004, 05:23 PM
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

Mystics
07-01-2004, 07:14 PM
Fast method:

Find in includes/functions_databuild.php:AND visible = 1and replace it with:AND visible = 1 AND calendarid <> XX = ID of the calendar whose events you don't want to show.

After that you have to edit/add/delete an event to update the event cache.

popowich
07-01-2004, 07:22 PM
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

Lionel
05-04-2005, 06:13 PM
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?

oldengine
05-14-2005, 01:25 AM
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.
I also have two calendars, but I would like for them to be in two separate listings on Upcoming Events. Right now, it's a mess because everything is mixed in and unsorted.

Lionel
05-14-2005, 01:32 AM
I just did a hack on my site (http://www.haitiwebs.com/haitianforums/) 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.

oldengine
05-14-2005, 02:19 AM
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.

Lionel
05-14-2005, 02:28 AM
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.