Solo Drakban
04-03-2008, 12:47 AM
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! :)
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! :)