View Full Version : Mini Mods - Font Sizer
TimberFloorAu
01-11-2010, 10:00 PM
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:
<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:
<vb:if condition="$show['member']">
<ul class="isuser">
Add after
<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/javascript-text-resize-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
Cookie version: http://nicusor.com/programming-stuff/javascript-text-resize-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).
<a href="javascript:ts('body',1)">[<b> + </b>]</a> Text Size <a
href="javascript:ts('body',-1)">[<b> - </b>]</a>
https://vborg.vbsupport.ru/ (http://img193.imageshack.us/i/textsize.jpg/)
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
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).
<a href="javascript:ts('body',1)">[<b> + </b>]</a> Text Size <a
href="javascript:ts('body',-1)">[<b> - </b>]</a>
http://img193.imageshack.us/img193/497/textsize.jpg (http://img193.imageshack.us/i/textsize.jpg/)
thanks but where do i put the code to dispaly in the same place as you?
jonty
01-15-2010, 06:49 AM
thanks but where do i put the code to dispaly in the same place as you?
In the header template, instead of adding it just after
<vb:if condition="$show['member']">
<ul class="isuser">
add it in between
<vb:if condition="$show['member']">
and
<ul class="isuser">
Dr.osamA
01-16-2010, 01:41 AM
thanx
installed
________
Uggs (http://uggstoreshop.com/)
alawee.blawee
01-19-2010, 06:54 AM
you're a master
RedFoxy
01-21-2010, 01:56 AM
Do you think to update to cookie version? I'm tring to understand how to use it on my forum, now I'm using the standard version
Alien
01-21-2010, 03:04 AM
This will be excellent for us.
I'm looking forward to the cookie-based solution for several sites. I'd like to put it in the footer, would that be any problem?
TimberFloorAu
01-21-2010, 03:33 AM
We are still working on cookie based version. This is justa fun mod. Soon as I get time I will do it, the code is open source so anyone can modify it to suit their needs ;)
BadgerDog
05-12-2010, 09:06 PM
We are still working on cookie based version. This is justa fun mod. Soon as I get time I will do it, the code is open source so anyone can modify it to suit their needs ;)
Would really appreciate a cookie based version...... :up:
Our membership demographic is 55+ with a lot of members up into their late 70's .. :D
So, an ability to set font size would be terrific ...
Thanks for your efforts ... :)
Regards,
Badger
UnixGeek
05-13-2010, 09:41 PM
I am also looking forward for a cookie based one! It would be really helpful for a lot many!
Tanapangarap
06-10-2010, 03:16 AM
Yes, a cookie based version would be nice. I'm using vB 3.8, though, so I wonder if I can properly add the feature.
Front Range
06-10-2010, 11:01 PM
Would the cookie version solve the issue of the text size reverting every link?
kmohamed
06-10-2010, 11:59 PM
please provide us with demo and/or pics
it sound great thanx
Tanapangarap
06-14-2010, 10:47 PM
Would the cookie version solve the issue of the text size reverting every link?
From the posts I've read in several topics having to do with a font sizer, that's indeed the impression I've gotten.
promoprompt
06-15-2010, 04:22 PM
TimberFloorAu,
I have install it, but it dont work. Nothing happens if any click on + or -
Any hints for me?
promoprompt
07-07-2010, 09:18 PM
So I see, this tool is NOT supported.
There are some differences from 4.0.0 to the higher versions.
I need help please.
dvsDave
08-04-2010, 02:07 PM
There are a couple of methods that vbulletin supplies to interact with cookies. setcookie, vbsetcookie, etc... I just did some quick research to confirm that there is indeed a method to set a variable.
However, wouldn't it be just as easy to set or just store the text size in a custom profile field in the userCP?
Just a thought.
Anyone know whether this works with vB ver 4.1.1?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.