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 or remove "Invite Friends" option from groups

3 years 7 months ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 1
Licenses:
JomSocial Active iSEO Expired Socialize Active

The groups in my site are highly exclusive and membership is only approved through a group leader after a bit of protocol that goes on outside the website. However, the members that are already in their own group are trying to invite members whom are their friends into their group despite them never having met with the group leader. I tried removing the button with this:

.joms-focus__button--add {
display: none !important;
}

I don't mind that this removes the option to add friends in some places, since we don't need "friends" for our site, but it also kills the ability to RSVP to events, which we need.

Simply stated: how can I remove the "invite friends" option from groups. It appears on the group page and on the groups lists. Thanks for your help!!!

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

Hi Scott,

You should modify this file components/com_community/templates/jomsocial/layouts/groups/single.php. and remove this code :

<!-- invite friend button -->
                    <a href="javascript:" class="joms-focus__button--add" onclick="joms.api.groupInvite('<?php echo $group->id; ?>')">
                        <?php echo JText::_('COM_COMMUNITY_INVITE_FRIENDS'); ?>
                    </a>

thank you!

3 years 6 months ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 1
Licenses:
JomSocial Active iSEO Expired Socialize Active

Sorry for the belated response on this. I'm still seeing the invite friends option as a regular registered user. See attached.

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

Hi,

- from list group, open this file components/com_community/templates/jomsocial/layouts/groups/list.php, find and remove this code :

$canInvite = true;
- from detail group, file components/com_community/templates/jomsocial/layouts/groups/single.php, find and remove this code :
<?php // Invite
    if ($isMember) { ?>
        <a href="javascript:" class="joms-focus__button--add" onclick="joms.api.groupInvite('<?php echo $group->id; ?>')">
            <?php echo JText::_('COM_COMMUNITY_INVITE_FRIENDS'); ?>
        </a>
    <?php } ?>

thank you!

3 years 5 months ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 1
Licenses:
JomSocial Active iSEO Expired Socialize Active

Thanks for your help. I followed your instructions and It's off of the list, but I'm still seeing the "invite friends" option on the group page.

3 years 5 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

find and delete this code as well :

<li>
                <a href="javascript:" onclick="joms.api.groupInvite('<?php echo $group->id ?>');"><?php echo JText::_('COM_COMMUNITY_INVITE_FRIENDS'); ?></a>
            </li>

well, please search "COM_COMMUNITY_INVITE_FRIENDS" on layouts/groups/single.php, and remove them all once you find it :)

3 years 5 months ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 1
Licenses:
JomSocial Active iSEO Expired Socialize Active

That did it. Thank you!

1 year 6 months ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 1
Licenses:
JomSocial Active iSEO Expired Socialize Active

Hey all,
This is happening again on the list of group members. I followed the instructions, but it's still there.

1 year 6 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi
Kindly check you have removed this code from components/com_community/templates/jomsocial/layouts/groups/list.php

<li><a href="javascript:" onclick="joms.api.groupInvite('<?php echo $group->id; ?>');"><?php echo JText::_('COM_COMMUNITY_INVITE_FRIENDS'); ?></a></li>

If still, you have the issue, kindly share site information.

1. Edit your first post.
2. Click switch below main text field: prntscr.com/fk3hdg
3. Provide your site details: backend URL, admin credentials and FTP: prntscr.com/fk3hwz
4. Let us know that you provided credentials by posting in the same thread.


I will check the issue and get back to you with details.

1 year 6 months ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 1
Licenses:
JomSocial Active iSEO Expired Socialize Active

We are still having the issue. I will provide login credentials shortly.

1 year 6 months ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 1
Licenses:
JomSocial Active iSEO Expired Socialize Active

I've updated the original ticket.

1 year 6 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi
The FTP details were not working so i remove it from admin panel.
/html/com_community/layouts/groups/list.php" in template "socialize". please check the group list now and give me URL and screenshot if it's still showing, As i checked it no more showing on list pages.

Regards

1 year 6 months ago
  • Scott's Avatar
    Topic Author
  • Scott
  • Offline
  • Fresh Boarder
  • Posts: 30
  • Thank you received: 1
Licenses:
JomSocial Active iSEO Expired Socialize Active

Sorry about that. I see where the username was messed up. I've updated the credentials in the original post. Please try again as I am still seeing the "Invite Friends" button on the Group page member's list. See here:

This message contains confidential information

Attachments:
1 year 6 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi
File :/components/com_community/templates/jomsocial/layouts/groups/minheader.php
I removed this code

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

Now its showing invite button.

Regards

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