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.

Invite Friends

7 years 8 months ago
Licenses:
JomSocial Active Socialize Active

Is it possible to delete the facility for people to invite friends to events?
This appears twice:
* on the list of events
* in the description of each individual event


STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

7 years 8 months ago
Licenses:

Hi,

I cannot see jomsocial 4.2.4 installed at your site, only found 2.4.2.
but here the steps:
1)
please copy
/components/com_community/templates/jomsocial/layouts/events/list.php
/components/com_community/templates/jomsocial/layouts/events/single.php
to
/templates/socialize/html/com_community/layouts/events/list.php
/templates/socialize/html/com_community/layouts/events/single.php

2)
remove this code:
/templates/socialize/html/com_community/layouts/events/list.php line 185

<li><a href="javascript:"
       onclick="joms.api.eventInvite('<?php echo $event->id; ?>');"><?php echo JText::_(
            'COM_COMMUNITY_INVITE_FRIENDS'
        ); ?></a></li>
/templates/socialize/html/com_community/layouts/events/single.php line 143
<a href="javascript:" class="joms-focus__button--add joms-button--secondary" onclick="joms.api.eventInvite('<?php echo $event->id; ?>', '<?php echo $isGroupEvent ? "group" : "" ?>')">
    <?php echo JText::_($isGroupEvent ? 'COM_COMMUNITY_EVENT_INVITE_GROUP_MEMBERS' : 'COM_COMMUNITY_TAB_INVITE'); ?>
</a>
and line 229
<a href="javascript:" class="joms-focus__button--add joms-button--secondary" onclick="joms.api.eventInvite('<?php echo $event->id; ?>', '<?php echo $isGroupEvent ? "group" : "" ?>')">
    <?php echo JText::_($isGroupEvent ? 'COM_COMMUNITY_EVENT_INVITE_GROUP_MEMBERS' : 'COM_COMMUNITY_TAB_INVITE'); ?>
</a>

Ref:
documentation.jomsocial.com/wiki/Customizing_Template

Regards

7 years 8 months ago
Licenses:
JomSocial Active Socialize Active

Thank you for your advice and help. The latest version of Jomsocial is in root/jupgrade.

I have copied the two files and edited them as advised but I am still seeing the Invite buttons - as per the two attached screen shots. Would be grateful for any further help that you can offer me.



Attachments:
7 years 8 months ago
Licenses:

Hi,

for events, you need to make new override file for:
/components/com_community/templates/jomsocial/layouts/events/list.php
and remove this code from line 300

<a href="javascript:" class="joms-button--secondary joms-button--small" onclick="joms.api.eventInvite('<?php echo $event->id; ?>', '<?php echo $isGroupEvent ? "group" : "" ?>')">
    <?php echo JText::_($isGroupEvent ? 'COM_COMMUNITY_EVENT_INVITE_GROUP_MEMBERS' : 'COM_COMMUNITY_TAB_INVITE'); ?>
</a>
/components/com_community/templates/jomsocial/layouts/events/single.php
remove this code from line 143
<a href="javascript:" class="joms-focus__button--add joms-button--secondary" onclick="joms.api.eventInvite('<?php echo $event->id; ?>', '<?php echo $isGroupEvent ? "group" : "" ?>')">
    <?php echo JText::_($isGroupEvent ? 'COM_COMMUNITY_EVENT_INVITE_GROUP_MEMBERS' : 'COM_COMMUNITY_TAB_INVITE'); ?>
</a>

Regards

The following user(s) said Thank You: Richard Cail
7 years 8 months ago
Licenses:
JomSocial Active Socialize Active

Thank you very much for all your help. I have now fixed this issue.

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