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?

jonty 01-15-2010 06:49 AM

Quote:

Originally Posted by steve1966 (Post 1956240)
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
PHP Code:

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

add it in between
PHP Code:

<vb:if condition="$show['member']"

and
PHP Code:

<ul class="isuser"


Dr.osamA 01-16-2010 01:41 AM

thanx

installed
________
Uggs

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

Quote:

Originally Posted by TimberFloorAu (Post 1961969)
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

Quote:

Originally Posted by Front Range (Post 2051770)
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.

Brew 02-02-2011 01:31 AM

Anyone know whether this works with vB ver 4.1.1?


All times are GMT. The time now is 08: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.01283 seconds
  • Memory Usage 1,777KB
  • 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
  • (5)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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