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: [SOLVED]Legend: "This name is already in use. Please login or try another name."
Pages: [1]   Go Down
  Print  
Author Topic: [SOLVED]Legend: "This name is already in use. Please login or try another name."  (Read 4344 times)
0 Members and 2 Guests are viewing this topic.
tntsolid
Newbie
*

Karma: 0
Offline Offline

Posts: 5


« on: May 19, 2010, 03:02:34 »

Hello and thank you for a great component and module,

I am using:

Joomla 1.5.17
Jcomments 2.2.0.0
Imported existing comments from Joomlacomment
Sample URL of the problem: http://timeshareownerscommunity.com/timeshare-info/positive-reviews/167-marriott-grande-ocean-vacation-photos-and-review-.html

I did some search in the forum but couldn't find a related post, when ever a visitor tries to post a comment; they get the legend "This name is already in use. Please login or try another name." no matter what name is used or if the name is changed many times, the legend is the same(permissions for unregistered are set to "Post new comments = checked").  This only happens to visitors, members are able to post without a problem.
In addition to that, I am not receiving automatic notifications (they are set to: Enable notifications - Yes)

Thank you for your time and help.

TOC
« Last Edit: May 19, 2010, 05:48:34 by tntsolid » Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: May 19, 2010, 05:19:35 »

In current release we've one error message for two errors:

1. If guest tries to post comment with name of registered user
2. If guest tries to post comment with email of registered user

In next release this situation will be fixed. Sorry but this isn't so easy to update all supported languages Wink
Logged

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

Karma: 0
Offline Offline

Posts: 5


« Reply #2 on: May 19, 2010, 05:48:09 »

Thank you for the reply,

I guess the problem was; "guest tries to post comment with EMAIL of registered user" That is why the error message didn't make sense.

Again Thank you.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: May 19, 2010, 05:56:58 »

I'm already working on next release (it will contain a number of bugfixes and some new features) and I hope this issue will be resolved in nearest time.

I could suggest you small fix:

Open file /components/com_jcomments/jcomments.ajax.php and replace:

Code: (php)
        // TODO: change this error message with more appropriate
JCommentsAJAX::showErrorMessage(JText::_('ERROR_NAME_EXISTS'), 'email');
with something like:
Code: (php)
JCommentsAJAX::showErrorMessage(JText::_('This email is used by registered user. Please login or use email.'), 'email');

You could set there your own error message. And sorry again for this situation...
Logged

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

Karma: 0
Offline Offline

Posts: 5


« Reply #4 on: May 20, 2010, 01:38:04 »

Thank you Smart,

That worked like a charm.
Logged
karakoram
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« Reply #5 on: August 04, 2010, 04:26:54 »

First of all, thank you, Smart, for this wonderful extension - this is exactly what i have been looking for!  I am going to vote for this on the Joomla! Extensions Directory page.

Also, thanks for providing the solution to this issue. I implemented the solution in a slightly different manner, as follows:

Instead of inserting the text directly into the jcomments.ajax.php file, i created a new text entry in the /language/en-GB/en-GB.com_jcomments.ini file (people should use their own default language file), as follows:

ERROR_EMAIL_EXISTS=This email is used by a registered user. Please login or use email.

And then i change the code in jcomments.ajax.php as follows:

from:
JCommentsAJAX::showErrorMessage(JText::_('ERROR_NAME_EXISTS'), 'email');

to:
JCommentsAJAX::showErrorMessage(JText::_('ERROR_EMAIL_EXISTS'), 'email');

This solution is working as expected, and i think is a slightly more "canonical" approach, which i am sharing here - hopefully people will find it useful, and maybe you will include it in your next release Smiley

Once again, thank you for a wonderful extension!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #6 on: August 04, 2010, 12:37:39 »

@karakoram: thank you for your solution. But note that my solution also allows to translate mesasge to other languages because you always can add in xx-XX.com_jcomments.ini (for English it would be en-GB.com_jcomments.php) constant:

Code:
THIS EMAIL IS USED BY A REGISTERED USER. PLEASE LOGIN OR USE EMAIL.=This email is used by a registered user. Please login or use email.

I'm finishing work on new JComments version what would be compatible with Joomla! 1.6 and I've already fixed the issue described in this topic. Thank you again for sharing your solution!

First of all, thank you, Smart, for this wonderful extension - this is exactly what i have been looking for!  I am going to vote for this on the Joomla! Extensions Directory page.
Thank you!
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: [SOLVED]Legend: "This name is already in use. Please login or try another name."
 
Jump to: