TinyPortal

Development => Support => Topic started by: FUBAR on June 05, 2010, 07:28:01 AM

Title: Shoutbox Avatar Size
Post by: FUBAR on June 05, 2010, 07:28:01 AM
SMF version: SMF 2.0 RC3
TP version: TinyPortal 1.0 beta 5-1

I would like to reduce the size of the avatars shown in the new shoutbox if possible on TP Beta 5.1.  I've looked though TPShout.template.php but I'm not exactly sure what is controlling the size of the avatars.

Currently as far as I can tell it's set to 50 x 50. 

Can someone please point me in the right direction?  :)

Thanks in advance,
Title: Re: Shoutbox Avatar Size
Post by: pvcblue on June 05, 2010, 08:19:07 AM
I believe this is it in the tp-style.css



span.tpavatar img
{
width: 35px;
}



Title: Re: Shoutbox Avatar Size
Post by: FUBAR on June 05, 2010, 10:27:45 AM
I'm not sure this is it smurfy because it's currently set at 35px in that file but my avatars are showing at 50x50px.   :-\
Title: Re: Shoutbox Avatar Size
Post by: ZarPrime on June 05, 2010, 05:31:22 PM
The file you are looking for is the /Themes/default/TPShout.css.  Look on about line 42 for this or something similar ...


.tp_shoutavatar .avy2 img
{
width: 25px;
max-height: 100%;
margin: 0 6px 0 0;
float: left;


Change the width to whatever you want it to be.  The height will come along for the ride.  BTW, Bloc has made the width smaller for the next update, TP 1.0 beta 5.2.  It will be 25px.

ZarPrime
Title: Re: Shoutbox Avatar Size
Post by: FUBAR on June 08, 2010, 01:04:51 AM
That that the trick for the size ZarPrime, thanks!   O0

Although, they still don't look centered for some reason as seen in the attachment.

Any idea's on this? 
Title: Re: Shoutbox Avatar Size
Post by: ZarPrime on June 08, 2010, 01:42:34 AM
FUBAR,

I'm not sure what you mean by centered.  You mean centered vertically on the same line as the username?  Had you made any other changes to the css besides just the width?  Give me a link to your site where I can see your Shoutbox so that I can take a look at it.

ZarPrime
Title: Re: Shoutbox Avatar Size
Post by: FUBAR on June 09, 2010, 01:55:40 AM
You are right ZarPrime, the avatars are not centered on the same line as the username.  I haven't made any other changes other then changing the size from 50px to 25px but previous to this change they also were not centered.
Title: Re: Shoutbox Avatar Size
Post by: IchBin on June 09, 2010, 05:18:18 PM
There's no possible way to help you if you don't post a link so we can see the problem.