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.

How to constraint Avatar sizes (pixels)

View previous topic View next topic Go down

Solved How to constraint Avatar sizes (pixels)

Post by MoonChow on May 10th 2013, 6:54 am

How do i constraint avatar sizes because i saw a guy upload a 1600x900 avatar -.-?

MoonChow
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Solved Re: How to constraint Avatar sizes (pixels)

Post by Jophy on May 10th 2013, 7:07 am

Hello,

Go to:
Admin Panel > Display > Avatars Gallery > Personal Avatars:
Maximum Avatar File size: Change it here
> Save

Jophy
ForumGuru

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

Back to top Go down

Solved Re: How to constraint Avatar sizes (pixels)

Post by MoonChow on May 10th 2013, 8:36 am

@Jophy wrote:Hello,

Go to:
Admin Panel > Display > Avatars Gallery > Personal Avatars:
Maximum Avatar File size: Change it here
> Save

I have tried that still dosent work.

MoonChow
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Solved Re: How to constraint Avatar sizes (pixels)

Post by Mr. Docteur on May 10th 2013, 9:27 am

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

Mr. Docteur
Forumember

Male Posts : 27
Reputation : 1
Language : HTML5, CSS3, JavaScript, PHP...

http://entraide-mr-docteur.forumactif.com/

Back to top Go down

Solved Re: How to constraint Avatar sizes (pixels)

Post by MoonChow on May 10th 2013, 9:41 am

@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


What about height?

MoonChow
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Solved Re: How to constraint Avatar sizes (pixels)

Post by Mr. Docteur on May 10th 2013, 9:46 am

As I use the minimum and maximum width, I do not need ... If you try the code, you will understand Wink But it's hard to explain Razz

If you feel more comfortable with the height you can use this code:
Code:
.avatar_size img {
width:40px;
height:40px;
}

Mr. Docteur
Forumember

Male Posts : 27
Reputation : 1
Language : HTML5, CSS3, JavaScript, PHP...

http://entraide-mr-docteur.forumactif.com/

Back to top Go down

Solved Re: How to constraint Avatar sizes (pixels)

Post by MoonChow on May 10th 2013, 9:49 am

@Mr. Docteur wrote:As I use the minimum and maximum width, I do not need ... If you try the code, you will understand Wink But it's hard to explain Razz

If you feel more comfortable with the height you can use this code:
Code:
.avatar_size img {
width:40px;
height:40px;
}

Yes i prefer that thanks

MoonChow
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Solved Re: How to constraint Avatar sizes (pixels)

Post by Mr. Docteur on May 10th 2013, 9:51 am

Everything is fine and works well?

Mr. Docteur
Forumember

Male Posts : 27
Reputation : 1
Language : HTML5, CSS3, JavaScript, PHP...

http://entraide-mr-docteur.forumactif.com/

Back to top Go down

Solved Thanks

Post by MoonChow on May 10th 2013, 10:07 am

Got it to work

MoonChow
New Member

Posts : 21
Reputation : 1
Language : English

Back to top Go down

Solved Re: How to constraint Avatar sizes (pixels)

Post by Mr. Docteur on May 10th 2013, 10:12 am

Super Very Happy!

Do not hesitate if you have further questions Wink

Mr. Docteur
Forumember

Male Posts : 27
Reputation : 1
Language : HTML5, CSS3, JavaScript, PHP...

http://entraide-mr-docteur.forumactif.com/

Back to top Go down

Solved Re: How to constraint Avatar sizes (pixels)

Post by Jophy on May 10th 2013, 2:11 pm

Topic Solved & Locked

Jophy
ForumGuru

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

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