vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Calendar - Upcoming Events (https://vborg.vbsupport.ru/showthread.php?t=66489)

popowich 06-24-2004 05:23 PM

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

Mystics 07-01-2004 07:14 PM

Fast method:

Find in includes/functions_databuild.php:
Code:

AND visible = 1
and replace it with:
Code:

AND visible = 1 AND calendarid <> X
X = 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

Quote:

Originally Posted by popowich
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 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.


All times are GMT. The time now is 01:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01073 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete