Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Is it possible to hide profile cover image and show group cover image

10 years 2 months ago
  • rsocial's Avatar
    Topic Author
  • rsocial
  • Offline
  • Fresh Boarder
  • Posts: 65
  • Thank you received: 1
Licenses:
JomSocial Active

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.

10 years 2 months ago
Licenses:

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; ?>

And this one group cover:
<?php echo $group->getCover(); ?>

So you'll need to modify function:
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, '');
    }

Or write your own for users.

It will be much easier with only one group...

And also you must remember to backup original files and those modified.

I hope I set you on track.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 1 month ago
  • rsocial's Avatar
    Topic Author
  • rsocial
  • Offline
  • Fresh Boarder
  • Posts: 65
  • Thank you received: 1
Licenses:
JomSocial Active

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

10 years 1 month ago
Licenses:

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.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 1 month ago
  • rsocial's Avatar
    Topic Author
  • rsocial
  • Offline
  • Fresh Boarder
  • Posts: 65
  • Thank you received: 1
Licenses:
JomSocial Active

is there a way to disable the links associated with the avatar and user names that link to the profile..

10 years 1 month ago
Licenses:

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...


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 1 month ago
  • rsocial's Avatar
    Topic Author
  • rsocial
  • Offline
  • Fresh Boarder
  • Posts: 65
  • Thank you received: 1
Licenses:
JomSocial Active

is there a way to not remove it but not have it appear? ie display:none; or is that also not possible?

10 years 1 month ago
  • rsocial's Avatar
    Topic Author
  • rsocial
  • Offline
  • Fresh Boarder
  • Posts: 65
  • Thank you received: 1
Licenses:
JomSocial Active

the group cover page doesnt appear to be separate from the profile cover page

10 years 1 month ago
Licenses:

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.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW