Hi!
1- I wonder how to change an information in the notification mail that jomsocial sends to everyone, when someone in a group creates an event:
The XXXX Group has just created XXXXX Event.
I would like to have the person's name in place of the group's name.
2- I would like to add description of the event within this mail.
3- And maybe the i'm going button if possible
Thank you
Regards
Miran
Hi, Miran.
Thank you for contacting us.
Most of our emails use language constants so all you need will be just to customize such a constant.
To do that you'll need to use Joomla! language override feature:
documentation.jomsocial.com/wiki/Changin...gle_Sentence_or_Word
Just search certain phrase.
I found this line in the en-GB.com_cimmunity.ini language file
COM_COMMUNITY_EMAIL_GROUP_EVENT="Hi {target},\n\n%1$s Group just added a new event.\n\nSubject: %2$s\n\nView the event:\n\n<a href=_QQQ_{url}_QQQ_>{url}</a>\n\nHave a nice day!"
But i wonder how to modify it in order to
1- replace group name by the user name
2- add some more information about the event
Miran
Hi, Miran.
That won't be easy as constant uses placeholders e.g %1$. Placeholders load data specified in variable. Not all data are called there. In this case there is only group name and event name. You can't add or replace placeholders unless they have something to load - there is a variable that placeholder could refer to. Sure there is an option to add more data but this will require to hack core file.
Core hacks are not recommended nor supported as they may not working with future JomSocial releases and/or cause issues that won't be not supported. Users with core files hack often refuse to upgrade their installation to keep those hacks and they are stuck with outdated and unsupported versions. Also, core hack will be overwritten during upgrade.
HI, Miran.
Actually you can do that... but not in an easy way.
This is something we need to think about in future development of JS. ;)
Please, post a feature request here:
www.jomsocial.com/uservoice