The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

uploaded avatar size problem

3 posters

Go down

In progress uploaded avatar size problem

Post by BetterHax 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!
avatar
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 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
Jophy
ForumGuru

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

Back to top Go down

In progress Re: uploaded avatar size problem

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

bump
avatar
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 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
Jophy
ForumGuru

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

Back to top Go down

In progress Re: uploaded avatar size problem

Post by Mati 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
Mati
Hyperactive

Posts : 2020
Reputation : 330
Language : HTML, CSS & JavaScript
Location : Forum Services

https://forumservice.forumotion.com/

Back to top Go down

Back to top

- Similar topics

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