Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Accordion BBCode Details »»
Accordion BBCode
Version: 1337, by pimpery pimpery is offline
Developer Last Online: Aug 2006 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 02-15-2005 Last Update: 05-01-2005 Installs: 30
 
No support by the author.

This is a BBCode Addition that will add the [expand] BBCode to your forum.

The expand tag creates a expandable/collapsable container to hold your content and should be very handy when it comes to organizing tutorials or any other extensive posts.

To use it you would just do [expand=caption]content goes here[/expand]
To see the example, you can click on this link (to see the hack installed on an actual Vbulletin Forum)

Not only can text can be put in an accordion box. You can put anything that you would want in between the expand tags!

Before asking any questions please read the readme of which installation you want (manual or auto). The readmes explain all that is necessary for installing this add-on.

***UPDATE march 8th/2005:
modified the code to auto-expand if person viewing a box does not have javascript enabled. now only one installation is needed (accordion_install.php).
--
optimized javascript function to be quicker.
--
made installing even easier, now uses relative paths (no more search n' replace)
--

-Enjoy!, JaGx

Supporters / CoAuthors

Show Your Support

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

Comments
  #22  
Old 03-07-2005, 03:36 AM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I change the background and font to use stylevars?

I have a few styles that use white writting, so they are showing up as a big blank box.

EDIT - Ahha! I got it Just changed the bbcode replacement to

Code:
<div class='panel'>{option}&nbsp;&nbsp;&nbsp;&nbsp;<img src='/forums/cpstyles/vBulletin_3_Silver/cp_expand.gif' border='0' onclick="expandit(this);"><div style="display: none;"><br><table class='vbmenu_popup'><tr class="alt1"><td class="alt1">&nbsp;&nbsp;<td>{param}</td><td>&nbsp;&nbsp;</td></tr></table><br></div></div>
Awesome hack!!
Reply With Quote
  #23  
Old 03-08-2005, 11:59 PM
pimpery pimpery is offline
 
Join Date: Nov 2004
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Cyricx
How can I change the background and font to use stylevars?

I have a few styles that use white writting, so they are showing up as a big blank box.

EDIT - Ahha! I got it Just changed the bbcode replacement to

Code:
<div class='panel'>{option}&nbsp;&nbsp;&nbsp;&nbsp;<img src='/forums/cpstyles/vBulletin_3_Silver/cp_expand.gif' border='0' onclick="expandit(this);"><div style="display: none;"><br><table class='vbmenu_popup'><tr class="alt1"><td class="alt1">&nbsp;&nbsp;<td>{param}</td><td>&nbsp;&nbsp;</td></tr></table><br></div></div>
Awesome hack!!
cyricx:
just modify the class= tags to whatever class you want them to show up as. if you want to make a custom class, go head, just add it to the extra CSS definitions in the style manager. then have the class= value, as that class.

as for J.C.'s question, the difference is written in the readme, but ill go head and tell you anyways

expanded, means the boxes are expanded by default, when the page loads

collapsed, means the boxes are collapsed by default, when the page loads

for the collapsed version, i added an optional fix above which will have the boxes be expanded by default, for the people without javascript

this way, even though they dont have javascript and cant press the buttons to expand/collapse the boxes, the boxes will be expanded by default, so they can see the contents inside.
Reply With Quote
  #24  
Old 03-09-2005, 06:04 AM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KanyeWest
idont like it thhere is no point wat so ever for this hack
Stop being rude , if you feel theres no use for it then don't use it simple as. Besides other people might find it useful
Reply With Quote
  #25  
Old 03-10-2005, 02:41 AM
sirbutts sirbutts is offline
 
Join Date: Sep 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

kanye, leave pimpery alone or take it somewhere else. this is a thread for a hack, not for your problems.

as for the update: i had to remove the old functions from my global.js, but after that the auto-installer worked perfectly
i must ask though, how did you make the accordion boxes to open up automatically if the person doesn't have javascript? is it the noscript tag??
thanks pimpery, if im a n00b say so!
Reply With Quote
  #26  
Old 03-10-2005, 07:49 PM
sirbutts sirbutts is offline
 
Join Date: Sep 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sirbutts
kanye, leave pimpery alone or take it somewhere else. this is a thread for a hack, not for your problems.

as for the update: i had to remove the old functions from my global.js, but after that the auto-installer worked perfectly
i must ask though, how did you make the accordion boxes to open up automatically if the person doesn't have javascript? is it the noscript tag??
thanks pimpery, if im a n00b say so!
yes, its the noscript tag. it will write out a collapsed div using javascript, only if they have js, otherwise its impossible . if they dont, the noscript tag will take affect.
Reply With Quote
  #27  
Old 03-10-2005, 11:29 PM
pimpery pimpery is offline
 
Join Date: Nov 2004
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sirbutts
yes, its the noscript tag. it will write out a collapsed div using javascript, only if they have js, otherwise its impossible . if they dont, the noscript tag will take affect.
lol, did you just answer your own question? well good for you
Reply With Quote
  #28  
Old 03-13-2005, 06:58 PM
sirbutts sirbutts is offline
 
Join Date: Sep 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeh, i figured it out after a while
Reply With Quote
  #29  
Old 03-13-2005, 07:02 PM
pimpery pimpery is offline
 
Join Date: Nov 2004
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sirbutts
yeh, i figured it out after a while
sirbutts, if u want to test out a new hack im making, contact me on aim, revengist.
Reply With Quote
  #30  
Old 03-19-2005, 06:10 PM
sirbutts sirbutts is offline
 
Join Date: Sep 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pimpery
sirbutts, if u want to test out a new hack im making, contact me on aim, revengist.
ive been on the past 3 days, and u havent :X
Reply With Quote
  #31  
Old 03-23-2005, 03:14 AM
pimpery pimpery is offline
 
Join Date: Nov 2004
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well im on now, so im me, and please, use pms from now on.
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 07:56 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.06106 seconds
  • Memory Usage 2,303KB
  • Queries Executed 26 (?)
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_code
  • (6)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
  • (4)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