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.

Disable Groups and Friends in Profile Cover menu.

9 years 6 months ago
Licenses:
JomSocial Active GURU Expired

Hi,
I wanted to delete Friends and Groups modules from the profile cover.
I found one of the replies that recommended the following:
"Make override file for the template: documentation.jomsocial.com/wiki/Customizing_Template
make override file for:
components/com_community/templates/default/profile.firends.php
components/com_community/templates/default/profile.groups.php
components/com_community/templates/default/profile.index.php
override for profile.firends.php and profile.groups.php delete all code at there, so it will empty file.and override for profile.index.php, edit line 35:
from:
<div class="span8">
to
div class="span12">"

I have done so but the Friends and Groups are still visible on the menu just below the Profile cover.
My override files are created in ROOT/templates/MyTemplateName/html/com_community

Thanks.
Am I missing something from the above instructions?

9 years 6 months ago
Licenses:

In order to remove those links you'll need to edit this file:

ROOT/components/com_community/templates/default/modules/profile/userinfo.php

(WARNING! Core file hack! Please, make safe copy of edited file. It means also that this file will be overwritten during upgrade, so please make a safe copy of customized file as well.)

Links are in UL and this element starts from line 77. You should be interested in lines: 94 and 107.


- 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
9 years 6 months ago
Licenses:
JomSocial Active GURU Expired

Hi,
I tried your solution and deleted the code:
<?php }?>
<?php if($groupEnabled) {?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=mygroups&userid='.$profile->id); ?>">
<?php echo ($profile->_groups == 1) ? JText::sprintf('COM_COMMUNITY_GROUPS_COUNT',$profile->_groups) : JText::sprintf('COM_COMMUNITY_GROUPS_COUNT_MANY',$profile->_groups) ?>
</a>
</li>
but it didn't work.

9 years 6 months ago
Licenses:

Hi.

This solution works 100% :)

Just remove code carefully.


- 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
9 years 6 months ago
Licenses:
JomSocial Active GURU Expired

Like I said, the solution is not working.
Are these the codes to remove to get rid of the Group module?

9 years 6 months ago
  • Paul's Avatar
  • Paul
  • Visitor
  • Thank you received: 0
Licenses:

HI Jomsocial Newbie,

Lets see if we can get this working for you. There are a few ways to do it but this way should be quite simple

Open the file siteroot/components/com_community/templates/default/profile.index.php

then find the following code around line 68

<!-- begin: .cSidebar -->
			<div class="cSidebar">
				<?php

					$this->renderModules( 'js_side_top' );
					$this->renderModules( 'js_profile_side_top' );
					echo $sidebarTop;

					if($isMine) $this->renderModules( 'js_profile_mine_side_top' );

					echo $this->view('profile')->modProfileUserVideo();
					echo $this->view('profile')->modGetFriendsHTML();

					if( $config->get('enablegroups')){
					echo $this->view('profile')->modGetGroupsHTML();
					}

					if($isMine) $this->renderModules( 'js_profile_mine_side_bottom' );

					echo $sidebarBottom;
					$this->renderModules( 'js_profile_side_bottom' );
					$this->renderModules( 'js_side_bottom' );
				?>
			</div>
			<!-- end: .cSidebar -->

if you want to stop groups and friends from showing simply do the following for friends
//	echo $this->view('profile')->modGetFriendsHTML();
and the following for groups
//		echo $this->view('profile')->modGetGroupsHTML();

then change the span from 8 to 12 around line 35
<div class="row-fluid">
		<div class="span8">
			<!-- begin: .cMain -->
			<div class="cMain">

				<?php $this->renderModules( 'js_profile_feed_top' ); ?>
				<div class="activity-stream-front">

to
<div class="row-fluid">
		<div class="span12">
			<!-- begin: .cMain -->
			<div class="cMain">

				<?php $this->renderModules( 'js_profile_feed_top' ); ?>
				<div class="activity-stream-front">

A few things to note
1. If you use the other module positions like profile_mine_top etc then with span 12 this will wrap it to the bottom
2. If you don't want the side bar at all then you can simply remove the entire sidebar block and set span8 to span 12
3. Do this as an override then the changes will not be lost.

If you get stuck let me know

Have a great day

9 years 6 months ago
Licenses:
JomSocial Active GURU Expired

Thank you very much, Paul.

This solution works.

Have a great day ahead.

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