By Me on Friday, 22 June 2018
Posted in General
Replies 3
Likes 0
Views 440
Votes 0
Hi,

I would like to change the notification that user get by email when they have a new message.


In this notification, there is the name of the person that sent the message and and extract of the message content.


I would like to remove the extract content so they don't know what the message is about before coming to the site.


I would like alos to remove the name of the sender so they discover it also when on the site.


Where can i change these please?


Thank you for your help.

regards
Hi there,

You can edit this files .../components/com_easysocial/themes/wireframe/emails/conversations/alerts.new.php in order for you to edit them. Below i provide segments of codes you need to modify.

[gist type="php"]
<table align="left" style="font-size: 14px;margin: 0 auto 10px 20px; text-align:left;color:#798796" align="">
<tr>
<td style="padding: 5px 0;">
<a href="<?php echo $authorLink;?>" style="color:#00aeef;text-decoration:none;"><strong><?php echo $authorName;?></strong></a> <?php echo JText::_( 'COM_EASYSOCIAL_EMAILS_SAID' );?>:
</td>
</tr>
<tr>
<td style="padding: 5px 0;">
<?php echo $message; ?>
</td>
</tr>
<tr>
<td style="padding: 5px 0;">
<a href="<?php echo $conversationLink;?>" style="color:#00aeef;text-decoration:none;"><?php echo JText::_('COM_EASYSOCIAL_EMAILS_VIEW_CONVERSATION');?> →</a>
</td>
</tr>
</table>
[/gist]

By the way, you can easily update them here http://take.ms/NCRXy and you need to check for alerts.new.php files(conversations). Please give it a try and see how it goes.
·
Friday, 22 June 2018 18:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for the code to change.
I removed the "extract of message content" in the validation mail.
But i realise that now i can't see when spam is sending as i don't know what message is being sent anymore.

So just to know, is there a way to configure the extract that is showing in the notification.
Like to gave it a maximum lenght or characters so i can see what it is about but without leaving all the message in the noticifation email.

As it is called exactract but all the message is in the notification email.

I don't know if it is clear lol

Regards,
Nadine
Me
·
Monday, 25 June 2018 06:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You can edit them here .../components/com_easysocial/themes/wireframe/conversations/popbox/message.php by modifying codes below. Then copy and past it here template/current_template/html/com_easysocial/conversations/popbox/message.php

[gist type="php"]
//change getIntro(60) accordingly
<?php echo ES::string()->parseBBCode($conversation->getLastMessage()->getIntro(60), array('escape' => false, 'emoticons' => true, 'links' => false)); ?>
[/gist]

Please give it a try and see how it goes.
·
Monday, 25 June 2018 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post