Activity Stream
48,167 MEMBERS
6678 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    iGotMusic.org NitroRoms.com GamersFire.com

    Default [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'];
    Step 3: Replace with:
    Code: 
    					$member['pp_thumb_photo']  = $member['avatar_location']; // all popup javascript arrows will show avatar pictures
    Step 4: Find (Line 7093 - 7102):
    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'];
    		}
    Step 5: Add after:
    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'];
    		}
    Step 6: Save, Upload & Replace

    Extras: If you want a default avatar to show for every user, just follow In Flame's instructions.

    Quote Originally Posted by InFlames! View Post
    try this:

    1. Go to your FTP server: /public/style_avatars
    2. Delete: blank_avatar.gif
    3. Upload your default avatar to: /public/style_avatars
    4. Rename it to: blank_avatar.gif
    5. Go to your Admin CP: Look & Feel -> IP.Board (or your skin set) -> Templates -> Global Templates -> userInfoPane
    6. Find:
    Code: 
            <else />
                <li class='avatar'>{$author['avatar']}</li>
            </if>
    7. Replace with:
    Code: 
            <else />
                <li class='avatar'><a href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}"><img src="{$this->settings['public_dir']}/style_avatars/blank_avatar.gif" alt=""></a></li>
            </if>
    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

  2.   Sponsored Links

  3.     
    #2
    Probation
    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

  4.     
    #3
    Probation
    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Window Switch
    By Daniel in forum Webmaster Resources
    Replies: 0
    Last Post: 21st Jan 2012, 12:43 PM
  2. I want to switch from cPanel to Plesk
    By Webmin in forum Server Management
    Replies: 6
    Last Post: 20th Nov 2011, 09:30 PM
  3. Should i switch to XenForo?
    By gmaister22 in forum Webmaster Discussion
    Replies: 11
    Last Post: 1st Nov 2011, 09:54 AM
  4. So now how do we switch back to FB old layout :s
    By kohkindachi in forum Technical Help Desk Support
    Replies: 6
    Last Post: 21st Sep 2011, 03:09 PM
  5. How to switch from Wordpress to DLE?
    By Europe in forum Technical Help Desk Support
    Replies: 17
    Last Post: 28th Jun 2011, 08:12 AM

Tags for this Thread

BE SOCIAL