Posted by steve22 on January 20, 2009 at 5:01am
Jump to:
| 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
Duplicate #493734: Patch for correct behavior with Me module