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 sizing restrictions

+2
zenzo
UltimateShinobi
6 posters

Go down

In progress Avatar sizing restrictions

Post by UltimateShinobi January 19th 2013, 2:43 am

'Displays a small graphic image below your details in posts. Only one image can be displayed at a time, its width cannot exceed 150 pixels, the height cannot exceed 150 pixels, and the file size cannot be higher than 64 KB.'

I have this option selected because I don't want want peoples avatars exceeding 150x150 but they still can have larger ones.

What am I doing wrong?
UltimateShinobi
UltimateShinobi
Forumember

Male Posts : 118
Reputation : 0
Language : English
Location : Australia

http://www.ultimateshinobi.org/forum

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by zenzo January 19th 2013, 4:19 am

i think they already upload their avatar before you customize on your acp

try to reupload their avatar

Avatar sizing restrictions 20130119111428
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by Sanket January 19th 2013, 5:05 am

Forum URL? You can resize it.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by UltimateShinobi January 19th 2013, 5:24 am

UltimateShinobi
UltimateShinobi
Forumember

Male Posts : 118
Reputation : 0
Language : English
Location : Australia

http://www.ultimateshinobi.org/forum

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by Sanket January 19th 2013, 5:35 am

Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by UltimateShinobi January 19th 2013, 6:30 am

I'm quite surprised I have to add CSS coding to override an internal admin setting like that, oh well. I gave it a go and it seems it works for new images.

I'm wondering why it doesn't effect existing users' avatars?
UltimateShinobi
UltimateShinobi
Forumember

Male Posts : 118
Reputation : 0
Language : English
Location : Australia

http://www.ultimateshinobi.org/forum

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by Sanket January 19th 2013, 6:32 am

The code shall work for all users.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by UltimateShinobi January 19th 2013, 6:36 am

It doesn't appear that it is and I've just discovered that if somebody puts up an avatar via an URL link, not uploading it from their computer. It is still the size it wants to be, not 150x150.
UltimateShinobi
UltimateShinobi
Forumember

Male Posts : 118
Reputation : 0
Language : English
Location : Australia

http://www.ultimateshinobi.org/forum

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by Sanket January 19th 2013, 6:42 am

URL to that thread where the size is bigger even after adding that code?
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by zenzo January 19th 2013, 6:47 am

how to remove that url or hide it
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by UltimateShinobi January 19th 2013, 7:01 am

It's on their profiles, and I'm being told by a member that its still the same size on the side widget for them.

Here's an example: http://www.ultimateshinobi.org/u1834
UltimateShinobi
UltimateShinobi
Forumember

Male Posts : 118
Reputation : 0
Language : English
Location : Australia

http://www.ultimateshinobi.org/forum

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by Sanket January 19th 2013, 8:00 am

Add this in your css. See if the avatar in the profile reduces.
Code:
tr td.row1 img {
    max-width: 100px !important;
    max-height: 100px !important;
}
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by Setsugekka January 19th 2013, 8:27 am

I'm also a staff member on the site and while this works, it also reduces all images posted on the site to that small size.

Originally, the code I had looked like:

Code:
#content-container #left a img{
    max-width: 180px !important;
  max-height: 100px  !important;
  min-height: 18px  !important;
  min-width: 16px  !important;
}

#content-container #left img {
  height: 150px; width: 150px;
}

Problem is that the img tag shrinks all images. If we change it to

Code:

#content-container #left a img {
height: 150px; width: 150px;

It changes EVERY image on the widget except the login widget avatar because the login widget image is not a link.

I thought about trying to make the login widget avatar link to the profile so that it'd be included in the a img, but I have no clue how to do that.

I thought about doing #content-container #left img:not(.a img) but it seems forumotion doesn't support the not() CSS3 property.
Setsugekka
Setsugekka
New Member

Male Posts : 8
Reputation : 1
Language : English, Spanish, Japanese

http://setsugekka.forumotion.com/

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by Sanket January 19th 2013, 8:29 am

Yes, with phpbb2 the css is restricted. I will see if anything can be done via templates.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by UltimateShinobi January 19th 2013, 9:21 am

Let us know if you find anything, or if you don't. :/
UltimateShinobi
UltimateShinobi
Forumember

Male Posts : 118
Reputation : 0
Language : English
Location : Australia

http://www.ultimateshinobi.org/forum

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by Cassius Dio January 19th 2013, 12:18 pm

Hi,

Have you tried the code posted above by Sanket? If it isn't working try:
Code:
table.forumline tr td.row1.gensmall img{
    max-width: 100px !important;
    max-height: 100px !important;
}
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by slavib January 19th 2013, 11:36 pm

how code phpBB3
avatar
slavib
Forumember

Male Posts : 84
Reputation : 2
Language : Bulgarian
Location : Bulgaria

Back to top Go down

In progress Re: Avatar sizing restrictions

Post by Sanket January 20th 2013, 4:49 am

slavib wrote:how code phpBB3
It would be better if you make a new thread for your problem.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top

- Similar topics

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