Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: Making New Comment Email Notification Be Anonymous
Pages: [1]   Go Down
  Print  
Author Topic: Making New Comment Email Notification Be Anonymous  (Read 608 times)
0 Members and 2 Guests are viewing this topic.
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« on: December 22, 2011, 13:27:06 »

Hello,

My Jcomments are currently anonymous but when a user subscribes to a comment wall, and a new comment comes in, the notification email contains the username of the poster. Can you please tell me how to fix this issue in the coding?

Thanks,

Nikolas
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: December 22, 2011, 15:50:14 »

What are you mean when you say 'anonymous'? Are you allow comments posting for guests without registration?

BTW, you can change notification emails template and remove output user name in template (/components/com_jcomments/tpl/default/tpl_email.php)
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #2 on: December 22, 2011, 15:55:07 »

By anonymous I mean instead of the username showing up in the comments, the word "guest" shows up instead, Intentionally did this awhile back.

How would I make the poster username in the email notifications appear as "guest" as well?
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: December 22, 2011, 16:34:09 »

Open file /components/com_jcomments/tpl/default/tpl_email.php and replace:

Code: (php)
$comment->author
with
Code: (php)
JText::_('Guest');
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
ncblazin247
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #4 on: December 22, 2011, 16:54:53 »

Hmm I am not finding the "$comment->author" text in that file. Would it be called something else?



Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #5 on: December 22, 2011, 20:14:36 »

Oh, sorry! I've looked to my development version. In your version you should replace:

Code: (php)
$comment->name
with
Code: (php)
JText::_('Guest');
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Making New Comment Email Notification Be Anonymous
 
Jump to: