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.

Remove Invite Friends Buttons and Links

8 years 7 months ago
  • Jim's Avatar
    Topic Author
  • Jim
  • Offline
  • Fresh Boarder
  • Posts: 40
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

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

8 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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!

8 years 7 months ago
  • Jim's Avatar
    Topic Author
  • Jim
  • Offline
  • Fresh Boarder
  • Posts: 40
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

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.

Attachments:
8 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

which layout? please provide me the screenshoot, to understand it better ;)

8 years 7 months ago
  • Jim's Avatar
    Topic Author
  • Jim
  • Offline
  • Fresh Boarder
  • Posts: 40
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

These are the three remaining layouts.

Attachments:
8 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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>
and
<a href="javascript:" class="joms-focus__button--add" onclick="joms.api.groupInvite('<?php echo $group->id; ?>')">
            <?php echo JText::_('COM_COMMUNITY_INVITE_FRIENDS'); ?>
        </a>

2. edit components/com_community/templates/jomsocial/layouts/groups.viewmember.php and remove this code :
<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>

3. open this file components/com_community/templates/jomsocial/layouts/people.browser.php remove this code :
<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!

8 years 7 months ago
  • Jim's Avatar
    Topic Author
  • Jim
  • Offline
  • Fresh Boarder
  • Posts: 40
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

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

Attachments:
8 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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

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