Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Show Events & Birthdays on Additional Forum Pages Details »»
Show Events & Birthdays on Additional Forum Pages
Version: 1.1.0, by Farcaster Farcaster is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Category: Calendar Enhancements - Version: 3.6.2 Rating:
Released: 09-06-2006 Last Update: Never Installs: 63
Uses Plugins Template Edits
 
No support by the author.

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 />
Note that if you do not want the events to be shown both at the top of the forum home page and at the bottom, you will need to remove the original tables from the forumhome template.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-13-2006, 06:46 AM
soulface's Avatar
soulface soulface is offline
 
Join Date: Sep 2005
Location: Dhaka, BD
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 09-13-2006, 04:11 PM
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Farcaster
In its present form no, but I will see about adding it in a future revision.

That would be great - thank you!
Reply With Quote
  #14  
Old 09-21-2006, 09:48 PM
cheesegrits's Avatar
cheesegrits cheesegrits is offline
 
Join Date: May 2006
Posts: 500
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrNase
One addition that might be handy for some: Add an option to select on which forums this information is shown. Imagine someone has a forum where people discuss events - it would be good to show the upcoming events only on that forum because on the other forums it's just an information-overkill.
I second the request for per-forum selection. Although I'd suggest having it the other way round - a list of forums NOT to display it on.

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
Reply With Quote
  #15  
Old 10-20-2006, 05:59 AM
Farcaster Farcaster is offline
 
Join Date: Dec 2005
Posts: 386
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have confirmed that this hack is working with 3.6.0 through 3.6.2.
Reply With Quote
  #16  
Old 11-15-2006, 01:34 PM
SHD Born2Fight SHD Born2Fight is offline
 
Join Date: May 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 11-15-2006, 01:41 PM
Canis Firebrand Canis Firebrand is offline
 
Join Date: Jun 2006
Location: Michigan
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #18  
Old 12-20-2006, 05:20 AM
GHoSti GHoSti is offline
 
Join Date: Nov 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 02-25-2007, 11:30 AM
Fangorn Fangorn is offline
 
Join Date: Oct 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #20  
Old 02-27-2007, 04:12 AM
ConKien ConKien is offline
 
Join Date: Apr 2004
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Farcaster, like Jeff suggest, is there a way to make these info display on a specific forum only?
Reply With Quote
  #21  
Old 03-06-2007, 01:30 PM
kizzmet kizzmet is offline
 
Join Date: Sep 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Confirming that this works on 3.6.3

Great hack, just what I was looking for. Thanks!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06366 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete