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.

Profile - friends and groups internal module removal

11 years 11 months ago
Licenses:
JomSocial Expired

Hello i would really need to remove two things from my jomsocial:
a) the friends jomsocial module that appears on the profile.
b) on any profile cover i need to remove the "x friends" that tells you how many friends you have.

Basically i don't want to use the friends feature in my jomsocial.
I have the jomsocial version 3.2.1.5 and joomla 2.5
Thanks for the support!

11 years 11 months ago
Licenses:

Hi Antonio,
a)
copy profile.friends.php from/components/com_community/templates/default/ to /templates/evbets/html/com_community/
at line 18 you can find this code

<div class="cModule cProfile-Friends app-box">
	<h3 class="app-box-header"><?php echo JText::_('COM_COMMUNITY_PROFILE_FRIENDS'); ?></h3>
	<div class="app-box-content">
		<?php
		if( $friends )
		{
		?>
		<ul class="cResetList cThumbsList clearfix">
			<?php
			for($i = 0; $i < count($friends); $i++) {
				$friend =& $friends[$i];
			?>
			<li>
				<a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$friend->id); ?>">
					<img alt="<?php echo $friend->getDisplayName();?>" title="<?php echo $friend->getTooltip(); ?>" src="<?php echo $friend->getThumbAvatar(); ?>" class="cAvatar jomNameTips" />
				</a>
			</li>
			<?php } ?>
		</ul>
		<?php
		}
		else
		{
		?>
			<div class="cEmpty"><?php echo JText::_('COM_COMMUNITY_NO_FRIENDS_YET');?></div>
		<?php
		}
		?>
	</div>
	<div class="app-box-footer">
		<a href="<?php echo CRoute::_('index.php?option=com_community&view=friends&userid=' . $user->id ); ?>">
			<span><?php echo JText::_('COM_COMMUNITY_FRIENDS_VIEW_ALL'); ?></span>
			<span <?php echo $is_rtl; ?> > (<?php echo $total;?>)</span>
		</a>
	</div>
</div>
remove it.

b)
copy userinfo.php from /components/com_community/templates/default/modules/profile/ to /templates/evbets/html/com_community/modules/profile/

edit it, at line 108 you can find this code
<a href="<?php echo CRoute::_('index.php?option=com_community&view=friends&userid='.$profile->id); ?>">
	<?php echo ($profile->_friends == 1) ?  JText::sprintf('COM_COMMUNITY_FRIENDS_COUNT',$profile->_friends) : JText::sprintf('COM_COMMUNITY_FRIENDS_COUNT_MANY',$profile->_friends) ?>
</a>

remove it.

if you cant do it. please provide me FTP access detail by editing your first post at this topic. put it under site info form

as ref:
documentation.jomsocial.com/wiki/Customizing_Template

Regards,
Albert

11 years 11 months ago
Licenses:
JomSocial Expired

Hello Albertus, I did not find the specified directory (/ templates / evbets / html / com_community /) I have to create them? I entered the data in the FTP information. Thanks for the help

11 years 11 months ago
Licenses:

Hi Antonio,

please check it, I did for you.
that directory must create first if not exist.

Regards,
Albert

The following user(s) said Thank You: Antonio Cristiano
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