By debaleena das on Friday, 19 May 2017
Posted in General Issues
Likes 0
Views 443
Votes 0
Hi,
I would like to remove user email ids from the daily/weekly email digests (privacy issues). Right now, the emails have:

By {nickname} {email id}

It seems to be from this line of code in emails/digest/posts.php:
<?php echo JText::_('COM_EASYDISCUSS_DIGEST_BY'); ?> <?php echo ($post->user_id) ? $post->getOwner()->getName() : $post->poster_name; ?> (<?php echo ($post->user_id) ? $post->getOwner()->getEmail() : $post->poster_email; ?>)

What is the best edit to get just the nickname?

Thanks!!
You can use following code to get the user nickname :

$post->getOwner()->getName()

// Replace to
$post->getOwner()->getNickname();
·
Friday, 19 May 2017 09:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Right now it is also printing the email. How do I get rid of that?

What I am seeing in the digest is of the format:
By {name} {email id}


Thanks!
·
Friday, 19 May 2017 10:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Try download my attached file and replace into your current template directory path so your changes will not get override when you update to next release version.

JoomlaFolder/templates/YourCurrentTemplate/html/com_easydiscuss/emails/digest/posts.php
·
Friday, 19 May 2017 11:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Works perfectly. Thanks!!
·
Saturday, 20 May 2017 08:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Saturday, 20 May 2017 10:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post