The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Official Forums > PokéCommunity Questions & Feedback
Register New Account FAQ/Rules Chat Blogs Mark Forums Read

Notices

PokéCommunity Questions & Feedback Need help with the forums or want to leave a suggestion? This is the place. Please read the FAQ before asking a question. (Please do not use this forum for questions not relating to PokéCommunity!)



Reply
Thread Tools
  #1  
Unread October 31st, 2012, 03:49 AM
Team Fail's Avatar
Team Fail
Walk the walk // Talk the talk
 
Join Date: May 2009
Age: 18
Gender: Male
Nature: Brave
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
  #2  
Unread October 31st, 2012, 03:59 AM
PEDRO12's Avatar
PEDRO12
The Original Assassin
 
Join Date: Aug 2010
Location: Plano, Texas.
Age: 19
Gender: Male
Nature: Brave
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 :/)
__________________

Last edited by PEDRO12; October 31st, 2012 at 04:04 AM.
Reply With Quote
  This is the last staff post in this thread.   #3  
Unread October 31st, 2012, 04:04 AM
Ausaudriel's Avatar
Ausaudriel
waiting
random access admin
 
Join Date: May 2005
Location: Los Angeles
Gender: Male
Nature: Gentle
I removed the dimensions from that page. It's not important enough to worry about looking for the actual usergroup settings. :P
__________________
x Paired with Sylphiel x
Sometimes I do suspect I'm an actor in a well-scripted live Divine Comedy

Reply With Quote
  #4  
Unread October 31st, 2012, 04:06 AM
PEDRO12's Avatar
PEDRO12
The Original Assassin
 
Join Date: Aug 2010
Location: Plano, Texas.
Age: 19
Gender: Male
Nature: Brave
Lol, Jordan was just telling me over msn: "He's in ACP WHAT IS HE DOING?"
looool

I guess this is resolved ;-;
__________________
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 UTC. The time now is 06:25 AM.


Style by Perdition Haze, artwork by Sa-Dui.
Like our Facebook Page Follow us on TwitterMessage Board Statistics | © 2002 - 2013 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to Pokémon USA, Inc. and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company, Pokémon USA, Inc., The Pokémon Company International, or Wizards of the Coast. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2013 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User posts belong to the user.