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.

How to add '+' button to GroupEvent tab (Like '+' button to add discussion)

10 years 8 months ago
  • Susan's Avatar
    Topic Author
  • Susan
  • Offline
  • Fresh Boarder
  • Posts: 69
  • Thank you received: 20
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired Socialize Expired

ISSUE SUMMARY:
I like the '+' button on the Discussion tab in Groups. I would like to add one of these to the Events tab in groups as a short cut to add an event. How do I do this?

Thanks

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

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

Hi Susan,

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

<a href="#joms-group--events"  class="active"><?php echo JText::sprintf('COM_COMMUNITY_EVENTS'); ?></a>
<a href="#joms-group--events"  class="active"><?php echo JText::sprintf('COM_COMMUNITY_EVENTS'); ?></a>

replace to :
<a href="#joms-group--events"  class="active no-padding">
                 <div class="joms-tab__bar--button">
                        <span class="title"><?php echo JText::sprintf('COM_COMMUNITY_EVENTS'); ?></span>
                        <span class="add" onclick="window.location='<?php echo CRoute::_('index.php?option=com_community&view=events&task=create&groupid=' . $group->id); ?>5'">
                            <svg class="joms-icon" viewBox="0 -5 15 30">
                                <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/jomsocial/index.php/jomsocial/groups/viewgroup/45-public-group-56aeff198d610#joms-icon-plus" class="joms-icon--svg-fixed"></use>
                            </svg>
                        </span>
                    </div>
                </a>
                <a href="#joms-group--members" class=" no-padding">
                 <div class="joms-tab__bar--button">
                        <span class="title"><?php echo JText::sprintf('COM_COMMUNITY_GROUPS_MEMBERS'); ?></span>
                        
                </div>
                </a>

thank you!

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