Closed (won't fix)
Project:
Font size
Version:
master
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2007 at 21:49 UTC
Updated:
21 Sep 2012 at 13:52 UTC
Jump to comment: Most recent file
Thanks for your great module. We are using it on quite a couple of sites.
I patched fontsize to 5.0.
Changes:
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | fontsize_new.zip | 9.13 KB | kenorb |
| fontsize-5.0-patch.tar.gz | 2.74 KB | alex_b |
Comments
Comment #1
yktdan commentedI have not tested it yet on 5 but I have looked at the patch and it is missing a change that is needed to get from 4.6 to 4.7
href="'. base_path() . drupal_get_path in three places you need to insert base_path()
Comment #2
stevenlael commentedI patched it and tried it on 5.0. It switches between normal and large sizes fine, and between small and large sizes fine, but not between small and normal sizes at all.
Comment #3
fannar commentedWell you shouldn't need to follow #1 to upgrade from 4.6 to 4.7 because these lines are being removed.
So don't add
base_path()And for #2 is because there is only
normal.cssandlarger.css. So just copy one of those tosmaller.cssand edit it to your needs (something likefont-size: 80%;).You can also see how to patch this file at: http://drupal.org/patch/apply
Or you can download the attachment from me at http://drupal.org/node/132886 where I have already patched the right files and created the
smaller.cssfile.Comment #4
yngens commentedpatch works fine in FF. In IE it gives page not found error :(
Comment #5
yngens commentedforget to mention IE's version # - i tested in IE7
Comment #6
hass commentedAs a interims solution, use font size from http://www.yaml-fuer-drupal.de/de/download#fontsize, please. This version will probably replace this project code after i rewrote some of the JS code.
Comment #7
yngens commentedhass, thanks for the code. it works better, but the problem is that in its block instead of words or letter it shows: nullnullnullnullnullnullnullnullnull with three active links.
Comment #8
yngens commentedafter uninstalling, cleaning cache and reinstalling everything works perfectly. hass, thank you very much for the code. i think it is ready to be submitted.
Comment #9
yngens commentedIt would be very nice, if you could provide detailed instructions in English. I used Google translation and tried to follow what I could get from http://translate.google.com/translate?u=http%3A%2F%2Fwww.yaml-fuer-drupa... Unfortunately, I could not set it up for region. I only can use as a block.
Comment #10
hass commentedWell - after D6 comes out - 100% for sure :-) - i'm only waiting for this... Online translators are really hell... :-(
It's not difficult. Simply add two pices of code to your page.tpl.php for the regions.
Put this _init placeholder directly after the body element.
Now add the following placeholder anywhere you want the 3 font size icons displayed.
Additional put this into your template.php (This will get much smarter in D6).
Comment #11
yngens commentedstrange - yesterday i guess i did almost the same and it did not work. now i copied three pieces of code from here and everything works perfectly. thanks for that hass. but to say frankly, when i first noticed $region variable i thought that the module makes possible to resize font size of a particular region without effecting others. however, its effect is global and last steps were just about how to place 3 font size icons. which could be easily done by putting the following code anywhere:
Comment #12
yngens commentedhass, i am still struggling over how to make it work for only content region without effecting left or right blocks. can you please elaborate on how to do this?
Comment #13
hass commentedThe module cannot resize one region only. You can place it in a region, but it affects global.
Comment #14
yngens commentedoh i see. this would be very good feature, though. i wonder is it possible to maintainers to make it possible to limit the effect of the module only to particular region or inside of particular < div > < /div >? should i open separate feature request or wait until 5.0 version is released? because we are talking about patched upgrade of the module for now, right?
Comment #15
yngens commentedhass, i've run onto another critical issue with the module. the matter is that i use flatforum, which has the exactly the same function declared. Could you please help with making two modules work together. i tried to put together two functions as the following way, but it does not work:
Comment #16
kenorb commentedSome version for 5.x
http://drupal.org/node/132886#comment-231190
Comment #17
hass commentedsee #6 for a link
Comment #18
kenorb commentedThis project is dead.