Feedback & Support All things related to PokéCommunity, from feedback and ideas to support and questions.

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old October 30th, 2012 (7:49 PM).
Incineroar's Avatar
Incineroar Incineroar is offline
the spirit of the fighter
  • Moderator
  • Platinum Tier
  • Developer
 
Join Date: May 2009
Location: Iki Town
Age: 22
Gender: Male
Nature: Brave
Posts: 13,573
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?
__________________
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: 23
Gender: Male
Nature: Brave
Posts: 2,082
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).
Bebop's Avatar
Bebop Bebop is offline
you're a nut you're crazy in the coconut
  • Administrator
  • Crystal Tier
  • Discord Moderoid
  • Developer
 
Join Date: May 2005
Age: 26
Nature: Gentle
Posts: 11,306
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: 23
Gender: Male
Nature: Brave
Posts: 2,082
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

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account

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 4:17 AM.