News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

TextSizer

Started by Yahmez, October 28, 2008, 12:38:36 PM

Previous topic - Next topic

Yahmez

Link to Mod
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;
}

qubbah

#1
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.

Kimmie

Do you have any screenshots of this in action?

[SiNaN]

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
Former SMF Core Developer | My Mods | SimplePortal

Nibogo

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 ;)

Ur_Irish_Rose

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
http://www.boards-express-forum.com/BE/index.php
Irish And Proud SMF Charter Member

Antechinus

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.

[SiNaN]

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?
Former SMF Core Developer | My Mods | SimplePortal

Antechinus

I don't have the skills to support it, or at least I don't think I do.

[SiNaN]

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...
Former SMF Core Developer | My Mods | SimplePortal

Antechinus

How about inflicting it on Deprecated? He loves mods and he's old enough to need this one. ;)

[SiNaN]

He he. He has enough of them. ;)

Thanks anyway.
Former SMF Core Developer | My Mods | SimplePortal

Antechinus

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.

qubbah

how can i change the default size to the bigger one?

[SiNaN]

You can change the font-size in textsizer.css file.
Former SMF Core Developer | My Mods | SimplePortal

Lom

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...?

hxxp:www.kiraathanem.com [nonactive]

[SiNaN]

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.
Former SMF Core Developer | My Mods | SimplePortal

Lom

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 hxxp:www.dzinerstudio.com/ [nonactive]


Please help, if you want i'll share my theme files...

Lom

im waiting for help....

Alpay

I had searched this modification so much. This is very pratical. Congratulate you ;)

Advertisement: