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.

Avatar size isnt fitting

2 posters

Go down

Avatar size isnt fitting Empty Avatar size isnt fitting

Post by Mr. Eddster January 2nd 2012, 6:17 am

I have the settings set at 200 x 200 for the avatar, and when a member has a 200 x 200 avatar, it cuts off about 20 pixels of width. How do I fix this? Do I use the CSS Stylesheet? Thanks!
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Guest January 2nd 2012, 9:44 am

FLYERSROCK! wrote:Do I use the CSS Stylesheet?
Yep. I guess this is because this. Something like max-width you could have in your CSS Stylesheet. Search it. Smile
avatar
Guest
Guest


Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Mr. Eddster January 2nd 2012, 11:03 pm

Gassy wrote:
FLYERSROCK! wrote:Do I use the CSS Stylesheet?
Yep. I guess this is because this. Something like max-width you could have in your CSS Stylesheet. Search it. Smile
Ok I will try. bwi
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Richard. January 2nd 2012, 11:52 pm

may i see your viewtopic_body ?
Richard.
Richard.
Forumember

Male Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Mr. Eddster January 3rd 2012, 5:59 am

Richard. wrote:may i see your viewtopic_body ?
Sorry where do I locate this? CSS stylesheet? I typed viewtopic_body and viewtopic into the search and nothing came up.
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Richard. January 3rd 2012, 7:41 am

Go to : ACP=>Display=>Templates=>General=>Viewtopic_body And here Look for:
Code:
{postrow.displayed.POSTER_AVATAR}

Put this insted of that:
Code:
<div class="ava49">{postrow.displayed.POSTER_AVATAR}</div>

And add in ACP=>Display=>Pictures and Colors=>Colors=>CSS Stylesheet and here put at the end this code:

Code:
.ava49 img{
height: 200px !important;
width: 200px !important;

}

And now every member have avatars 200x200 and the avatar wont be cut it.
Richard.
Richard.
Forumember

Male Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Guest January 3rd 2012, 10:26 am

And replace:
Code:
.ava49 img{
height: 200px !important;
width: 200px !important;

}
with:
Code:
.ava49 img{
max-height: 200px !important;
max-width: 200px !important;
}

See the difference, Richard? Razz
avatar
Guest
Guest


Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Richard. January 3rd 2012, 12:37 pm

is working anyway. Razz
Richard.
Richard.
Forumember

Male Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Guest January 3rd 2012, 4:23 pm

If you'll have an 10x10 pixels avatar that will become 200x200 if the user will use your code, but max-width/height allow to resize the image if the size are more than 200x200 Razz
avatar
Guest
Guest


Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Mr. Eddster January 3rd 2012, 9:06 pm

Hey guys, I went to te Admin Panel ->> Display, but I dont see "Templates" anywhere, the 4 catagories are skins, Homepage, Pics and Colors, and Avatars, and under those catagoies, there is nothing titled "templates" Mad Shit
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Richard. January 3rd 2012, 9:09 pm

that means your not the Principal Administrator.
Richard.
Richard.
Forumember

Male Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Mr. Eddster January 3rd 2012, 9:16 pm

Are you sure it's called "templates"???
Edit: nvm


Last edited by FLYERSROCK! on January 3rd 2012, 9:18 pm; edited 1 time in total
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Mr. Eddster January 3rd 2012, 9:17 pm

Richard. wrote:that means your not the Principal Administrator.
Is that like the founder of the site?
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Richard. January 3rd 2012, 9:28 pm

Yeah , you have to be the one who created the forum. The template look like this: Avatar size isnt fitting Untitl27
Richard.
Richard.
Forumember

Male Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Mr. Eddster January 3rd 2012, 9:31 pm

Richard. wrote:Yeah , you have to be the one who created the forum. The template look like this: Avatar size isnt fitting Untitl27
Ohhh ok. Thank you! Thing is we have 4 mods (2 admins) who are always on, and the founder only pops in once a week, and he never stays around for stuff... and I could change his password, but then he wouldn't be able to log on...
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Richard. January 3rd 2012, 9:49 pm

You cant change the password from a Founder. Even if you try , is gonna give an error.
Richard.
Richard.
Forumember

Male Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Mr. Eddster January 3rd 2012, 9:52 pm

Richard. wrote:You cant change the password from a Founder. Even if you try , is gonna give an error.
Ok. Thank you. Then I guess I will have to catch him one time...
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Avatar size isnt fitting Empty Re: Avatar size isnt fitting

Post by Richard. January 3rd 2012, 11:55 pm

No problem
Richard.
Richard.
Forumember

Male Posts : 249
Reputation : 12
Language : English,Romanian
Location : Durham, NC - USA.

http://forum.phpbbonline.com/

Back to top Go down

Back to top


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