Is it possible to hide profile cover image and show group cover image? i am attempting to use the group section mainly and use the profile area for just updating status ie similar to a twitter. I know how to hide the cover image i just dont know if that will hide both? Is there a way to hide one and not the other.
Hi, rsocial.
Yes, there is always a possibility :)
You'll need to hack this file: components/com_community/templates/default/modules/profile/userinfo.php and display in it cover of group that user belongs to. This code displays user cover:
<?php echo $profile->cover; ?>
<?php echo $group->getCover(); ?>
public function getCover() {
if (empty($this->cover)) {
$this->cover = 'components/com_community/templates/default/images/cover/group-default.png';
} else { /* if not local than get remote storage */
if ($this->storage != 'file') {
$storage = CStorage::getStorage($this->storage);
return $storage->getURI($this->cover);
}
}
return CUrlHelper::coverURI($this->cover, '');
}
i thought this would do the trick but based on my sites needs i cant have users view that profile area and groups are VERY important.
Question
1) Is there any other way to hide the user profile area? I thought of disabling user icon and links associated with user name ... would that be possible? Is there any other way of stopping users from being able to see their own profile
Hi, rsocial.
It's can be done... but you'll need to remove all references to user profile in nearly all view templates...
There is no simple hack for this.
Hi, rsocial.
Yes, but you'll need to comment/delete or alter all references to profile in all templates where it appears. No easy way to achieve it...
Hi, rsocial.
Sure they are. Profile cover is displayed in this file:
ROOT/components/com_community/templates/default/profile.index.php line 17
And group cover is displayed here:
ROOT/components/com_community/templates/default/groups.viewgroup.php line 28
So they are separated, they are different images.