ISSUE SUMMARY:
Twice I've used (or tried to use) instructions from the post linked below and each time without success: [url=http://]https://www.jomsocial.com/forum/profile-universal-features/34548-gloably-remove-invite-friends-buttons-and-links#167949[/url](By the way, instructions in this post did not cover removal from groups).
I've noticed that several users or potential users have asked for this feature.
What are the chances of JomSocial creating a zip file that includes all of the files, with changes, required to globally remove all Invite Friends Buttons and Links? The file could be unzipped at /templates/your-template/html/com_community/???
STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER
Hi Jim,
This solution seems enough to achive the request
www.jomsocial.com/forum/profile-universa...ons-and-links#166460
We dont provide the full code to override this, because the code will be overriden after you upgrade jomsocial, so we provide the steps to achive it and you can follow it :)
Anyway, what is you problem after you apply that hack, please let us know
thank you!
Ok, I'm close to understanding this. There appears to be about 3 or 4 files in layouts/groups that should be edited. I hesitate to make changes until I know exactly what code should be remove.
Also, if you could list exactly the code Albertus is referring to in the attached image (from the solutions posted earlier), I will have all I need.
Everything is working except for the two issues above.
which layout? please provide me the screenshoot, to understand it better ;)
follow this
1. open this file components/com_community/templates/jomsocial/layouts/groups/single.php, remove this block code :
<li>
<a href="javascript:" onclick="joms.api.groupInvite('<?php echo $group->id ?>');"><?php echo JText::_('COM_COMMUNITY_INVITE_FRIENDS'); ?></a>
</li>
<a href="javascript:" class="joms-focus__button--add" onclick="joms.api.groupInvite('<?php echo $group->id; ?>')">
<?php echo JText::_('COM_COMMUNITY_INVITE_FRIENDS'); ?>
</a>
<a href="javascript:" class="joms-focus__button--add" onclick="joms.api.groupInvite('<?php echo $group->id; ?>')">
<?php echo JText::_('COM_COMMUNITY_INVITE_FRIENDS'); ?>
</a>
<span class="joms-text--light">
<?php echo $member->friendsCount;?> <?php echo JText::sprintf( (CStringHelper::isPlural($member->friendsCount)) ? 'COM_COMMUNITY_FRIENDS_COUNT_MANY' : 'COM_COMMUNITY_FRIENDS_COUNT', $member->friendsCount);?>
</span>
<div onclick="window.location='<?php echo CRoute::_('index.php?option=com_community&view=friends&task=invite'); ?>';" class="joms-button--add">
<?php echo JText::_('COM_COMMUNITY_INVITE_FRIENDS'); ?>
<svg class="joms-icon" viewBox="0 0 16 16">
<use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-plus"></use>
</svg>
</div>
Thank you very much. Everything appears to be working as desired.
I am puzzled by one thing. Albertus gave Edward these instructions:
*******************************************************************
Please put this custom CSS at: /templates/yoo_monday/styles/default-cce/css/custom.css
.cFriends .joms-subnav__menu, .cFriends .joms-subnav--desktop {
display: none !important;
}
*******************************************************************
If I add this what would the default-cce represent on my system:
/template/socialize/styles/????????/css/custom.css
that css hack only for hide HTML friend button to show, but the HTML code still there.. this is nice trick, but if you think the previous solution solve this issue, you can ignore the css hack..