vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Using image buttons in vB4 series postbits (https://vborg.vbsupport.ru/showthread.php?t=284054)

ged 06-06-2012 04:31 PM

Using image buttons in vB4 series postbits
 
How can we use image buttons in vBulletin 4 postbits like vBulletin 3 postbits?

I mean quote, reply, quick reply buttons like this post has. In which template can we replace image buttons instead of current text buttons?

Thank you very much.

Attitude5ire 06-07-2012 07:43 AM

You can but would need lot of edits..
all the buttons are in 'postbit' or 'postbit_legacy' template

ged 06-07-2012 11:43 AM

Can you show just a single edit? For example, how can I replace the "Edit" button?

ged 06-14-2012 02:17 PM

Anyone please?

ged 01-10-2013 09:13 PM

Any ideas? :)

WorldCraft 01-11-2013 02:23 AM

Do you wish to make this change across all styles? There's a few ways you can go about doing this, but I'd read this entire post before trying anything.

You could backup your /forums/images/buttons/ directory (or just the images you will be replacing). Replace the vB4 postbit buttons with the vB3 ones (while using the vB4 names). You will also need to replace the hover ones as well. So for example, for reply you would upload 2 copies of the vB3 reply button. One named "reply_40b.png" and "reply_40b-hover.png"

OR if you don't worry much about space just copy the buttons directory, name it something else, then overwrite your images there. Then for your styles change the imgdir_button stylevar to the new folder...

The potential issue I see with doing this, is that the template and CSS will make your buttons look like this. For an example I just tried with the quote button:
https://vborg.vbsupport.ru/external/2013/01/43.png

Removing the text is simple enough, you would go to your postbit or postbit_legacy template and remove the {vb:rawphrase}'s for each button. So for reply you'd remove {vb:rawphrase reply} from the template. But once you do that, you'll need to play around with the CSS to get them to fit right....or completely move them somewhere else in the template.


All times are GMT. The time now is 11:47 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.01013 seconds
  • Memory Usage 1,716KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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