View Full Version : Change collapse/expand buttons to text
Hi,
although the title speaks for itself, I'll just elaborate my "problem" here. Back in the vB2 days, I could replace the button which was supposed to expand or collapse a category with text such as 'Collapse' and 'Expand'. However, I'm using the newest vB3.5.3 version and I can't seem to make it work with text. Does anyone here know how to replace the buttons with text and make it work at the same time? :p
Thanks in advance,
- Cle.
So there's no solution for this one? :(
PennylessZ28
06-24-2006, 02:13 AM
Ditto
Blaine0002
06-24-2006, 03:08 AM
couldnt you just change the graphic and put text in it o.O
Kirk Y
07-02-2006, 04:57 AM
You could, but it wouldn't change to reflect the category's status of either being collapsed or expanded. I'm trying to figure this out too, though.
Behemoth
07-02-2006, 04:54 PM
This will not make the text change when it is collapsed or expanded. I'm still working on that. For now, you could just use something like Collapse/Expand. ;)
Alright, in the style you want it to appear in, you'll need to do a couple simple searches. There is no real simple way of doing this, but I'd imagine a hack would be pretty easy to create.
Anyways, go to Styles & Templates -> Search in Templates, and search for:
$stylevar[imgdir_button]/collapse_thead$vbcollapse
Now you will have to go to each template that code is found in, and, it should automatically be in the searchbox, so just hit find. Once you find it, you should see something similar to:
<img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" />
Just replace all that with the text you would like to use.
Now, the next section of editing is no tougher, but it will require substantially more time.
Like before, go to Styles & Templates -> Search in Templates, but this time search for:
$stylevar[imgdir_button]/collapse_tcat$vbcollapse
Now you will see a large list of templates that contain this code, so you'll have to go in and do the same as you did last time. You should find something similar to:
<img id="collapseimg_editannc_options" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_editannc_options].gif" alt="" border="0" />
Replace that with the text you want.
Hope this helps. :D
Kirk Y
07-02-2006, 06:32 PM
Yeah that's basically what I did, just said Show/Hide.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.