remove display of 'quota left' from everyone ELSE's profile page
MrGeek - September 20, 2008 - 17:14
| Project: | Quota by role |
| Version: | 5.x-8.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
would it be possible either via an option, or just post a code-modification here, to remove the "quota left" from displaying on OTHER member's account-page? it's very confusing to my members to view someone else's account-page, but have THEIR quota displayed on it.

#1
I did this in Drupal 6.x by creating the following user-profile.tpl.php file:
<div class="profile"><?php
global $user;
// check if user viewing is the same as the my profile page; if not, unset quota_by_role portion of $profile
if ($user->uid != arg(1)) {
unset($profile[t('quota_by_role')]);
}
foreach ($profile AS $k => $v) {
print $v;
}
?>
</div>
Info that helped me figure this out:
http://drupal.org/node/35728
http://drupal.org/node/138127, especially http://drupal.org/node/138127#comment-1197051