Results 1 to 3 of 3
  1. #1
    Casual Pligger eH9116's Avatar
    Joined
    Jan 2007
    Posts
    47
    Thanks
    Received:0
    Given: 0

    Incorrect Avatar Fix

    Note sure if anyone else has noticed, but at least within beta 9 when you are viewing someone else's profile, your avatar changes to theirs. I found this to be quite annoying, but here is the fix for it.

    To change the call for the avatar in the profile box, open "/templates/your template/logged_in.tpl" and around line 7:

    Code:
    change: {Avatar_ImgSrc}
    
    to: {Avatar_ImgSrc2}
    Now we must define Avatar_ImgSrc2, so open up "/user.php" at line 87 and right below the original "$main_smarty->assign('Avatar_ImgSrc',...)", add:

    Code:
    $main_smarty->assign('Avatar_ImgSrc2', get_avatar('large', $user->avatar, $current_user->user_login, $user->email));
    Also, open up "/libs/smartyvariables.php" at line 29 and change:

    Code:
    if($current_user->user_login){$main_smarty->assign('Avatar_ImgSrc', get_avatar('large', "", $current_user->user_login));}
    to

    Code:
    if($current_user->user_login){
    $main_smarty->assign('Avatar_ImgSrc', get_avatar('large', "", $current_user->user_login));
    $main_smarty->assign('Avatar_ImgSrc2', get_avatar('large', "", $current_user->user_login));
    }
    Enjoy!

  2. #2
    Pligg Developer/Admin kbeeveer46's Avatar
    Joined
    Jun 2006
    Posts
    3,215
    Thanks
    Received:1
    Given: 0
    1. You are correct in finding this bug.

    2. If you searched the code log you would have found the fix and saved yourself a lot of time

    http://pligg.svn.sourceforge.net/vie...v&revision=564

  3. #3
    Casual Pligger eH9116's Avatar
    Joined
    Jan 2007
    Posts
    47
    Thanks
    Received:0
    Given: 0
    oh damnit...

Similar Threads

  1. Incorrect install.php path
    By dominic in forum Questions & Comments
    Replies: 0
    Last Post: 02-28-2009, 11:02 PM
  2. Replies: 1
    Last Post: 02-04-2009, 10:12 AM
  3. Breadcrumb Menu Has Incorrect URL
    By LovableCritters in forum Questions & Comments
    Replies: 10
    Last Post: 10-31-2007, 05:02 AM
  4. Incorrect Key while submit
    By Guy in forum Questions & Comments
    Replies: 1
    Last Post: 09-21-2007, 01:05 AM
  5. Incorrect database name. Can anybody help?
    By bubblegun in forum Questions & Comments
    Replies: 1
    Last Post: 10-01-2006, 09:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg