Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2010, 11:18 PM
pcunite pcunite is offline
 
Join Date: Aug 2010
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 09-10-2010, 12:04 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 09-10-2010, 01:33 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 09-10-2010, 02:11 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #5  
Old 09-10-2010, 02:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Argh. Can I use the excuse of having answered this without coffee yet? I was thinking vB4, not vB3. Need.... more.... coffee.....
Reply With Quote
  #6  
Old 09-10-2010, 02:20 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, that's a good excuse. I was wondering if it was a vB4 thing.
Reply With Quote
  #7  
Old 09-10-2010, 02:22 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, and to the OP.... look in the Similar Threads for what you want.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:00 PM.


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.04219 seconds
  • Memory Usage 2,213KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete