PDA

View Full Version : Forum and Calendar Events


reysharks
07-28-2005, 08:00 AM
Hello,
I would like to know if there is any way to show certain Groups events not only on the forum home page, but also in a user-specified forum/subforum page.

I tried to copy the code for showing events found in the home page, into the forumdisplay, but it doesn't seem to work.
The code I copied is this as follow:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<if condition="$show['upcomingevents']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
<if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
<tr>
<td class="alt2"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>
</table>

Thank you in advance for any replies.

Lionel
07-28-2005, 09:20 AM
You would also need to copy the part of the code that deals with that into forumdisplay.php

Freddie
07-28-2005, 01:23 PM
Hello lionel, I'm a Reysharks' friend and we manage the same forum together.
First of all I'd like to thank you for your quick reply, we really appreciate that :)

We tried to copy the code that Reysharks posted before, into the forumdisplay template in the place we would like to display the events.
I'm gonna show it to you (I took just a cut of the forumdisplay code and i added an HTML comment to highlight the point):

<if condition="$show['popups'] AND $show['forumsearch']">
<!-- forum search menu -->
<div class="vbmenu_popup" id="forumsearch_menu" style="display:none">
<form action="search.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="forumchoice" value="$forumid" />
<input type="hidden" name="childforums" value="1" />
<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]forumid=$forumid">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / forum search menu -->
</if>

<!-- We would like to have the certain group events shown in this place -->

<!-- icon key -->


I try to explain a bit what is what we would need.
We have a community forum, with several discussion areas, one of this is related to play online games. For this reason, we have created a new calendar in which we can schedule online gaming events with all our players.
Our need is to have these events shown into this community forum instead of having them only on the main home page

I hope you can help us and thank you again.

Lionel
07-28-2005, 01:40 PM
You would also need to copy the part of the code that deals with that into forumdisplay.php

Since you basically repeated the same question, I am quoting my answer again.

reysharks
07-28-2005, 03:08 PM
You would also need to copy the part of the code that deals with that into forumdisplay.php

Yes ok...but...where it is? :D is there a simple way to find it?

Lionel
07-28-2005, 04:57 PM
In forums/index.php there is an entire block for calendar. I can't post mine here because it has been heavily hacked and that will confuse you even more. Be careful if you don't know php. Backup first.

reysharks
07-29-2005, 05:37 AM
Ok now it's more clear, we'll check for it, thanks! :)