TinyPortal

Development => Support => Installation => Topic started by: ziggy12345 on September 29, 2010, 08:25:37 AM

Title: Text size in TPShouts
Post by: ziggy12345 on September 29, 2010, 08:25:37 AM
Hi

How do I adjust the amount of text in the TPShoutbox? I want to increase it. I am using newdef design

Cheers
Title: Re: Text size in TPShouts
Post by: ZarPrime on September 29, 2010, 03:03:33 PM
Hi ziggy12345,

Welcome to the TP Support Site.

In order to assist you, we will need some additional info about your site.  A link to your site where we can see the Shoutbox would help us to help you.

Please Read and Follow the Posting Guidelines and be sure to use the posting template at the bottom of that post (http://www.tinyportal.net/index.php?topic=581.0)

ZarPrime
Title: Re: Text size in TPShouts
Post by: ziggy12345 on September 29, 2010, 07:15:21 PM
Link to my site: http://www.fast-rc.co.ukSMF version: SMF ver. 1.1.11TP version: TP ver. hereTheme name and version: newdefBrowser Name and Version: Browser name/version hereMods installed: Mods listed hereRelated Error messages: Error message here
Title: Re: Text size in TPShouts
Post by: ZarPrime on September 29, 2010, 09:15:17 PM
On your site, the size of the text in the shoutbox is taken from .smalltext in the style.css file located in the /Themes/newdef112_tp/ folder.  If you were using the SMF default theme the appropriate location would be the /Themes/default/style.css file.


.smalltext
{
font-size: x-small;
font-family: verdana, sans-serif;
}


You could change "x-small" to "small" but that would make everything on your site that uses .smalltext larger, probably something you don't want to do.

ZarPrime
Title: Re: Text size in TPShouts
Post by: ziggy12345 on September 29, 2010, 09:51:37 PM
Hi

I need to increase the AMOUNT of text not the size.

Thanks
Title: Re: Text size in TPShouts
Post by: ZarPrime on September 29, 2010, 10:15:17 PM
The amount of text?  I'm not sure what you mean.  Can you give us an example?

ZarPrime
Title: Re: Text size in TPShouts
Post by: IchBin on September 29, 2010, 10:22:46 PM
tp-files/tp-modules/TPShout/Sources/TPshout.php

Find this line and adjust to what you need.

$oldshout=strip_tags(substr($_POST['tp_shout'],0,300));
Title: Re: Text size in TPShouts
Post by: ziggy12345 on September 30, 2010, 08:30:47 AM
Where will I find that and what bit do I adjust?
Title: Re: Text size in TPShouts
Post by: IchBin on September 30, 2010, 04:47:40 PM
You will find it where I told you it was, in the TPshout.php file. You need to adjust the 300 number to be what you want the new limit to be.