SimplePortal

Customization => Custom Coding => Topic started by: xacex on July 26, 2009, 01:04:54 AM

Title: Avatar Size
Post by: xacex on July 26, 2009, 01:04:54 AM
Hey, I was wondering whether its possible to display avatars in their original size for articles on the front page. I was able to do this for the news posts pretty easily but I just can't figure it for the articles even though its probably really simple. Could someone point me in the right direction or provide me with the code modifications necessary to make the avatar its original size, move it to the left, and move the post time, views, and comments right next to it. I would really appreciate it. Thanks  :)
Title: Re: Avatar Size
Post by: ccbtimewiz on July 26, 2009, 10:49:36 AM
Open SPortal2.template.php

Find:
Code: [Select]
<img src="', $article['poster']['avatar']['href'], '" alt="', $article['poster']['name'], '" width="30" style="float: right;" />
Replace with:
Code: [Select]
<img src="', $article['poster']['avatar']['href'], '" alt="', $article['poster']['name'], '" style="float: right;" />
For the others, I'm not sure what you want exactly-- could you perhaps show me a picture of how you want it? Perhaps try changing the float direction...
SimplePortal 2.3.8 © 2008-2024, SimplePortal