- Posts: 3
COMMUNITY FORUM
Registered user could not comment on K2
- Kenny
- Topic Author
- Offline
- New Member
Less
More
11 years 2 months ago #116100
by Kenny
Registered user could not comment on K2 was created by Kenny
Registered user could not comment on K2 version 2.6.7 and it keeps saying "Name & username already been used" even I already set "Enabled for everyone" in K2 parameters.
Would anyone have the same problem? Please help!
Thanks
Have a great day
Would anyone have the same problem? Please help!
Thanks
Have a great day
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 2 months ago #116101
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Registered user could not comment on K2
Hello Kenny,
"Name & username already been used" means he was logged in when he tried to comment using the email and name of a registered user.
"Name & username already been used" means he was logged in when he tried to comment using the email and name of a registered user.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Kenny
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
11 years 2 months ago #116102
by Kenny
Replied by Kenny on topic Re: Registered user could not comment on K2
Actually this registered user was not logged in. He wanted to leave comment on other articles but he could not able to. I also tried to comment and same message "The Name or Email Address you typed is already in use!". So that means registered user can't comment on other articles because their name & email address already registered??
Thanks
Have a good day
Thanks
Have a good day
Please Log in or Create an account to join the conversation.
- Kenny
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
11 years 2 months ago #116103
by Kenny
Replied by Kenny on topic Re: Registered user could not comment on K2
I have been searching through the forum but there's no solution for this problem in couple years since 2010. There is one said last 11 months ago that :
Is this a real fix??
Thanks
You need to modify this file
components/com_k2/models/item.php
Remove the following validation code from around line 629
if ($user->guest){
$db = & JFactory::getDBO();
$query = "SELECT COUNT(*) FROM #__users WHERE name=".$db->Quote($userName)." OR email=".$db->Quote($commentEmail);
$db->setQuery($query);
$result = $db->loadresult();
if ($result>0){
echo JText::_('The name or email address you typed is already in use!');
$mainframe->close();
}
}
Is this a real fix??
Thanks
Please Log in or Create an account to join the conversation.