is there something around to duplicate the function that fontsize fulfilled? I even tried applying the patch that exists without luck.

Has anyone got fontsize working on 5.1?

Comments

vic2007’s picture

i got it working on my sites : http://accessability.co.in & www.employability.co.in

The module (with the patch) works wonderfully - u just need to add a 'smaller.css' file.

Hope this helps,

Vic

esllou’s picture

I applied the patch and added the smaller.css file too as well as the .info file.

The three A links appear but when I click each one, I get a "page not found" error.

Using Drupal 5.1. Anyone else dealt with this problem? Is there something else I need to activate?

nvisolut’s picture

I had same problem.

adshill’s picture

Is there any way that anyone can share a copy of the patched module... I'm really not understanding how to patch things! Apologies but its taking up ages trying to understand as I'm not a command line developer - I only know the basics.

I really need this functionality to add to accessibility options!

Thanks.

fannar’s picture

adshill’s picture

Many thanks Fannar, much appreciated.

Just out of interest - any ideas why this doesn't work with the default drupal theme? Its not a problem as I am using bluemarine but was just wondering what it might be for future reference.

Thanks again.

esllou’s picture

I downloaded the patched module and it STILL wouldn't work....although I'm (currently) using Garland theme, so adshill's comments might be relevant here.

Anyway, I still get the same problem....all the A's appear, I click on them and nothing at all happens. :-(

adshill’s picture

Hi esllou...

I had the same problem and then I switched to the bluemarine theme and it works perfectly. Personally I find bluemarine much easier to develop new themes from and so it doesn't affect me - is there any way you can change themes or is garland your only option?

Hope you can sort it out.

esllou’s picture

I'm not too bothered actually as we are getting a spanking new theme installed in 7-10 days so I will give it another go then.

dellis’s picture

I've included this copyright notice in the module file itself as well as in the js file... so I'll add it here too. I didn't write the .js file, but I'd used it elsewhere.

/***********************************************
* 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
***********************************************/

See: http://www.dynamicdrive.com/dynamicindex9/textsizer.htm for more help in customizing.

Anyway, this slightly modified version of the original fontsizer (I basically scrapped the .js file that came with it and swapped it out for one created by Taewook Kang) seems to work for me in all of the themes I've tried in v. 5.1. You can edit the parameters in the textsizer.js file with regard to how many levels of font-size change you want to allow (so ostensibly if you wanted the three "A's" like in the other version you could still do it with minor tweaking). Also you can obviously alter the order and or number of steps in size you take with each click by modifying the module onclick piece of code. I don't know if this is helpful to any of you, but maybe someone will find it useful.

What I'd really like to be able to do is add an image to the block...

http://www.ellishiking.com/fontsize_new.zip

adshill’s picture

I haven't tried this yet but I intend to - because the previous block although useful, was not actually AAA complient as it wouldn't allow changes by keypress - a vitally important tool for some disabilities. The DD demo seems to allow this and so I'll be giving it a try! Thanks Dellis!! :)

seventhfury’s picture

This is a great tool, but I can't get it to work in 5.2. Any idea of what I can do differently to get it to work? I've got it working in 4.6 and it's great.

Any help would be greatly appreciated, or any other options that anyone knows of. I haven't been able to get this text sizer to work and I know it's gotta be a simple fix.

Thanks!

CZ’s picture

seventhfury’s picture

Are there any ways to update this so it will work with 5.2? I think that the functionality behind this is absolutely great and I'd love to use it on the site I'm building. Any help would be appreciated, thanks!

yogitha’s picture

Hi ..
For those whose are unable to use this module. i tell u 2 simple things to do.

1)In Page.tpl.php
.In head region -copy and paste the function in js file.
like
head
script
var tgs = new Array( 'div','td','tr', 'h1');
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large');
var startSz = 2;
function ts( trgt,inc ) {
if (!document.getElementById) return
var d = document,cEl = null,sz = startSz,i,j,cTags;

sz += inc;
if ( sz < 0 ) sz = 0;
if ( sz > 6 ) sz = 6;
startSz = sz;

if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];

cEl.style.fontSize = szs[ sz ];

for ( i = 0 ; i < tgs.length ; i++ ) {
cTags = cEl.getElementsByTagName( tgs[ i ] );
for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
}
}
/scripts
/head
2) place the below code in body region in page.tpl.php
where ever u want to display font to inc r dec in ur site
+ Larger Font | + Smaller Font like
a href="javascript:ts('body',1)"+ Larger Font/a | a href="javascript:ts('body',-1)">+ Smaller Font /a

attheshow’s picture

There's a Drupal 6 module that I built for this a few months ago, called Text Resize.
http://drupal.org/project/text_resize
Let me know how it goes!

Mark W. Jarrell
Manager of Web Services
Jones Knowledge Integration Group, Inc.
http://www.jones.com
http://www.jonesknowledge.com
http://www.jonesdifference.com
http://www.jiu.edu
Twitter: attheshow