Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Yahmez on October 28, 2008, 12:38:36 PM

Title: TextSizer
Post by: Yahmez on October 28, 2008, 12:38:36 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1475)
TextSizer


Originally by [SiNaN]
Taken over by Yahmez


Version 1.5
SMF 2.0RC2 / SMF 1.1.11

Version 1.6
SMF 2.0RC3 / SMF 1.1.11

Version 1.7
SMF 2.0RC3 / SMF 1.1.11


Fixed validation error & restored the ability to re-size quoted & code bbc in 2.0 RC3 version.

This mod allows you to change the text size of posts and personal messages. It has 4 different font sizes. It will only appear when viewing a topic or personal message, at the top right. The setting is permanently saved once selected.



New features in version 1.5 and above

1.1.11 & 2.0RC2

New location for the re-sizing text "AAAA" to the top right of the first post.

2.0 RC2 & RC3 only *

Resizing of quoted and code text.

* To resize quotes and code in SMF 1.1.X,  you can edit style.css to remove the default x-small size. Remove the code shown below:

.quote {
background-color:#D7DAEC;
border:1px solid #000000;
color:#000000;
font-size:x-small;  <---- Comment out this line!
line-height:1.4em;
margin:1px;
padding:1px;
}

.code {
background-color:#DDDDDD;
border:1px solid #000000;
color:#000000;
font-family:"courier new","times new roman",monospace;
font-size:x-small;  <---- Comment out this line!
line-height:1.3em;
margin:1px auto;
max-height:24em;
overflow:auto;
padding:1px;
white-space:nowrap;
width:99%;
}

.quoteheader, .codeheader {
color:#000000;
font-size:x-small;  <---- Comment out this line!
font-style:normal;
font-weight:bold;
line-height:1.2em;
text-decoration:none;
}
Title: Re: TextSizer
Post by: qubbah on October 28, 2008, 12:42:06 PM
Nice mod... but there is a litle problem wih custom theme.. overall this is great mod tq.
But now after a small edit for custom theme... its can running very well.

One question is...
How i can recolour
A A A A  to black or others dark colours, thats because my custom theme is light colour.
Title: Re: TextSizer
Post by: Kimmie on October 29, 2008, 05:23:30 AM
Do you have any screenshots of this in action?
Title: Re: TextSizer
Post by: [SiNaN] on October 30, 2008, 12:00:14 PM
qubbah:

index.template.php

Find:

<div style="float: right;">';

Replace:

<div class="textsizer" style="float: right;">';

style.css

Add to end:

.textsizer a:link, .textsizer a:visited, .textsizer a:hover
{
   color: #000000;
   text-decoration: none;
}


#000000 is the color.

Kimmie:

I don't have, but you can see it in action here:

http://triumphtalk.com/index.php?topic=429.0
Title: Re: TextSizer
Post by: Nibogo on November 13, 2008, 05:36:51 PM
SiNaN or blue dream or whatever :p

I test your mod and for custom themes I think of maybe you can modify this line:

<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/textsizer.css?b4" />

With:

<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/textsizer.css?b4" />

I try with the mysticjade theme and didnt work , but I do that modification and works great

Great mod ;)
Title: Re: TextSizer
Post by: Ur_Irish_Rose on November 18, 2008, 08:10:12 PM
I have added this to my forum and cannot see it anywhere :|

I have looked all over the place for sizing :| and looked in Admin to see if there was anything in there but failed

Can you help me pls

TY
Title: Re: TextSizer
Post by: Antechinus on November 18, 2008, 08:58:27 PM
That's a very nice little mod. I can see this being very useful for forums that have a wide range of age groups in their membership.
The only improvement I can think of would be if it was possible to make it work on quoted text as well.
Title: Re: TextSizer
Post by: [SiNaN] on November 19, 2008, 02:03:15 AM
Ur_Irish_Rose:

