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
  #22  
Old 03-08-2007, 10:05 AM
abroad abroad is offline
 
Join Date: Mar 2007
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using 3.6.5 but after installation nothing changed on my site...no upcoming events...nothing... all options are "YES"?

Can somebody help me?
Reply With Quote
  #23  
Old 04-13-2007, 12:29 PM
memorex memorex is offline
 
Join Date: Mar 2004
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this hack, Thanks Farcaster.

I also would love to use this on vbadvanced portal.
Reply With Quote
  #24  
Old 04-13-2007, 12:46 PM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to only see special calendars on special forums.
Reply With Quote
  #25  
Old 04-13-2007, 10:57 PM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sweet how many additional queries does this add?
Reply With Quote
  #26  
Old 04-21-2007, 09:00 PM
nebu nebu is offline
 
Join Date: Sep 2006
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this hack didnt work with 3.6.4.
i installed, edited the template and ... nothing happaned.

all to yes!

there is only 1 change. i have 1 more line between the navbar and
the forum, but it is a clear line.
nothing in it

can someone help me?


ADD:
after reboot .... they appear.
but!
only the today events!
why doesnt appear upcoming events?

tell me, how i can set the days for the events to display.
Reply With Quote
  #27  
Old 05-21-2007, 07:37 PM
santimariani santimariani is offline
 
Join Date: Oct 2006
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Help! I am getting the following error:

Database error in vBulletin 3.6.5:

Invalid SQL:

SELECT
c.calendarid,
max(CASE WHEN cp.calendarpermissions IS NULL THEN
ug.calendarpermissions
ELSE cp.calendarpermissions
END) maxPerm
FROM
usergroup ug
CROSS JOIN calendar c
LEFT JOIN calendarpermission cp ON
c.calendarid = cp.calendarid
AND cp.usergroupid = ug.usergroupid
WHERE
ug.usergroupid IN (6, 09)
GROUP BY
c.calendarid;;

MySQL Error : Unknown column 'ug.usergroupid' in 'on clause'
Error Number : 1054
Date : Monday, May 21st 2007 @ 08:36:59 PM
Script : XXXX
Referrer : XXXX
IP Address : XXX
Username : XXX
Classname : vB_Database

Thanks for what is promising to be a very useful mod.
Reply With Quote
  #28  
Old 06-14-2007, 04:54 PM
santimariani santimariani is offline
 
Join Date: Oct 2006
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was able to install it and it is a very good mod, but... it did add about 5 queries, so, sadly, I had to uninstall it. Is there any way of decreasing the quearies this mod requires? That would be great.
Reply With Quote
  #29  
Old 08-07-2007, 01:51 PM
Ignicoccus Ignicoccus is offline
 
Join Date: Aug 2006
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I have the problem that your mod shows the birthdays on forumhome, even though I did switch this feature off (I only want to show events). Any ideas on this ?
Reply With Quote
  #30  
Old 08-21-2007, 12:56 AM
joker2040 joker2040 is offline
 
Join Date: Jan 2006
Location: Kentucky
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works on 3.6.5
Reply With Quote
  #31  
Old 08-21-2007, 08:21 PM
Farcaster Farcaster is offline
 
Join Date: Dec 2005
Posts: 386
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ignicoccus View Post
Hi,

I have the problem that your mod shows the birthdays on forumhome, even though I did switch this feature off (I only want to show events). Any ideas on this ?
Have you also disabled the vBulletin option to show birthdays on the forumhome?
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:19 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.04704 seconds
  • Memory Usage 2,308KB
  • 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
  • (1)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