TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 110
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 55
  • Total: 56
  • illori

Avatar Misplacement

Started by ZI0N, July 21, 2007, 11:44:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ZI0N

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

IchBin

Depends on if you're talking about the welcome user in the theme, or the welcome user in the tinyportal Block. Which is it?

IchBin

Would also be nice to know which theme if its in the welcome user of the theme.

ZI0N

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

IchBin

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 />';

ZI0N

didn't work :(

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



Zetan

I just tried that on my site.. it seems to work fine. Did you hard refresh the page? CTRL + F5

ZI0N

Edit : sorry it works :P

Forgot to edit both my themes.

Cheers guys :)


This website is proudly hosted on Crocweb Cloud Website Hosting.