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
Hi,
ON your event detail page, I cant see this code
<li class="full mobile-only--show">
<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>
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>
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!
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!