Quote from: Blue Dream on October 28, 2008, 12:38:36 PM
This mod allows you to change the text size of only post texts. It has 4 different font sizes. It will only appear when viewing a topic or personal message, at the top right. The setting is permenantly saved once selected.

If you are using a custom theme (other than SMF Core Default Theme), you should make the changes for your theme too.

antechinus:

Would you like to take over the mod?
Title: Re: TextSizer
Post by: Antechinus on November 19, 2008, 02:10:26 AM
I don't have the skills to support it, or at least I don't think I do.
Title: Re: TextSizer
Post by: [SiNaN] on November 19, 2008, 02:22:02 AM
There is nothing more than theme stuff and I'll help you personally, if you will require any help while supporting/updating it. Of course if you would like to take over...
Title: Re: TextSizer
Post by: Antechinus on November 19, 2008, 02:27:15 AM
How about inflicting it on Deprecated? He loves mods and he's old enough to need this one. ;)
Title: Re: TextSizer
Post by: [SiNaN] on November 19, 2008, 02:30:06 AM
He he. He has enough of them. ;)

Thanks anyway.
Title: Re: TextSizer
Post by: Antechinus on November 19, 2008, 02:42:06 AM
Well I as thinking that to make it easy on anyone with dodgey eyesight it would be really handy if quoted text was enlarged like the post text. I don't know how to do that. Dep probably does.
Title: Re: TextSizer
Post by: qubbah on November 29, 2008, 10:42:35 AM
how can i change the default size to the bigger one?
Title: Re: TextSizer
Post by: [SiNaN] on December 10, 2008, 06:23:31 AM
You can change the font-size in textsizer.css file.
Title: Re: TextSizer
Post by: Lom on March 01, 2009, 11:07:21 AM
hi...

i use smf 1.1.8 with tinyportal v1.0 beta 3 and my theme outline tp10...

i have installed the mod "Textsizer" but nothing changed in forum. has anyone help me to what shall i do...?

you can see my forum by clicking (http://www.kiraathanem.com)
Title: Re: TextSizer
Post by: [SiNaN] on March 01, 2009, 11:27:10 AM
You'll have to apply the edits to your custom theme manually, using the manual installation instructions. Select your version in the mod page, and click submit.
Title: Re: TextSizer
Post by: Lom on March 01, 2009, 03:00:22 PM
I've tryed to edit before but i couldnt find same codes in my custom theme files. There were only index.template.php file in directory and i could find only "/ the routine for the info center upshrink" code in this file. i couldnt find the second code. And the other files "Display.template.php" and "PersonalMessage.template.php" are in the default theme directory. and theye were already changed when i installed the mod.

i use Outline tp10 theme downloaded from http://www.dzinerstudio.com/


Please help, if you want i'll share my theme files...
Title: Re: TextSizer
Post by: Lom on March 04, 2009, 12:16:03 PM
im waiting for help....
Title: Re: TextSizer
Post by: Alpay on March 08, 2009, 02:29:23 PM
I had searched this modification so much. This is very pratical. Congratulate you ;)
Title: Re: TextSizer
Post by: Yahmez on June 30, 2009, 07:52:06 PM
Awesome mod SiNaN!
It is working great for me. I do have a few questions though. Would you know how to move the text A A A A to just above the first post as shown in the attached image? And I was wondering about adding some text to it also. Either "Font Size" or a "-" before the a's and a "+" after? Would it be tough to have this scale the quoted text also? Thanks again!
Title: Re: TextSizer
Post by: fmofmpls on July 05, 2009, 11:04:31 PM
Quote from: Yahmez on June 30, 2009, 07:52:06 PM
Awesome mod SiNaN!
It is working great for me. I do have a few questions though. Would you know how to move the text A A A A to just above the first post as shown in the attached image? And I was wondering about adding some text to it also. Either "Font Size" or a "-" before the a's and a "+" after? Would it be tough to have this scale the quoted text also? Thanks again!

