Results 1 to 3 of 3
-
28th Jan 2010, 09:47 PM #1OPMemberWebsite's:
iGotMusic.org NitroRoms.com GamersFire.com[TUT] Switch Photos to Avatars (IPB 3.x)
[TUT] Switch Photos to Avatars (IPB 3.x)
Description: This will make it so all global photo variables show as avatar pictures instead. Meaning, all your members will have only one picture choice for their profiles.
Results
1. http://i49.tinypic.com/4pvwp5.png
2. http://i49.tinypic.com/14jukg8.png
3. http://i45.tinypic.com/15z2lp3.png
Edit Time: ~ 5 Minutes
Step 0: Please make sure you backup your files.
Step 1: Open admin/sources/base/core.php
Step 2: Find (Line 7071):
Code:$member['pp_thumb_photo'] = ipsRegistry::$settings['upload_url'] . '/' . $member['pp_thumb_photo'];
Code:$member['pp_thumb_photo'] = $member['avatar_location']; // all popup javascript arrows will show avatar pictures
Code://----------------------------------------- // Mini //----------------------------------------- $_data = IPSLib::scaleImage( array( 'max_height' => 25, 'max_width' => 25, 'cur_width' => $member['pp_thumb_width'], 'cur_height' => $member['pp_thumb_height'] ) ); $member['pp_mini_photo'] = $member['pp_thumb_photo']; $member['pp_mini_width'] = $_data['img_width']; $member['pp_mini_height'] = $_data['img_height']; }
Code://Force ALL photos to be avatars. if(!empty($member['avatar_location']) && basename($member['pp_main_photo']) === 'default_large.png'){ $member['pp_main_photo'] = $member['avatar_location']; $member['pp_thumb_photo'] = $member['avatar_location']; $member['pp_mini_photo'] = $member['avatar_location']; $member['fb_photo'] = $member['avatar_location']; $member['fb_photo_thumb'] = $member['avatar_location']; }
Extras: If you want a default avatar to show for every user, just follow In Flame's instructions.
Golden Falcon Reviewed by Golden Falcon on . [TUT] Switch Photos to Avatars (IPB 3.x) Switch Photos to Avatars (IPB 3.x) Description: This will make it so all global photo variables show as avatar pictures instead. Meaning, all your members will have only one picture choice for their profiles. Results 1. http://i49.tinypic.com/4pvwp5.png 2. http://i49.tinypic.com/14jukg8.png 3. http://i45.tinypic.com/15z2lp3.png Edit Time: ~ 5 Minutes Rating: 5
-
22nd Feb 2010, 04:19 PM #2Probation
Cant seem to get this working on my board. The photos are not being pulled in as avatars on the posts. Also the image on the user nav (upper right corner) does not seem to be functioning either, it does not display any image
-
1st Aug 2010, 04:56 PM #3Probation
Wonderful!! This is just what I needed, thank you!
However, I'm having some issues with IPB 3.1.2
This is not working with avatars that have been uploaded. It works great for offsite avatars, but it's getting the wrong location for uploaded avatars. My forum is in a /forum/ subdirectory, but it's looking in the root.
Any thoughts?
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Window Switch
By Daniel in forum Webmaster ResourcesReplies: 0Last Post: 21st Jan 2012, 12:43 PM -
I want to switch from cPanel to Plesk
By Webmin in forum Server ManagementReplies: 6Last Post: 20th Nov 2011, 09:30 PM -
Should i switch to XenForo?
By gmaister22 in forum Webmaster DiscussionReplies: 11Last Post: 1st Nov 2011, 09:54 AM -
So now how do we switch back to FB old layout :s
By kohkindachi in forum Technical Help Desk SupportReplies: 6Last Post: 21st Sep 2011, 03:09 PM -
How to switch from Wordpress to DLE?
By Europe in forum Technical Help Desk SupportReplies: 17Last Post: 28th Jun 2011, 08:12 AM
themaCreator - create posts from...
Version 3.25 released. Open older version (or...