otterag
08-22-2012, 05:38 PM
I would like to display my Forum Events calendar in a widget on the CMS pages of my vb4.2 website.
I could really use some help with this problem, i have searched these forums and come up with nothing that works the way i want it to work.
I went through the source and found in the FORUMHOME template the code i think i need.
{vb:raw template_hook.forumhome_wgo_pos6}
<vb:if condition="$show['upcomingevents']">
<div id="wgo_events" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/event.png" alt="{vb:rawphrase todays_events}" /><vb:if condition="$show['todaysevents']">{vb:rawphrase todays_events}<vb:else />{vb:rawphrase upcoming_events_for_the_next_x_days, {vb:raw vboptions.showevents}}</vb:if></h3>
<ol>
{vb:raw upcomingevents}
</ol>
</div>
</vb:if>
I tried to make a widget in the following fashions: Static HTML (pasted the code and it just showed code) PHP Direct Execution (showed nothing) and CMS Published Calendar (showed a grid calendar, but not the Forum Home Calendar that i want to show).
I would really like to know where to put this code or how i have to modify it to have it show in a list style like this screen shot from my actual forum home page.
http://armadagames.com/forums/images/forum_home_calendar.jpg
I could really use some help with this problem, i have searched these forums and come up with nothing that works the way i want it to work.
I went through the source and found in the FORUMHOME template the code i think i need.
{vb:raw template_hook.forumhome_wgo_pos6}
<vb:if condition="$show['upcomingevents']">
<div id="wgo_events" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/event.png" alt="{vb:rawphrase todays_events}" /><vb:if condition="$show['todaysevents']">{vb:rawphrase todays_events}<vb:else />{vb:rawphrase upcoming_events_for_the_next_x_days, {vb:raw vboptions.showevents}}</vb:if></h3>
<ol>
{vb:raw upcomingevents}
</ol>
</div>
</vb:if>
I tried to make a widget in the following fashions: Static HTML (pasted the code and it just showed code) PHP Direct Execution (showed nothing) and CMS Published Calendar (showed a grid calendar, but not the Forum Home Calendar that i want to show).
I would really like to know where to put this code or how i have to modify it to have it show in a list style like this screen shot from my actual forum home page.
http://armadagames.com/forums/images/forum_home_calendar.jpg