A very good suggestion!
Title: Re: TextSizer
Post by: gbsothere on July 11, 2009, 10:23:19 PM
Speaking as an old man who's not getting any younger, this is a great mod.  I do have the "Colorize Post" mod installed, which allows the poster to set a default font, color and size in his or her profile and I notice that this will not override that.   Actually... (having left this thread to test further)....  it doesn't work if the post that is being read was created with a specific font size chosen.  Not on my SMF 1.1.9 Default test forum, at least.  If I come in under a test ID and post with a selected font size, then look at it with my other account, the view size will not change.  If I post with the test ID again, using the default size, then look again with my other account, then I can view it larger.

Anyone else having this issue?

Title: Re: TextSizer
Post by: gbsothere on July 14, 2009, 07:32:39 PM
Bumping this on behalf of all the old people on my forum (who can't see worth a crap) because I'm a great admin and .... well, it seems like the thing to do.

*grin*

Anyone else having the issue I referenced earlier?

Anyone know of a fix?

(Hope springs eternal.)

Title: Re: TextSizer
Post by: gbsothere on July 21, 2009, 04:59:03 PM
*waits 7 days and bumps it again, although not as hopefully*
Title: Re: TextSizer
Post by: Neverhurry on October 06, 2009, 04:20:42 PM
Quote from: Yahmez on June 30, 2009, 07:52:06 PM
Awesome mod SiNaN!
It is working great for me. I do have a few questions though. Would you know how to move the text A A A A to just above the first post as shown in the attached image? And I was wondering about adding some text to it also. Either "Font Size" or a "-" before the a's and a "+" after? Would it be tough to have this scale the quoted text also? Thanks again!

Please, nobody can help? I need this too, it will be much more logical and convenient too.
Title: Re: TextSizer
Post by: Neverhurry on October 06, 2009, 04:30:30 PM
Hi, i am using smf 2.0 rc1.2 and Sherbet theme, i have problem to install this great mod on this theme, even manually. Can anybody here give me a hand? Many thanks!
Title: Re: TextSizer
Post by: DirtRider on November 17, 2009, 09:13:14 AM
'[SiNaN]' I tried to send you a PM to ask you what you will charge us to update this for RC2 seeing I paid you to write it for us. However I see you have blocked my PM's  >:(
Title: Re: TextSizer
Post by: [SiNaN] on November 17, 2009, 09:32:01 AM
That isn't something special to you. I have all pms blocked, except for the members in my buddy list, because of the amount of useless pms I was getting. I have added you to my buddy list so that you can send pms to me. You could have tried contacted me by my e-mail address first though.
Title: Re: TextSizer
Post by: DirtRider on November 17, 2009, 09:37:45 AM
Well I am glad I am not special then  :D ;D PM sent
Title: Re: TextSizer
Post by: Yahmez on December 07, 2009, 10:09:21 PM
TextSizer has been updated for 2.0RC2 & 1.1.11!

New features:

1.1.11 & 2.0RC2

New location for the re-sizing text "AAAA" to the top right of the first post.

2.0 RC2 only

Resizing of quoted text.
Title: Re: TextSizer
Post by: DirtRider on December 07, 2009, 11:15:53 PM
And I don't like it there  >:(
Title: Re: TextSizer
Post by: Yahmez on December 07, 2009, 11:17:55 PM
Where would you like it to be?
Title: Re: TextSizer
Post by: DirtRider on December 07, 2009, 11:24:49 PM
Right here would be nice
Title: Re: TextSizer
Post by: Yahmez on December 07, 2009, 11:27:00 PM
That's where it is!  :)
Title: Re: TextSizer
Post by: DirtRider on December 07, 2009, 11:28:16 PM
and that where I want it  ;D ;D ;D I thought you moved it back to where it was before again
Title: Re: TextSizer
Post by: shumilica on December 07, 2009, 11:45:43 PM
Cool mod.
Do you plan to implement this button/feauture to message.index and board.index too? would be very helpful.
And a reset link near the A A A-as? or the middle A is the default for the forum?

Thanks for taking over the mod!
Title: Re: TextSizer
Post by: Yahmez on February 02, 2010, 08:51:12 PM
I am expanding the textsizer mod to re-size text throughout the forum instead of just the text inside posts. I am seeking input from users of this mod, to help me to decide whether to make the new version have an admin option, for only posts OR forum wide text resizing, or whether to have two versions of the mod available separately? Please post your input and I'll update the mod accordingly.
Title: TextSizer - 2.0RC3
Post by: Yahmez on April 21, 2010, 11:47:46 AM
Updated for 2.0RC3.
Title: Re: TextSizer
Post by: Garry1953 on April 21, 2010, 05:57:06 PM
Very handy mod.

Thanks
Title: Re: TextSizer
Post by: rbeuker on April 25, 2010, 06:11:00 AM
Quote from: ҰΛĥmΞڃ on February 02, 2010, 08:51:12 PM
I am expanding the textsizer mod to re-size text throughout the forum instead of just the text inside posts. I am seeking input from users of this mod, to help me to decide whether to make the new version have an admin option, for only posts OR forum wide text resizing, or whether to have two versions of the mod available separately? Please post your input and I'll update the mod accordingly.

This is a great mod, thx a lot for making this! :D

As for having 2 separate mods or just 1: one mod that has the admin option to resize only posts or the whole forum sounds great to me! If you need betatesters, let me know ;)
Title: Re: TextSizer
Post by: rbeuker on May 13, 2010, 08:31:27 AM
Hi there!

