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.

Create group button

8 years 2 months ago
Licenses:
JomSocial Active

Hello,

I have to profiles: Basic and Premium.

Basic doesn't allow to create groups. This works perfect. But, I would want to show create group button (like in events) and, if Basic profile click here show message that "access forbidden".

Is it possible to add this button?

I'm working in my dev site

Thanks

8 years 2 months ago
Licenses:

Hi,

please copy /components/com_community/templates/jomsocial/layouts/groups/base.php into
/templates/[front end template]/html/com_community/layouts/groups/base.php
edit it and line 75, change the code from

if ($my->authorise('community.create', 'groups')) { ?>
<button onclick="window.location='<?php echo CRoute::_('index.php?option=com_community&view=groups&task=create'); ?>';" class="joms-button--add">
    <?php echo JText::_('COM_COMMUNITY_GROUPS_CREATE_GROUP'); ?>
    <svg class="joms-icon" viewBox="0 0 16 16">
        <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-plus"/>
    </svg>
</button>
<?php } ?>
to
?>
<button onclick="window.location='<?php echo CRoute::_('index.php?option=com_community&view=groups&task=create'); ?>';" class="joms-button--add">
    <?php echo JText::_('COM_COMMUNITY_GROUPS_CREATE_GROUP'); ?>
    <svg class="joms-icon" viewBox="0 0 16 16">
        <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-plus"/>
    </svg>
</button>

Regards

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