Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[HowTo] [3.0.3] Add 'Increase Font Size' box to the forums! Details »»
[HowTo] [3.0.3] Add 'Increase Font Size' box to the forums!
Version: 1.00, by Floris Floris is offline
Developer Last Online: Mar 2021 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-18-2004 Last Update: Never Installs: 4
 
No support by the author.

[HowTo] [3.0.3] Add 'Increase Font Size' option to the forums!

By: Floris - http://www.vBulletin-Fans.com/

Description: With this tutorial you will learn how to set up additional child-styles to provide your members with a bigger font-sized style. Selectable through the navigation bar, on each page. (for guests & members)


Installation Instructions


* Goto the Admin Control Panel > vBulletin Options > vBulletin Options > Style & Language Settings > Allow Users to Change Styles?, and make sure this option is set to 'Yes'. A few options lower set Use 'vBMenu' DHTML Popup Menus? to 'Yes'. And save the options to apply the changes.

* Goto the Admin Control Panel > Styles & Templates > Style Manager > From your default (or any) style select to open the drop down menu and click on 'Add Child Style'.

* The 'Parent Style' will automaticly be set, you can skip this. The 'Title' will look like "Child of <style name>", replace this with: "<style name> Bigger 10%". The 'Allow User Selectable' should be 'Yes'. Set 'Display Order' to '100'. And finally click on the 'Save' button to save this new child style.

* Again, goto the Admin Control Panel > Styles & Templates > Style Manager > From your default (or any) style select to open the drop down menu and click on 'Add Child Style'.

* The 'Parent Style' will automaticly be set, you can skip this. The 'Title' will look like "Child of <style name>", replace this with: "<style name> Bigger 25%". The 'Allow User Selectable' should be 'Yes'. Set 'Display Order' to '200'. And finally click on the 'Save' button to save this new child style.

* And again, goto the Admin Control Panel > Styles & Templates > Style Manager > From your default (or any) style select to open the drop down menu and click on 'Add Child Style'.

* The 'Parent Style' will automaticly be set, you can skip this. The 'Title' will look like "Child of <style name>", replace this with: "<style name> Bigger 50%". The 'Allow User Selectable' should be 'Yes'. Set 'Display Order' to '300'. And finally click on the 'Save' button to save this new child style.

* Goto the Admin Control Panel > Styles & Templates > Style Manager > From your Bigger 10% style select to open the drop down menu and click on 'Main CSS'.

* Change the following values, press the 'Save' button when done.

Class: Body
Font Size: 12pt

Class: <td>, <th>, <p>, <li>
Font Size: 12pt

Class: Category Strips
Font Size: 12pt

Class: Table Header
Font Size: 12px

Class: WYSIWYG Editor
Font Size: 12pt

Class: Input Fields
Font Size: 12pt

Class: Buttons
Font Size: 12px

Class: <select> menus
Font Size: 12px

Class: Small Font
Font Size: 12px

Class: Navbar Text
Font Size: 12px

Class: <legend>
Font Size: 12px

Class: Popup Menu Controls
Font Size: 12px

Class: Popup Menu Options Row
Font Size: 12px

Class: Popup Menu Highlighted Option
Font Size: 12px

Class: Additional CSS Definitions
.bigusername { font-size: 15pt; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 12px; }

##########

* Goto the Admin Control Panel > Styles & Templates > Style Manager > From your Bigger 25% style select to open the drop down menu and click on 'Main CSS'.

* Change the following values, press the 'Save' button when done.

Class: Body
Font Size: 14pt

Class: <td>, <th>, <p>, <li>
Font Size: 14pt

Class: Category Strips
Font Size: 14pt

Class: Table Header
Font Size: 14px

Class: WYSIWYG Editor
Font Size: 14pt

Class: Input Fields
Font Size: 14pt

Class: Buttons
Font Size: 14px

Class: <select> menus
Font Size: 14px

Class: Small Font
Font Size: 14px

Class: Navbar Text
Font Size: 14px

Class: <legend>
Font Size: 14px

Class: Popup Menu Controls
Font Size: 14px

Class: Popup Menu Options Row
Font Size: 14px

Class: Popup Menu Highlighted Option
Font Size: 12px

Class: Additional CSS Definitions
.bigusername { font-size: 16pt; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 14px; }

##########

* Goto the Admin Control Panel > Styles & Templates > Style Manager > From your Bigger 50% style select to open the drop down menu and click on 'Main CSS'.

* Change the following values, press the 'Save' button when done.

Class: Body
Font Size: 16pt

Class: <td>, <th>, <p>, <li>
Font Size: 16pt

Class: Category Strips
Font Size: 16pt

Class: Table Header
Font Size: 16px

Class: WYSIWYG Editor
Font Size: 16pt

Class: Input Fields
Font Size: 16pt

Class: Buttons
Font Size: 16px

Class: <select> menus
Font Size: 16px

Class: Small Font
Font Size: 16px

Class: Navbar Text
Font Size: 16px

Class: <legend>
Font Size: 16px

Class: Popup Menu Controls
Font Size: 16px

Class: Popup Menu Options Row
Font Size: 16px

Class: Popup Menu Highlighted Option
Font Size: 16px

Class: Additional CSS Definitions
.bigusername { font-size: 18pt; }
.fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 16px; }

######

* Goto the Admin Control Panel > Styles & Templates > Style Manager > From your default (parent) style expand the template groups. Then expand the template group 'Navigation / Breadcrumb Templates'. Select the 'navbar'template and click on 'customize' or 'edit'.

* Find the following code:
HTML Code:
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if>
* Below it, on a new line, add the following code:
HTML Code:
<br />$vbphrase[increase_font]
* Now find the following code:
HTML Code:
<!-- / login form -->
* Below it, on a new line, add the following code:
HTML Code:
<br />$vbphrase[increase_font]
* And save the navbar template.

* Now goto the Admin Control Panel > Languages & Phrases > Phrase manager > Add new phrase > phrase variable name 'increase_font' and set as content:
Code:
Increase font size: <a href="index.php?styleid=1">0</a>, <a href="index.php?styleid=10">10</a>, <a href="index.php?styleid=20">25</a>, <a href="index.php?styleid=30">50</a>%
(and translate it if needed) And >> Don't forget to replace the styleid! (four times)

* And finally click on the 'Save' button

# Done!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-08-2004, 12:52 PM
imported_yl88 imported_yl88 is offline
 
Join Date: Mar 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thats awesome, thank u!
Reply With Quote
  #3  
Old 07-08-2005, 02:30 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very cool idea! thanks for sharing it with us.
Reply With Quote
  #4  
Old 04-21-2006, 01:05 PM
hyd hyd is offline
 
Join Date: Mar 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
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 02:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06343 seconds
  • Memory Usage 2,241KB
  • Queries Executed 17 (?)
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)bbcode_code
  • (4)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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