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.

uploaded avatar size problem

View previous topic View next topic Go down

In progress uploaded avatar size problem

Post by BetterHax on May 17th 2013, 6:47 pm

i have a problem about the uploaded avatar size of a user..
i already do this things.

AP>>Display>>Avatars>>Avatar Gallery>> Personal Avatar

and set the Maximum Avatar File Size: 140x140 Pixels

my problem is how can i set all avatar must be 140 x 140 only!

BetterHax
Forumember

Posts : 304
Reputation : 3
Language : English,Tagalog
Location : United State, Philippines

Back to top Go down

In progress Re: uploaded avatar size problem

Post by Jophy on May 18th 2013, 2:40 pm

Hello,

This can be done in CSS, I don't know if there's a different selector for this in the CSS, but to be sure, please provide your forum url, for the one who can provide the code.

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

In progress Re: uploaded avatar size problem

Post by BetterHax on May 20th 2013, 6:20 pm

bump

BetterHax
Forumember

Posts : 304
Reputation : 3
Language : English,Tagalog
Location : United State, Philippines

Back to top Go down

In progress Re: uploaded avatar size problem

Post by Jophy on May 21st 2013, 7:43 am

Try this:
@Mr. Docteur wrote:Hello,

In your template viewtopic_body mark this line:
Code:
{postrow.displayed.POSTER_AVATAR}

Once found, replace it with this:
Code:
<span class="avatar_size">{postrow.displayed.POSTER_AVATAR}</span>

Once done, save your template Wink

Just go to your CSS and put this code and save:
Code:
.avatar_size img {
max-width:40px; /* maximum width of  avatars */
min-width:40px; /* minimum width of avatars */
}

Wink
You can also use this CSS code for complete modification on the upload avatars(for maximum avatars).
Code:
.avatar_size img {
max-width: 40px;
max-height:40px;
}

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

In progress Re: uploaded avatar size problem

Post by Mati on May 21st 2013, 8:33 am

@BetterHax wrote:i have a problem about the uploaded avatar size of a user..
i already do this things.

AP>>Display>>Avatars>>Avatar Gallery>> Personal Avatar

and set the Maximum Avatar File Size: 140x140 Pixels

my problem is how can i set all avatar must be 140 x 140 only!

Please provide your forum URL for appearance problems

Mati
Active Poster

Posts : 1873
Reputation : 281
Language : || HTML || CSS || jQuery ||
Location : At the Gym

http://elite-gaming.forumotion.net/

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