I was just wondering--will you still make a text sizer that resizes the entire forum? :D

Thanks,

Ronald
Title: Re: TextSizer
Post by: Yahmez on May 13, 2010, 11:54:41 PM
Yes I am still planning on it. Life and all, you know...

I'll let you know when I get it packaged if you want to test it out. Hopefully in the next few weeks.
Title: Re: TextSizer
Post by: rbeuker on May 16, 2010, 08:29:46 AM
That's great! Yeah I know about the life and all thing--I would not mind having 25 hour days, or weeks that have 8 days. :D

Title: Re: TextSizer
Post by: anidea on July 12, 2010, 11:26:16 PM
I'm running SMF2 RC3 and getting the following error:
8: Undefined index: sizer_html
Apply Filter: Only show the errors from this file
File: /public/smf/Themes/default/Display.template.php (main sub template - eval?)
Line: 164

This is the very first mod I did, and I did it manually.

I traced the error down to exactly this code in Display.template.php:

<h3 class="catbg">
               ', $context['sizer_html'], '
               <img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />

Now, I realize that I'm not using the default template, but I compared it with the default template, and it looks exactly the same as default (except for the .css references).

The thing is, the mod works perfectly!  so I can't imagine what the problem could be, if I'm getting an error on a mod that seemingly works perfectly...?
Title: Re: TextSizer
Post by: Bugo on July 16, 2010, 02:49:25 PM
Markup Validation Service (http://validator.w3.org/) detected that CSS code is invalid (after install this mod). By example:

Line 151, Column 50: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
...e="float: right; font-weight: normal;"><a href="javascript:changeTextSize('1')...

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Title: Re: TextSizer
Post by: Yahmez on July 19, 2010, 09:24:06 PM
Quote from: Bugo on July 16, 2010, 02:49:25 PM
Markup Validation Service (http://validator.w3.org/) detected that CSS code is invalid (after install this mod).

Thanks for the heads up. I'll fix this shortly.
Title: Re: TextSizer
Post by: Yahmez on July 19, 2010, 09:25:49 PM
Quote from: anidea on July 12, 2010, 11:26:16 PM
I'm running SMF2 RC3 and getting the following error:
8: Undefined index: sizer_html
Apply Filter: Only show the errors from this file
File: /public/smf/Themes/default/Display.template.php (main sub template - eval?)
Line: 164

This is the very first mod I did, and I did it manually.

I traced the error down to exactly this code in Display.template.php:

<h3 class="catbg">
               ', $context['sizer_html'], '
               <img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />

Now, I realize that I'm not using the default template, but I compared it with the default template, and it looks exactly the same as default (except for the .css references).

The thing is, the mod works perfectly!  so I can't imagine what the problem could be, if I'm getting an error on a mod that seemingly works perfectly...?

It's common for a working code to throw errors... but it needs fixing! Can you give me a link so I can look at it or attach your edited files and the name of your custom theme?
Title: Re: TextSizer
Post by: KensonPlays on July 20, 2010, 02:10:47 AM
NICE! I want to make my website user friendly, for easy and hard to read people, this helps! Thanks!
Title: Re: TextSizer
Post by: anidea on July 20, 2010, 12:02:23 PM
Quote from: ҰΛĥmΞڃ on July 19, 2010, 09:25:49 PM
It's common for a working code to throw errors... but it needs fixing! Can you give me a link so I can look at it or attach your edited files and the name of your custom theme?
Hi, the custom theme is RGBB...By now I've installed a few mods lol...can I PM you the link?
Title: Re: TextSizer
Post by: Yahmez on July 20, 2010, 07:38:44 PM
*Updated Mod*

Got this error fixed up I believe. Try version 1.7 and let me know if there are any issues.
Title: Re: TextSizer
Post by: Siirist on July 21, 2010, 04:27:16 AM
Quote from: ҰΛĥmΞڃ on July 20, 2010, 07:38:44 PM
*Updated Mod*

Got this error fixed up I believe. Try version 1.7 and let me know if there are any issues.

Having a difficult evening, its 1:30AM and I am still here. Anyway, if I remember right, I used this back when I started with SMF ver1.14.

I see that you updated which is AWESOME. I am going to install on one of my 3 forums.

This is the email I got.

"The description of this customization is as follows:
TextSizer
Version 1.7
SMF 2.0RC3 / SMF 1.1.11"

So why does the Mod Page say

Download this mod
           TextSizer1.5.zip      (3kB)     [641]     
      TextSizer1.6.zip    (3kB)    [267]    
      TextSixer1.7.zip    (4kB)    [5]

if version 1.7 will support everything  ???

THANKS FOR THIS MOD!!!

Be Well,
Cloud 8)
Title: Re: TextSizer
Post by: Yahmez on July 21, 2010, 07:07:09 AM
Quote from: SurvivorOfAbuse on July 21, 2010, 04:27:16 AM

"The description of this customization is as follows:
TextSizer
Version 1.7
SMF 2.0RC3 / SMF 1.1.11"

So why does the Mod Page say

Download this mod
           TextSizer1.5.zip      (3kB)     [641]     
      TextSizer1.6.zip    (3kB)    [267]    
      TextSixer1.7.zip    (4kB)    [5]

if version 1.7 will support everything  ???

THANKS FOR THIS MOD!!!

Be Well,
Cloud 8)

