The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Show Events & Birthdays on Additional Forum Pages Details »» | |||||||||||||||||||||||||||
Show Events & Birthdays on Additional Forum Pages
Developer Last Online: Jun 2014
This hack will allow you to display upcomming events and birthdays at the top of the forum display, show thread and/or search pages. It uses the forums normal calendar permission rules, so only authorized users will be able to see your forum's events. The hack will correctly install for both 3.5.x and 3.6.0 version forums.
Installation: 1. Use the Product Manager to import the product file product-rah_events_on_forum_pages_1_1_0 2. Configure the product options as desired under the vBulletin options, "Events on Forum Pages". 3. Use the Style Manager to add the code below to the bottom of the navbar template. HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <!-- today's birthdays --> <if condition="$show['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> </if> <!-- end today's birthdays --> <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> <br /> That's it. You're done. Enjoy! Please find sample screenshots of the options menu and the forum display page attached. If you have any questions, please feel free to PM me. Show Your Support
|
Comments |
#12
|
||||
|
||||
It'd be nice, if there is an option to set specific forum for events & birthdays. for example, I've an forum for members birthdays.. so i only want to show birthdays on that section.. thx..
//Edit .. Oops sorry! MrNase already posted this |
#13
|
|||
|
|||
Quote:
That would be great - thank you! |
#14
|
||||
|
||||
Quote:
For instance, I use the "Event Forums" mod, which already puts a display of X days at the top of calendar-linked forums. In those forums I'd like to use the Event Forums display for 7 days worth of events, but use your mod to display just a day or two everywhere else. Other than that, this mod looks perfect for my site. -- hugh |
#15
|
|||
|
|||
I have confirmed that this hack is working with 3.6.0 through 3.6.2.
|
#16
|
|||
|
|||
I get an error when I use it:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of convert_bits_to_array(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /is/htdocs/wp1012303_QBSRR1K0AQ/www/board/forumdisplay.php(106) : eval()'d code on line 103 AND vBulletin Message Unable to add cookies, header already sent. File: /is/htdocs/wp1012303_QBSRR1K0AQ/www/board/forumdisplay.php(106) : eval()'d code Line: 103 |
#17
|
|||
|
|||
Awesome. I had just did the templace edit manually to show on Forum home and was dreading having to do it all by hand to show other places.
I removed my manual template edit from FORUMHOME and followed your directions. This hack did the trick very nicely to have it show other places with only the one template edit in navbar. Thanks! |
#18
|
|||
|
|||
Hi!
I have the following problem: On the forum index I see this (index.php): http://www.necronia.de/home1.jpg That's ok But when I switch to a forum I see this (forumdisplay.php): http://www.necronia.de/forum1.jpg Same in viewing a thread (showthread.php) Can someone help me? I'm using vBulletin 3.6.4. Thx, GHoSti |
#19
|
|||
|
|||
Hello,
Thank you for this great addon! One suggestion but I don't know if it's doable since it's probably intertwined with VB... It would be great to be able to select which calendar to display on which forum since VB allows for creation of multiple calendars. Once again, thanks a lot for this mod, it's exactly what I've been looking for! - Jeff |
#20
|
|||
|
|||
Farcaster, like Jeff suggest, is there a way to make these info display on a specific forum only?
|
#21
|
|||
|
|||
Confirming that this works on 3.6.3
Great hack, just what I was looking for. Thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|