Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Collapseable Announcements Below Navbar Details »»
Collapseable Announcements Below Navbar
Version: 1.0.0, by evenmonkeys evenmonkeys is offline
Developer Last Online: Dec 2018 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 12-22-2005 Last Update: Never Installs: 7
Template Edits
 
No support by the author.

I know there are a lot of announcement hacks, but I made this one especially for my forums. I want my announcements to be accessable at all times. However, I don't want to force users to have to read them more than once. I'd rather give them the option of having it open at all times, or closed.

Description
This will allow you to create announcements under your navbar that users may collapse after viewing it. If they want to read it again, they may uncollapse it. Otherwise, it collapses to a 25 pixel high box, much like the statistics at the bottom of the forumhome.

Templates to edit: 1 (navbar)
Files to Upload: 0

Instructions
1. In your AdminCP, go to Styles & Templates -> Style Manager -> Edit Templates -> navbar.

2. Find:
HTML Code:
<!-- / nav buttons bar -->
Add Below:
HTML Code:
<!-- Announcements -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td align="center" class="tcat" colspan="2">Announcements</td>
</tr>
</thead>
<!-- Example -->
<tbody>
<tr>
<td colspan="2" class="thead"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_ann1')"><img id="collapseimg_forumhome_ann1" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_ann1].gif" border="0" /></a>Title of Announcement</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_ann1" style="$vbcollapse[collapseobj_forumhome_ann1]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" border="0" /></td>
<td class="alt1" width="100%"><div class="smallfont">Put whatever you want in here.</div></td>
</tr>
</tbody>
<!-- // Example -->
<!-- Example 2 -->
<tbody>
<tr>
<td colspan="2" class="thead"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_ann2')"><img id="collapseimg_forumhome_ann2" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_ann2].gif" border="0" /></a>Title of Announcement</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_ann2" style="$vbcollapse[collapseobj_forumhome_ann2]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/whos_online.gif" border="0" /></td>
<td class="alt1" width="100%"><div class="smallfont">Put whatever you want in here.</div></td>
</tr>
</tbody>
<!-- // Example 2 -->
</table>
<!-- // Announcements -->
Notes
If you want more than one accouncement, Just copy the section between the <!-- Example --> part. Then you'll need to change all five of the forumhome_ann1 to fit each announcement. Example: forumhome_ann2, forumhome_ann3. There are five in each announcement. They must all match. Remember that each announcement has a title and a body.

More Notes
Unfortunately, this hack is not cooperating with additional hacks. If you are using the ibProArcade, they will not stay collapsed. However, they will stay collapsed on v3Arcade. If you're using the PhotoPlog, they will not stay collapsed. I have no idea how to fix this. If anyone can help, let me know. Also, if you are using the columns on either side of your forum within FireFox on a 100% wide board, this may also cause issues such as expanding passed the 100% mark. I have been unable to fix this at this point.

I know it's kind of choppy, but all of my users like it. I like it too.

Live Demo: http://forums.section02.com


01/13/2006- Tested on 3.5.3 and works perfectly.

Show Your Support

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

Comments
  #2  
Old 12-23-2005, 06:50 AM
croportal's Avatar
croportal croportal is offline
 
Join Date: Oct 2005
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshot
Reply With Quote
  #3  
Old 12-23-2005, 06:56 AM
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Location: golpo.net
Posts: 931
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sound like a nice idea ..can u provide a bit more info with a screen shot...
any known bug?
On req. customization possible ?
Please thanks
Reply With Quote
  #4  
Old 12-23-2005, 04:33 PM
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Location: Netherlands
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess you can see an example at his forum; http://forums.section02.com/, looks like atleast.
Reply With Quote
  #5  
Old 12-23-2005, 06:47 PM
evenmonkeys's Avatar
evenmonkeys evenmonkeys is offline
 
Join Date: Aug 2004
Location: Iowa
Posts: 896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added some screenshots. Also note that when you go to other pages, they stay the way you left them. The only page that they don't stay the way you left them on is the arcade. I don't know why though...
Reply With Quote
  #6  
Old 12-23-2005, 10:25 PM
apfparadise apfparadise is offline
 
Join Date: Jan 2005
Location: Northridge CA
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Beautifully designed hack. Installed. Looks absolutely beautiful. I actually prefer it to the ones that pull Announcements from the forums. Very easy and flexible. Check it out on my site: http://aquatic-photography.com/forum/
Reply With Quote
  #7  
Old 12-25-2005, 10:57 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one!
Reply With Quote
  #8  
Old 12-26-2005, 04:44 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

In firefox this makes the width of the forum far too big...
I use a portal where that the forum shows within the portal
there when viewing the forum the portal blocks still show at the sides..
These blocks still show ok in IE 7 but in firefox i have to do a lot of scrolling o see the blocks....

Please see for yourself at www.bashys-place.com

Look foward to a resolution as i do like this mod and will have many uses for it

Also, would would i put if i want you insert a URL please?
I have tried the but no worked

Regards

Bashy
Reply With Quote
  #9  
Old 12-26-2005, 08:25 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The 3rd and 4th screenshots are one and the same.
Reply With Quote
  #10  
Old 12-27-2005, 11:34 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No they're not. One is the announcements not-collapsed and the other one has one of the announcements collapsed.
Reply With Quote
Reply


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 03:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09024 seconds
  • Memory Usage 2,305KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_html
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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