vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Replace buttons with text for New Thread, Edit, Quote, Post Reply (https://vborg.vbsupport.ru/showthread.php?t=250236)

pcunite 09-09-2010 11:18 PM

Replace buttons with text for New Thread, Edit, Quote, Post Reply
 
Currently using vBulletin 3.8.6 and I wish to replace the default gif buttons with text. Buttons like New Thread, Edit, Quote, Post Reply and so on. I am new to vBulletin but familiar with html and php. If you could just tell me the best procedure for doing this I can figure it out.

kh99 09-10-2010 12:04 PM

I think you should just have to edit the corresponding templates. To find out what template something is in, you can turn on the "Add template Names in HTML Comments" option (In the admin control panel, go to vBulletin options -> general settings). Then you can view the HTML source of your page and look at the comments. Sometimes it's annoying because lots of templates are nested and going backwards you find "end of template" "begin template" "end of template" "begin template" etc lots of times, in that case it might be easier to scroll to the top and see what the "top level" template is and check that one first.

To edit a template, go to Styles and Templates -> Style Manager then pick "Edit Templates" from the dropdown next to the style you want to edit, then choose the template from the drop-down. The list is organized hierarchically so you may have to search around. Or you can use the "Search in Templates" function with "Search Titles Only" to find one quickly (of course you can also use "Search Titles Only = no" to search the contents of the templates).

If you haven't seen it already, the manual is at http://www.vbulletin.com/docs/html/ (make sure to choose your version from the drop-down because it defauts to a 4.0 version).


ETA: So that I don't mislead anyone in the future - you can change from images to text by editing the template for everything except "multiquote" - see this thread: https://vborg.vbsupport.ru/showthread.php?t=224978

Lynne 09-10-2010 01:33 PM

They are all text already, so I'm not sure what you mean. The only ones that have an image with them are the Edit/Quote ones in the thread, and those images are just in the CSS (look in the page source, find image name (edit_40b.png) and search in templates for it). So, just change the CSS to not include the images. But, I don't know what you mean about the New Thread and Reply to Thread buttons - those are already just text.

kh99 09-10-2010 02:11 PM

He mentions New Thread, Edit, Quote, and Post Reply which are all images, at least in the style I'm using.

For example, a section of the SHOWTHREAD template is:

Code:

<!-- controls below postbits -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:$stylevar[margin_3px_fix]px">
<tr valign="top">
  <if condition="$show['largereplybutton']">
    <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID" rel="nofollow">
      <if condition="$show['closethread']">
        <img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" />

      <else />
        <img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" />
      </if></a></td>
  <else />
    <td class="smallfont">&nbsp;</td>
  </if>


and the part in red is the "Post Reply" button. (Unless I'm missing something).

Lynne 09-10-2010 02:14 PM

Argh. Can I use the excuse of having answered this without coffee yet? I was thinking vB4, not vB3. Need.... more.... coffee.....

kh99 09-10-2010 02:20 PM

Yeah, that's a good excuse. :) I was wondering if it was a vB4 thing.

Lynne 09-10-2010 02:22 PM

Oh, and to the OP.... look in the Similar Threads for what you want. :)


All times are GMT. The time now is 01:09 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.01030 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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