You have the option to download the old versions because I have not deleted them. You typically would want the newest (currently 1.7) version though.
Title: Re: TextSizer
Post by: anidea on July 21, 2010, 11:18:18 PM
Quote from: ҰΛĥmΞڃ on July 20, 2010, 07:38:44 PM
*Updated Mod*

Got this error fixed up I believe. Try version 1.7 and let me know if there are any issues.

A little bit of issues installing.  It couldn't find some of the .css edits, I still don't know why.  Also, I have a simple Theme installed, RGBB Curve, and it couldn't edit that either, some of the stuff in index.css was waaay different.  But it was no problem to do it manually.

I've tested a bit and so far no errors.  Tomorrow will be a better test, but it's looking good.

I'm thinking it may have also corrected some errors that had to do with minimizing categories, too...I don't seem to be getting those errors anymore.

Thanks!!!  :)

Edit:  Spoke to soon, today there's about 10 of these so far:
http://www.mysite.org/smf/index.php?topic=107.msg737
8: Undefined index: sizer_html
File: /f5/mysite/public/smf/Themes/default/Display.template.php
Line: 179
Title: Re: TextSizer
Post by: Yahmez on July 22, 2010, 05:20:21 PM
The index.css edits are required for the changes that were made in SMF curve from RC2 to RC3. Specifically in order to resize quoted and code bbc text. If your theme is based off of RC2 index.css you should be fine without editing it.

