TinyPortal

Development => Support => Topic started by: ZI0N on July 21, 2007, 11:44:27 PM

Title: Avatar Misplacement
Post by: ZI0N on July 21, 2007, 11:44:27 PM
Hi all.

I'm having a slight problem with tiny portal

A users avatar on the main page (in the welcome user box) is aligned left.

It looks silly like that in my opinion and would prefer it in the middle (centered)

anyone know how i can do this?

Thanks :)
Title: Re: Avatar Misplacement
Post by: IchBin on July 21, 2007, 11:45:40 PM
Depends on if you're talking about the welcome user in the theme, or the welcome user in the tinyportal Block. Which is it?
Title: Re: Avatar Misplacement
Post by: IchBin on July 21, 2007, 11:46:00 PM
Would also be nice to know which theme if its in the welcome user of the theme.
Title: Re: Avatar Misplacement
Post by: ZI0N on July 22, 2007, 12:53:35 AM
Quote from: IchBinâ„¢ on July 21, 2007, 11:45:40 PM
Depends on if you're talking about the welcome user in the theme, or the welcome user in the tinyportal Block. Which is it?

Sorry I should have been more specific.

Yes its the welcome user in the tinyportal block.
It happens in both the default theme and my current theme too.

Thanks for helping
Title: Re: Avatar Misplacement
Post by: IchBin on July 22, 2007, 01:37:58 AM
Don't know if this will work.
Open TPortalBlocks.template.php and find:
echo $context['user']['avatar']['image'] . '<br />';

Change to:
echo '<div align="center">'.$context['user']['avatar']['image'] . '</div><br />';
Title: Re: Avatar Misplacement
Post by: ZI0N on July 22, 2007, 09:50:06 AM
didn't work :(

Its odd, before i posted this i was able to make everything else in that welcome block centered bar the avatar.


Title: Re: Avatar Misplacement
Post by: Zetan on July 22, 2007, 10:19:09 AM
I just tried that on my site.. it seems to work fine. Did you hard refresh the page? CTRL + F5
Title: Re: Avatar Misplacement
Post by: ZI0N on July 22, 2007, 10:42:48 AM
Edit : sorry it works :P

Forgot to edit both my themes.

Cheers guys :)
Title: Re: Avatar Misplacement
Post by: Zetan on July 22, 2007, 10:54:06 AM
:)