Notices
For all updates, view the main page.

City Hall: Feedback & Support This is the place for your concerns, praises or help relating to the PokéCommunity. Unsure of how to post a thread (though you should find out pretty quickly)? How do you get a blog? Maybe you don’t like a certain feature. Make a thread here and get responses from your fellow members and staff.

Reply
 
Thread Tools
  #1    
Old October 30th, 2012 (7:49 PM).
Incineroar's Avatar
the [christmas] spirit of the fighter
Moderator
 
Join Date: May 2009
Location: Iki Town
Age: 21
Gender: Male
Nature: Brave
Posts: 12,925
I was in my User CP, when I saw this under "Your Avatar:"

Quote:
An avatar is a small (130x130 pixels or less) image that's shown next to your username in posts; it should be something that defines you. If you're not sure what image you want to use, there are several hundred pre-set avatars here on PokéCommunity that you can choose from.
What I noticed is that the amount of pixels the avatar is, is not set per usergroup through some kind of variable, but rather, it's set as plain text with the default registered usergroup dimensions in the description.

Would it be possible to have this display on a per-usergroup basis, by checking the currently logged in user and their usergroup, then displaying that in the description, or make it more usergroup-neutral? Or am I just being too much for details?
__________________
Incineroar
the labpmalt
pair 1pair 2twitter

on reduced activity
Reply With Quote

Relevant Advertising!

  #2    
Old October 30th, 2012 (7:59 PM). Edited October 30th, 2012 by Echidna.
Echidna's Avatar
Echidna Echidna is offline
i don't care what's in your hair
Platinum Tier
 
Join Date: Aug 2010
Location: Illinois
Age: 22
Gender: Male
Nature: Brave
Posts: 1,962
Nice catch ;O
Well this is actually more than possible, it's quite easy. All you'd need to do is find $maxnote in ...### EDIT AVATAR ###... in profile.php.

It's actually right here:
Code:
$maxnote = '';
		if ($permissions['avatarmaxsize'] AND ($permissions['avatarmaxwidth'] OR $permissions['avatarmaxheight']))
		{
			$maxnote = construct_phrase($vbphrase['note_maximum_size_x_y_or_z'], $permissions['avatarmaxwidth'], $permissions['avatarmaxheight'], $permissions['avatarmaxsize']);
		}
		else if ($permissions['avatarmaxsize'])
		{
			$maxnote = construct_phrase($vbphrase['note_maximum_size_x'], $permissions['avatarmaxsize']);
		}
		else if ($permissions['avatarmaxwidth'] OR $permissions['avatarmaxheight'])
		{
			$maxnote = construct_phrase($vbphrase['note_maximum_size_x_y_pixels'], $permissions['avatarmaxwidth'], $permissions['avatarmaxheight']);
		}
		$show['maxnote'] = (!empty($maxnote)) ? true : false;
	}
There's your variable right in there :3 (Actually I think it's under that segment cause this is the text variable, the actual dimensions would have to be declared before/after this part :/ - sorry too tired to think right now :/)
__________________
but my taste in music is your face
Reply With Quote
  #3    
Old October 30th, 2012 (8:04 PM).
Rick_Sanchez's Avatar
you're a nut you're crazy in the coconut
DSC
 
Join Date: May 2005
Location: Stardew Valley
Age: 25
Gender: Male
Nature: Gentle
Posts: 10,818
I removed the dimensions from that page. It's not important enough to worry about looking for the actual usergroup settings. :P
__________________
cosmos without hatred
diamond stars of cosmic light
quasars shine through endless nights
Reply With Quote
  #4    
Old October 30th, 2012 (8:06 PM).
Echidna's Avatar
Echidna Echidna is offline
i don't care what's in your hair
Platinum Tier
 
Join Date: Aug 2010
Location: Illinois
Age: 22
Gender: Male
Nature: Brave
Posts: 1,962
Lol, Jordan was just telling me over msn: "He's in ACP WHAT IS HE DOING?"
looool

I guess this is resolved ;-;
__________________
but my taste in music is your face
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:16 PM.