As for your error, I cannot replicate it on my install. If you don't mind attaching your edited files I can take a look and see if I can spot what is going on.
Title: Re: TextSizer
Post by: anidea on July 23, 2010, 12:35:45 AM
this might sound like a silly question...but do you want me to actually attach the files here to this message board?  Or do you just want me to paste code into a post?  Do you want all the files, or just the Display.template.php that is throwing the error?

Thanks!  :)
Title: Re: TextSizer
Post by: Yahmez on July 23, 2010, 12:04:36 PM
Yep, just attach the files themselves.

index.template.php
Display.template.php
PersonalMessage.template.php
Title: Re: TextSizer
Post by: anidea on July 24, 2010, 01:03:51 PM
Quote from: Yahmez on July 23, 2010, 12:04:36 PM
Yep, just attach the files themselves.

index.template.php
Display.template.php
PersonalMessage.template.php
Here you go...  :)
Title: Re: TextSizer
Post by: Yahmez on July 27, 2010, 10:54:34 PM
I took a peek and all looks well, as far as how it's installed...
When I get some free time I'll try to sort this for you though. Sorry, I have been so busy as of late that I haven't had the time to look at this properly.

-Yahmez
Title: Re: TextSizer
Post by: anidea on July 28, 2010, 03:33:40 PM
No worries :)  It doesn't seem to affect how the forum works, so it's not any trouble at all.  I appreciate that you're looking into it in your free time :)
Title: Re: TextSizer
Post by: DirtRider on August 28, 2010, 11:47:19 AM
I had to unistall this mod and install it again now I have the  A A A A  A A A A  showing up twice. Where do I edit this out?
Title: Re: TextSizer
Post by: Yahmez on August 31, 2010, 10:14:03 PM
Quote from: DirtRider on August 28, 2010, 11:47:19 AM
I had to unistall this mod and install it again now I have the  A A A A  A A A A  showing up twice. Where do I edit this out?
Display.template.php
PersonalMessage.template.php


The code must be in there twice. If you post up those files I can get ya fixed up. Or check the mod parser and delete the duplicate code in those files... actually you might want to check all the files edited by the mod & delete the replicated code in all the locations that it was double installed.
Title: Re: TextSizer
Post by: Alpay on February 26, 2011, 03:32:13 AM
Yahmez support for 2 RC5 ?
Title: Re: TextSizer
Post by: ironhide1 on April 05, 2011, 11:32:43 AM
This has been a great MOD for my users. Currently upgraded to RC5 and cannot get it to install, is this going to be compatible? Hope it will be as it is the best and easiest to understand out of all the text sizing MODS. Much appreciated. Thanks.
Title: Re: TextSizer
Post by: Biology Forums on April 09, 2011, 06:40:24 PM
Great mod, works perfectly on 1.1.13.
Title: Re: TextSizer
Post by: rower on April 23, 2011, 08:38:08 AM
Pls UP to RC4 and 5. Thx :)
Title: Re: TextSizer
Post by: landyvlad on March 26, 2018, 02:50:30 AM
I saw this on a forum I'm on, working happily on 2.0.15 and am about to install it on my own forum.

Bloody great idea it is.   ;D

Title: Re: TextSizer
Post by: Steve on March 26, 2018, 08:31:06 AM
Any particular reason you chose to revive a SEVEN year old topic without having even attempting to see if it will work on your version?