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 edit "Kindly reply with your RSVP or Reject"

9 years 9 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:
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

9 years 9 months ago
Licenses:

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 ); ?>
to
<?php echo JText::sprintf( (CStringHelper::isPlural($friendsCount)) ? 'COM_COMMUNITY_EVENTS_FRIEND_MANY' : 'COM_COMMUNITY_EVENTS_FRIEND', $friendsCount ); ?>

to changing that words:
1. goto joomla backend > extensions > language manager > overrides > click New
2. search and edit for each constant at search section :
COM_COMMUNITY_EVENTS_YOUR_INVITED
COM_COMMUNITY_EVENTS_FRIEND
COM_COMMUNITY_EVENTS_FRIEND_MANY
COM_COMMUNITY_EVENTS_RSVP_NOTIFICATION

Regards

9 years 9 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

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

9 years 9 months ago
Licenses:

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>

remove it.

Regards

9 years 9 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

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!

9 years 9 months ago
Licenses:

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>
to
<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>

Regards

9 years 9 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

I don't think this is correct.....

All I want the message to say is

"X invited you to join this event"

Thanks!

9 years 9 months ago
Licenses:

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>

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