vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Including event information in the 'forumdisplay' section. (https://vborg.vbsupport.ru/showthread.php?t=174981)

Solo Drakban 04-03-2008 12:47 AM

Including event information in the 'forumdisplay' section.
 
I have a little bit of an issue. I want to be able to display upcoming events not just in 'forumhome' but also in 'forumdisplay'. I made the appropriate template change to include the event section from Forum Home Template >> FORUMHOME into Forum Display Template >> FORUMDISPLAY and then located the code that apparently sets the $show['upcomingevents'] and other variables necessary for the event data to be displayed correct and create a plugin that hooked into forumdisplay_start.

I thought this would pull in the necessary data to allow the template conditionals and the data required to function within 'forumdisplay.php' but it's not. Basically I cut and past the code out of index.php from // ### TODAY'S EVENTS down to the next header with a couple of minor tweaks. No PHP errors are being reported by the eval() but the <if condition="$show['upcomingevents']"> conditional isn't firing and there is no data in $upcomingevents.

Could somebody help me out and point me at what I'm doing wrong/missed in this? :)

Thanks! :)

onnenkolikko 04-28-2008 11:52 AM

I would also be interested to get upcoming events in forumhome


All times are GMT. The time now is 06:59 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.00957 seconds
  • Memory Usage 1,706KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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