The Arcive of vBulletin Modifications Site. |
|
![]() |
|||||||||||||||||||||||||
If your site uses the calendar feature, you may want to better publicize events on the forumhome. The default location of the "What's going on?" box is all the way at the bottom of forumhome and is pretty easy to never even see.
So, if you'd like to put another copy of the upcoming events and the day's birthdays at the top of the forums: First, find your FORUMHOME template. Go to: AdminCP > Styles & Templates > Search in Templates > input FORUMHOME & search titles only > edit Find: Code:
<!-- / guest welcome message --> <br /> </if> Code:
<!-- what's going on box --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <if condition="$show['birthdays']"> <!-- today's birthdays --> <tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a> $vbphrase[todays_birthdays] </td> </tr> </tbody> <tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]"> <tr> <td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&day=$today&sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td> <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td> </tr> </tbody> <!-- end today's birthdays --> </if> <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_q]"><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> <!-- end what's going on box --> <br /> If want just the upcoming events without the birthdays, then use this: Code:
<!-- what's going on box --> <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_q]"><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> </if> <!-- end what's going on box --> <br /> In both of these examples, I've removed the header that says "What's Going On?". If you'd rather have that, then do this: After: Code:
<!-- what's going on box --> Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <tr> <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td> </tr> </thead> Show Your Support
|
Comments |
#2
|
|||
|
|||
![]()
Would this be to hard to implement into a module or a place it somewhere on vbadvanced.
|
#3
|
||||
|
||||
![]()
Any screenshots or demo ?
|
#4
|
||||
|
||||
![]()
Screenshot added.
|
#5
|
||||
|
||||
![]()
Thank you very much for the instructions.
I have one question, how do i remove the space on the top and bottom of the cell. I have attached a screen shot. |
#6
|
|||
|
|||
![]()
dont see anything on the top of my forum
![]() |
#7
|
||||
|
||||
![]()
You have a space at the top and bottom of every table on the page. The space below the WGO info seems to be a bit larger than the rest though. Try taking out the final line break tag, <br />
|
#8
|
||||
|
||||
![]()
Great Job, installed.
|
#9
|
|||
|
|||
![]()
Thanks. It worked!
|
#10
|
|||
|
|||
![]()
Hi,
Very nice mod, thanks! How do I modify the box title "What's Going On" to something else? I tried to change but could not get it to work. Thanks! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|