The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Move 'Upcoming Events' to the top of your Forum Home Details »» | |||||||||||||||||||||||||||
Move 'Upcoming Events' to the top of your Forum Home
Developer Last Online: Feb 2009
simple, i know.. but it was just requested in mod requests, so i figure i might as well put it here.
in your FORUMHOME template, find and remove: HTML Code:
<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> HTML Code:
<!-- begin upcoming events --> <if condition="$show['upcomingevents']"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <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></table><br /> </if> <!-- end upcoming events --> Show Your Support
|
Comments |
#2
|
|||
|
|||
You forgot to add this in your first edit.
PHP Code:
|
#3
|
|||
|
|||
fixed. thanks!
|
#4
|
||||
|
||||
Thanks for sharing your mod. If you don't mind, could you put your instructions in a text file and attach it rather than having the instructions in the thread? It makes it easier for members to refer back to a modification if they need to install it again for whatever reason. Thanks.
|
#5
|
|||
|
|||
Will this work for 3.5 Gold?
Thanks! troy |
#6
|
||||
|
||||
Some of the variables will probably vary for 3.5, but if you try make sure you make a backup of your template before doing so.
|
#7
|
||||
|
||||
Stupid question:
If i take that code niblet (the <if statement en toto) I can place it as I liek on that page. Sweet. Our members have asked that the current events box also be displayed when goign to the main calendar page since it makes a nice summation. I have played with that but I cannot get it to show. Does the calendar.php lack something this is calling? |
#8
|
|||
|
|||
bump for BP. I'm curious also.
|
#9
|
|||
|
|||
Can I do this in 3.6.4? I can't seem to find 'FORUMHOME'
|
#10
|
|||
|
|||
Found it. Thanks.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|