Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2006, 04:27 PM
ludachris ludachris is offline
 
Join Date: Feb 2002
Posts: 287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 01-24-2006, 04:38 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 01-24-2006, 04:53 PM
ludachris ludachris is offline
 
Join Date: Feb 2002
Posts: 287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 01-24-2006, 05:01 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06304 seconds
  • Memory Usage 2,181KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete