View Full Version : collapse / expand text link
bestmilan
07-24-2007, 06:05 AM
Hello,
I would like to add some "collapse / expand text links" next to the collapse buttons on our forum's homepage. It should work the same way like it does here on the vbulletin.org index page...
https://vborg.vbsupport.ru/index.php
Thank you very much for your advice!
Dismounted
07-24-2007, 11:19 AM
Just modify that button and add the text. If you notice, the text is actually part of the image.
Kirk Y
07-24-2007, 05:54 PM
There's really no way to have the text change based on the block's status, so you'll either have to change the collapse/expand images and add in "Collapse" or "Expand"; or you could say Collapse/Expand I suppose in just text, if you don't want to edit the images.
Either way, this is the relevant section of code you're looking for:
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
This is located in the "forumhome_forumbit_level1_nopost" template.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.