Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Event participate button doesn't display

6 years 5 months ago
  • Miran's Avatar
    Topic Author
  • Miran
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Licenses:
JomSocial Active

Hi again
I tried with these files:

- custom css : my buttons don't appear if i delete this file
- components > com_community > templates > jomsocial > layouts > events > single : my buttons don't appear if i put the original file here

Are there other files to check for a single event view??

Thank you

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

Hi,

ON your event detail page, I cant see this code

<li class="full mobile-only--show">

I am sure you modified/overried this file components/com_community/templates/jomsocial/events/single.php, and you need to make sure have this code there
<li class="full mobile-only--show">
                <a href="javascript:" class="joms-focus__button--add joms-button--small "
                    onclick="joms.api.eventResponse('<?php echo $event->id; ?>',
                        ['<?php echo COMMUNITY_EVENT_STATUS_ATTEND; ?>', '<?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_ATTEND', true); ?>'],
                        ['<?php echo COMMUNITY_EVENT_STATUS_MAYBE; ?>', '<?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_MAYBE_ATTEND', true); ?>'],
                        ['<?php echo COMMUNITY_EVENT_STATUS_WONTATTEND; ?>', '<?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_NOT_ATTEND', true); ?>']);">
                    <?php if ($event->getMemberStatus($my->id) == COMMUNITY_EVENT_STATUS_ATTEND) { ?>
                    <span class="joms-icon__attending"></span>
                    <?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_ATTEND'); ?>
                    <?php } else if ($event->getMemberStatus($my->id) >= COMMUNITY_EVENT_STATUS_MAYBE) { ?>
                    <span class="joms-icon__maybe-attending"></span>
                    <?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_MAYBE_ATTEND'); ?>
                    <?php } else if ($event->getMemberStatus($my->id) >= COMMUNITY_EVENT_STATUS_WONTATTEND) { ?>
                    <span class="joms-icon__not-attending"></span>
                    <?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_NOT_ATTEND'); ?>
                    <?php } else { ?>
                    <?php echo JText::_('COM_COMMUNITY_GROUPS_INVITATION_RESPONSE'); ?>
                    <svg class="joms-icon" viewBox="0 0 16 16">
                        <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-arrow-down"/>
                    </svg>
                    <?php } ?>
                </a>
            </li>

thank you!

6 years 5 months ago
  • Miran's Avatar
    Topic Author
  • Miran
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Licenses:
JomSocial Active

Hi!
You are right
In this folder on my FTP, i can see that i saved the original single.php which contains at the line 324

<li class="full mobile-only--show">
                <a href="javascript:" class="joms-focus__button--add joms-button--small "
                    onclick="joms.api.eventResponse('<?php echo $event->id; ?>',
                        ['<?php echo COMMUNITY_EVENT_STATUS_ATTEND; ?>', '<?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_ATTEND', true); ?>'],
                        ['<?php echo COMMUNITY_EVENT_STATUS_MAYBE; ?>', '<?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_MAYBE_ATTEND', true); ?>'],
                        ['<?php echo COMMUNITY_EVENT_STATUS_WONTATTEND; ?>', '<?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_NOT_ATTEND', true); ?>']);">
                    <?php if ($event->getMemberStatus($my->id) == COMMUNITY_EVENT_STATUS_ATTEND) { ?>
                    <span class="joms-icon__attending"></span>
                    <?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_ATTEND'); ?>
                    <?php } else if ($event->getMemberStatus($my->id) >= COMMUNITY_EVENT_STATUS_MAYBE) { ?>
                    <span class="joms-icon__maybe-attending"></span>
                    <?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_MAYBE_ATTEND'); ?>
                    <?php } else if ($event->getMemberStatus($my->id) >= COMMUNITY_EVENT_STATUS_WONTATTEND) { ?>
                    <span class="joms-icon__not-attending"></span>
                    <?php echo JText::_('COM_COMMUNITY_EVENTS_RSVP_NOT_ATTEND'); ?>
                    <?php } else { ?>
                    <?php echo JText::_('COM_COMMUNITY_GROUPS_INVITATION_RESPONSE'); ?>
                    <svg class="joms-icon" viewBox="0 0 16 16">
                        <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-arrow-down"/>
                    </svg>
                    <?php } ?>
                </a>
            </li>


In my activated single.php i have now this code. But no change on my event page, the buttons don't appear

Thank you!
Miran

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

Hi Miran,

I already fixed this, this is caused by override template, I disable the override thing on event layout file, and works fine.

thank you!

6 years 5 months ago
  • Miran's Avatar
    Topic Author
  • Miran
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Licenses:
JomSocial Active

Hi Dimas
It works! Thank you for your help :)

So do you think that for the future updates i will have any problems or no?
Regards
Miran

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

Hi Miran,

Actaully this issue caused by your old code on override template, I disabled the override template for events/single.php for fixing this.

thank you!

6 years 5 months ago
  • Miran's Avatar
    Topic Author
  • Miran
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Licenses:
JomSocial Active

Hi Dimas
Thanks for your help.
By disabling some files, my top menu disappeared. Could you tell me please which files you modified?

regards
Miran

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