vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Change collapse/expand buttons to text (https://vborg.vbsupport.ru/showthread.php?t=104775)

Cle 01-08-2006 10:05 AM

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.

Cle 01-15-2006 05:58 PM

So there's no solution for this one? :(

Cle 01-22-2006 03:29 PM

*bump*

Cle 01-26-2006 12:03 PM

Still waiting.. :(

PennylessZ28 06-24-2006 01:13 AM

Ditto

Blaine0002 06-24-2006 02:08 AM

couldnt you just change the graphic and put text in it o.O

Kirk Y 07-02-2006 03: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 03: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:
Code:

$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:
Code:

<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:
Code:

$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:
Code:

<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 05:32 PM

Yeah that's basically what I did, just said Show/Hide.


All times are GMT. The time now is 02:11 AM.

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.01555 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete