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

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Suggestions, Wishlists & Feature Requests    Topic: Import from yvcomment the username rather than the real name
Pages: [1]   Go Down
  Print  
Author Topic: Import from yvcomment the username rather than the real name  (Read 1790 times)
0 Members and 1 Guest are viewing this topic.
djb
Newbie
*

Karma: 0
Offline Offline

Posts: 2


Email
« on: June 07, 2012, 04:28:51 »

Hi,

Having been a long time user of yvcomment, I have been looking for a commenting component for 2.5.  I have been using JComment 2.3.0 today and am really impressed with it.

The only issue I have is with the import of the comments from yvcomment.  Whereas yvcomment shows the username in posts, when these are imported into JComment, the name displayed is the real name.  Ideally I would want the username to continue to be the display name for the comment.

Can you tell me if this is possible please?

in Jos_Content, my yvcomments have categoryid=99.  The created_by_alias field holds the username of the person who made the comment.  in Jos_JComment, both the Name and UserName fields are set to the value of the value of username from ycvomment.  I imagine a simple script could be written to update the UserName in Jos_JComment with the UserName from Jos_Users?

Many thanks
David
« Last Edit: June 07, 2012, 04:39:40 by djb » Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #1 on: June 07, 2012, 14:37:51 »

You can setup what do you want to show - name or username in JComments settings...
Logged

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

Karma: 0
Offline Offline

Posts: 2


Email
« Reply #2 on: June 08, 2012, 04:35:46 »

Thank you.

Here's the code to add the username from the jos_users to the username field on jos_jcomments in case anyone needs it:

Code: (sql)
update jos_jcomments, jos_users
set jos_jcomments.username = jos_users.username
where jos_jcomments.userid = jos_users.id

Regards
David
« Last Edit: June 08, 2012, 14:30:22 by smart » Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #3 on: June 08, 2012, 14:34:05 »

Thank you David for sharing the solution!
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    Suggestions, Wishlists & Feature Requests    Topic: Import from yvcomment the username rather than the real name
 
Jump to: