Download & Extend

Patch to display avatars of other users on user profile page in small size

Project:ImageCache Profiles
Version:6.x-1.0
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

<?php
   
   
// If on user profile page
-    if (arg(0) == 'user' && is_numeric(arg(1))) {
+   if (
arg(0) == 'user' && is_numeric(arg(1)) && arg(1)== $account->uid) {
      if (
variable_get('user_picture_imagecache_profiles', 0)) {
       
$size = variable_get('user_picture_imagecache_profiles', 0);
      }
    }
?>

Above patch set the picture of the user to which current user profile page belongs as profile_default (large), and pictures of all other users (such as avatars from relationship, buddylist or guestbook) on the user profile page are displayed as default (small). Can it be committed ?

Comments

#1

It's useful when I installed the user visits module. Thanks!

#2

Does this still need to be put in when using the latest version?
Where do I put it?

Thanks

#3

Status:active» closed (duplicate)

Duplicate #493734: Patch for correct behavior with Me module

nobody click here