The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Disable/Resize Off-Site Avatars

View previous topic View next topic Go down

Solved Disable/Resize Off-Site Avatars

Post by Spino Prime on November 12th 2011, 10:51 pm

On a forum that I help administrate, several members are using off-site avatars to cheat the forum and use avatars MUCH larger then the size limit. Since off-site avatars are not resized, and cannot be restricted based on size, these members are using huge avatars which ruin our site's formatting, making the post profile massive and shrinking the content section. I have tried looking for settings in the administrator panel, to change the way off-site avatars work, but I haven't found anything. I tried using the code at: http://help.forumotion.com/t85098-resizing-off-site-avatars-2 but it didn't work for me. I am looking for a way to resize avatars that come from external sites, or failing that, a way to disable this option completely. The forum is running on phpBB2 and can be found at http://www.13thmeu.net or at our alternate URL at: http://13thmeu.forumotion.net
Any help would be appreciated.

Spino Prime
New Member

Posts : 2
Reputation : 0
Language : English

http://13thmeu.forumn.org/

Back to top Go down

Solved Re: Disable/Resize Off-Site Avatars

Post by Nera. on November 12th 2011, 10:59 pm

Hi spino,

You are on phpBB2? Try this, go to your viewtopic_body template and find this:

Code:
{postrow.displayed.POSTER_AVATAR}

Replace it with this:

Code:
<span class="avic">{postrow.displayed.POSTER_AVATAR}</span>

Save and publish on the green cross.

Than add this to CSS:

Code:
.avic img {
    height: 100px;
    width: 100px;
}

See if it fixes the problems in posts, you can change the numbers.

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: Disable/Resize Off-Site Avatars

Post by Guest on November 12th 2011, 11:00 pm

Go to Administration Panel => Display => Templates => General => viewtopic_body. Find:
Code:
{postrow.displayed.POSTER_AVATAR}
and replace with:
Code:
<div class="avresize">{postrow.displayed.POSTER_AVATAR}</div>
Save and publish.

Then go to Administration Panel => Display => Pictures and Colors => Colors => CSS Stylesheet, add this code:
Code:
div.avresize{
  max-width:150px;
  max-height:200px;
}

div.avresize img{
  max-width:150px;
  max-height:200px;
}
Save. Wink

Guest
Guest


Back to top Go down

Solved Re: Disable/Resize Off-Site Avatars

Post by Spino Prime on November 12th 2011, 11:42 pm

Wow, thanks for the quick support guys. The code worked flawlessly. I had to mess with the values a bit until I found what I wanted, but I got it to work perfectly. Thanks a lot guys, I really appreciate the help.

Spino Prime
New Member

Posts : 2
Reputation : 0
Language : English

http://13thmeu.forumn.org/

Back to top Go down

Solved Re: Disable/Resize Off-Site Avatars

Post by Nera. on November 12th 2011, 11:43 pm

Welcome Spino.

Topic solved

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum