Version: 1337, by pimpery
Developer Last Online: Aug 2006
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)
--
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.
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!
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.
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