ISSUE SUMMARY:
When you are invited to an event this message appears and I would like to edit it:
"X invited you to join this event.
4 of your friend has joined this event.
Kindly reply with your RSVP or Reject"
Also in correct English '4 of your friend has' should say '4 of your friends have'
How can I edit this message please? it is very long wording for mobile view. It could say just "X invited you.
4 of your friends are going.
Kindly RSVP or Reject"
STEPS TO REPLICATE:
1 create event
2 invite friend
3 friend checks event page and gets the message above
4
5
RESULT
EXPECTED RESULT
BROWSER
Hi Susan,
its a bug. here the fix:
edit /components/com_community/templates/jomsocial/layouts/events/single.php at line 498
change the code from
<?php echo JText::sprintf( (CStringHelper::isPlural($friendsCount)) ? 'COM_COMMUNITY_EVENTS_FRIEND' : 'COM_COMMUNITY_EVENTS_FRIEND_MANY', $friendsCount ); ?>
<?php echo JText::sprintf( (CStringHelper::isPlural($friendsCount)) ? 'COM_COMMUNITY_EVENTS_FRIEND_MANY' : 'COM_COMMUNITY_EVENTS_FRIEND', $friendsCount ); ?>
COM_COMMUNITY_EVENTS_YOUR_INVITED
COM_COMMUNITY_EVENTS_FRIEND
COM_COMMUNITY_EVENTS_FRIEND_MANY
COM_COMMUNITY_EVENTS_RSVP_NOTIFICATION
Thanks. I have decided I would like to delete all of this apart from 'X invited you', the words of which is is presumably in COM_COMMUNITY_EVENTS_YOUR_INVITED?
Please can you give me the fix to leave just part that in the message?
Thanks a lot
Hi Susan,
here the steps:
copy single.php from /components/com_community/templates/jomsocial/layouts/events/ to /templates/[frontend template]/html/om_community/layouts/events/
edit it, at line 493 you can find this code
<div class="cInvite-Message">
<?php echo JText::sprintf( 'COM_COMMUNITY_EVENTS_YOUR_INVITED', $join ); $test = 1; ?>
</div>
I want the opposite - sorry!
I would like to keep COM_COMMUNITY_EVENTS_YOUR_INVITED
And remove the following:
COM_COMMUNITY_EVENTS_FRIEND
COM_COMMUNITY_EVENTS_FRIEND_MANY
COM_COMMUNITY_EVENTS_RSVP_NOTIFICATION
Thanks a lot!
Hi,
you can changing this code at line 496
<?php if ($friendsCount) { ?>
<div class="cInvite-Relations">
<?php echo JText::sprintf( (CStringHelper::isPlural($friendsCount)) ? 'COM_COMMUNITY_EVENTS_FRIEND' : 'COM_COMMUNITY_EVENTS_FRIEND_MANY', $friendsCount ); ?>
</div>
<?php } ?>
<div class="cInvite-Actions">
<?php echo JText::_( 'COM_COMMUNITY_EVENTS_RSVP_NOTIFICATION' ) . JText::_('COM_COMMUNITY_OR'); ?>
<a href="javascript:void(0);" onclick="jax.call('community','events,ajaxRejectInvitation','<?php echo $event->id; ?>');">
<?php echo JText::_('COM_COMMUNITY_EVENTS_REJECT'); ?>
</a>
</div>
<div class="cInvite-Actions">
<a href="javascript:void(0);" onclick="jax.call('community','events,ajaxRejectInvitation','<?php echo $event->id; ?>');">
<?php echo JText::_('COM_COMMUNITY_EVENTS_REJECT'); ?>
</a>
</div>
Hi,
remove this code at line 496
<?php if ($friendsCount) { ?>
<div class="cInvite-Relations">
<?php echo JText::sprintf( (CStringHelper::isPlural($friendsCount)) ? 'COM_COMMUNITY_EVENTS_FRIEND' : 'COM_COMMUNITY_EVENTS_FRIEND_MANY', $friendsCount ); ?>
</div>
<?php } ?>
<div class="cInvite-Actions">
<?php echo JText::_( 'COM_COMMUNITY_EVENTS_RSVP_NOTIFICATION' ) . JText::_('COM_COMMUNITY_OR'); ?>
<a href="javascript:void(0);" onclick="jax.call('community','events,ajaxRejectInvitation','<?php echo $event->id; ?>');">
<?php echo JText::_('COM_COMMUNITY_EVENTS_REJECT'); ?>
</a>
</div>