Bigger Avatars

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-07-2007, 08:59 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
I´d like to have bigger avatars like here: http://forums.pligg.com/pligg-mods/8...html#post36939 (just this post)
Reply With Quote
  #2 (permalink)  
Old 08-07-2007, 09:10 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Isn't there a setting in admin > config > avatars? I think it defaults at 30x30. If you change it it will only take effect with newly uploaded avatars.
Reply With Quote
  #3 (permalink)  
Old 08-07-2007, 09:18 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Didn´t get it, thank you! As a side effect all 30x30 images disappear, i.e. you have to change it from the start or notice all your users.
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 01:19 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
I still need 30 px Avatars due to the layout of Pligg whereas I need bigger avatars for my sidebar. I could change in Admin to a 30+ value but then all the users have to re-submit their images in order to get a bigger avatar.

Could I have a mod to define a medium avatar size? If it´s too heavy I would be delighted if the medium size is fixed somewhere in the relevant code to get three different sized avatars with only one image submission.

Thank you!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 06:11 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
I´ve found a hardcoded solution. It´s in profile.php (for the size of 30px):
Code:
// create fixed medium avatar
		$img=new pThumb();
		$img->pSetSize(30, 30);
		$img->pSetQuality(100);
		$img->pCreate($newimage);
		$img->pSave($user_image_path . $current_user->user_login . "_30.jpg");
		$img = "";

Last edited by tbones; 02-20-2008 at 07:11 PM.
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 06:32 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
I would have done this:
the places in sidebar where the avatar is called - just go change the code get_avatar('small',... to get_avatar('large',...

as 30 px is the default size in Pligg for large avatar.
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 09:41 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Thank you, but I need three different sizes:
15 px (small) for the welcome message and the who´s online display
30 px for the profile to fit into the css styling
45 px (large) for the stories and the sidebar (Top 3 commenters)

Since I don´t change the system that often I´m pretty happy with my hardcoded solution :-)


P.S.: Feel free to have look at this single post: http://forums.pligg.com/pligg-mods/1...html#post56490
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wistie Avatars Not working phnick Questions and Comments 3 01-17-2010 02:17 PM
Avatars missing after upgrade greeneyed_itgirl Questions and Comments 11 12-12-2009 05:20 AM
Error Logs getting bigger and bigger GrinGEO Questions and Comments 5 11-14-2007 01:17 PM
show default avatars johnvgross Questions and Comments 0 02-09-2007 07:00 AM
Impossible to upload Avatars (built 278) Daidy Questions and Comments 4 09-27-2006 03:48 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development