vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - CUSTOM BUTTONS that look like your forum! (https://vborg.vbsupport.ru/showthread.php?t=284005)

addamroy 06-05-2012 10:00 PM

CUSTOM BUTTONS that look like your forum!
 
1 Attachment(s)
This MOD will allow you to create custom forum buttons (any text you want, that link anywhere) that look like your forum.

It's a pretty straight forward process, you just need to add an entry to your additional.css template and use the HTML provided to display the button.

Add this to the BOTTOM of your additional.css template.
Admincp > Styles & Templates > Style Manager > Your Style-Edit Templates > CSS Templates > Additional.css
Code:

.custom_forum_button {
        background: {vb:stylevar control_content_background};
        _background-image: none;
        -moz-border-radius: {vb:stylevar control_content_radius};
        -webkit-border-radius: {vb:stylevar control_content_radius};
        -moz-box-shadow: 0 3px 8px {vb:stylevar control_content_shadow_color};
        -webkit-box-shadow: 0 3px 8px {vb:stylevar control_content_shadow_color};
        font: {vb:stylevar control_content_font};
        color: {vb:stylevar control_content_color};
        padding: {vb:stylevar control_content_padding};
        border: {vb:stylevar control_content_border};
        display:inline-block;
}

Feel free to change .custom_forum_button to something else if you feel the need.

Now to display the button, use the following HTML
Code:

<a href="http://yourlinkhere.com/where-ever" class="custom_forum_button">Click my button</a>
Enjoy!

Check out my other Template Modifications for 4.x!

[Postbit-Legacy Hack] Attractive User Info Boxes for Posts

Link Private Forums to thread instead of error message

Sidebar Anywhere Enhancement - Custom Blocks Per Forum or Page

Change Thread Title Color for Specific Forums on Homepage

Change Background Color for Specific Forums on Homepage

Change Title Color of Specific Forums on Homepage

Thread Starter Image in Postbit for OP

Custom User Rank Box in Posts

deverill2010 06-17-2012 08:41 AM

Love it, just what I was looking for!!!

Manoel J?nior 06-18-2012 12:52 AM

Demo, please!

ProFifaLeagues 06-18-2012 04:44 AM

Quote:

Originally Posted by Manoel J?nior (Post 2340563)
Demo, please!


Not much need for a Demo as each forum would be Different anyway.
Just a very easy way to add in Buttons that look the same as what you have on your site anywhere you need them and add in a link and text as per your needs
:up:

https://vborg.vbsupport.ru/external/2012/06/21.jpg

addamroy 06-18-2012 10:36 PM

Thanks pro for stepping in.

Manoel, if you use the code provided, it's literally just a very simple way to add a button similar to the 'new thread' button at the top left of the show thread pages, except it can contain any text, and link to any destination.

addamroy 07-10-2012 12:40 AM

Sorry guys, I forgot the closing </a> tag in the code section in the OP. Fixed it in case any of you who are using this didn't catch that :)

Toorak Times 04-06-2013 01:26 PM

Hi, does anyone know if I can use this on 4.2pl3?

Can I use it as a Buy Now or Download button in a post or does this go in templates somewhere?

vimarc 04-09-2013 02:33 PM

Great modification. This solves my purpose thanks for sharing

ku-med 01-18-2015 08:40 PM

Works great. Thank you!

thetechgenius 01-20-2015 08:17 PM

How come you never include a demo or screenshot with any of your Mods/Addons?


All times are GMT. The time now is 07:18 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.00975 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete