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)
-   -   Mini Mods - Font Sizer (https://vborg.vbsupport.ru/showthread.php?t=232869)

TimberFloorAu 01-11-2010 10:00 PM

Font Sizer
 
1 Attachment(s)
Easy Increase and Decrease font size.

2 minutes to code. Please mark installed if you use. Tested on VB4 gold, IE7 FF and Chrome

Admincp > Styles and Templates > Search In Templates.

Then open template : headinclude

At bottom of page add:

Code:

<script type="text/javascript" src="textsizer.js">

/***********************************************
* Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights reserved.
* Coded by: Taewook Kang (http://www.txkang.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

Save.

Then open template : header

Find this code:
Code:

<vb:if condition="$show['member']">
                        <ul class="isuser">

Add after
Code:

<li><a href="javascript:ts('body',1)">+ </a> / <a
href="javascript:ts('body',-1)">-</a></li>

Click Save.

upload the enclosed js file to your "forum root"

Done.

steve1966 01-12-2010 08:49 AM

thank you

TimberFloorAu 01-12-2010 09:02 AM

Cookie version: http://nicusor.com/programming-stuff...e-with-cookie/

Happy to adapt for VB if there is a need.

VonDoom 01-12-2010 10:27 AM

Good stuff my members are going to love this. as far as cookies i cant imagine why a cookie based version wouldn't be appreciated. That would definitely be a plus. Thanks installed and rated 5 stars from my members.

worried 01-12-2010 12:01 PM

Quote:

Originally Posted by TimberFloorAu (Post 1953364)
Cookie version: http://nicusor.com/programming-stuff...e-with-cookie/

Happy to adapt for VB if there is a need.

Would love the cookie version even better. I have your current version installed.

TimberFloorAu 01-12-2010 08:08 PM

Will look into this today, was late last night when i released this mini mod :)

Hornstar 01-12-2010 09:11 PM

I think I am half asleep here, but what font size on the site does it change and for who and what? ^^

jonty 01-14-2010 07:57 AM

Excellent!

Cookie based would be nice.
Installed and working but it reverts to normal when any link is followed.

I've also moved it and taken it out of the <ul> tags as it wasnt displaying properly (ie8).
PHP Code:

<a href="javascript:ts('body',1)">[<b> + </b>]</aText Size <a
href
="javascript:ts('body',-1)">[<b> - </b>]</a

https://vborg.vbsupport.ru/

TimberFloorAu 01-15-2010 04:07 AM

Cheers Jonty.

I had got cookie based version working ( ish ) then VB went and did an upgrade, will look at it again over weekend.

steve1966 01-15-2010 05:44 AM

Quote:

Originally Posted by jonty (Post 1955236)
Excellent!

Cookie based would be nice.
Installed and working but it reverts to normal when any link is followed.

I've also moved it and taken it out of the <ul> tags as it wasnt displaying properly (ie8).
PHP Code:

<a href="javascript:ts('body',1)">[<b> + </b>]</aText Size <a
href
="javascript:ts('body',-1)">[<b> - </b>]</a

http://img193.imageshack.us/img193/497/textsize.jpg

thanks but where do i put the code to dispaly in the same place as you?


All times are GMT. The time now is 12:48 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.01071 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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