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: Question: Guests with "Guests" on nick and Users nick linkables
Pages: [1]   Go Down
  Print  
Author Topic: Question: Guests with "Guests" on nick and Users nick linkables  (Read 1214 times)
0 Members and 2 Guests are viewing this topic.
Pacificador
Newbie
*

Karma: 0
Offline Offline

Posts: 7


« on: June 23, 2010, 16:53:19 »

Hello!!

I´m really interested in this; I want Guest to be shown like "Guest", I mean, they couldn't write their nick or user name if they are guests.
And the another thing is that I would want the nick of registered users to be linkable if it is possible, for examplo to their Kunena profile. This would be another way to know who users are registered or unregistered.

Are they possible modifying some php file or something?

Thank you!!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: June 23, 2010, 17:28:39 »

I´m really interested in this; I want Guest to be shown like "Guest", I mean, they couldn't write their nick or user name if they are guests.
You could edit /components/com_jcomments/tpl/tpl_form.php and replace:
Code: (php)
<input id="comments-form-name" type="text" name="name" value="" maxlength="<?php echo $this->getVar('comment-name-maxlength');?>" size="22" tabindex="1" />
with
Code: (php)
<input id="comments-form-name" type="text" name="name" value="<?php echo JText::_('Guest'); ?>" maxlength="<?php echo $this->getVar('comment-name-maxlength');?>" size="22" tabindex="1" disabled="disabled" />

And the another thing is that I would want the nick of registered users to be linkable if it is possible, for examplo to their Kunena profile.
You could install JComments Avatar plugin and select Kunena as avatars' source and link user's avatars to their Kunena  profiles.
Logged

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

Karma: 0
Offline Offline

Posts: 7


« Reply #2 on: June 23, 2010, 21:56:10 »

Thank you Smart! The avatars are working fine!

But I have modified the code and I have a little problem; the name "Guest" appears when page is loading and when finish, it dissappears, so if you try to post a comment, it says "Please, write your name".

Thanks!  Grin
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: June 24, 2010, 02:25:58 »

1. It sounds like you didn't enable comment's length checking on permissions tab
2. See here: http://www.joomlatune.com/jcomments-avatars.html
Logged

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

Karma: 0
Offline Offline

Posts: 7


« Reply #4 on: June 24, 2010, 05:48:14 »

Hi Smart!

Well, I'm refer to Guest nick display in last post. I think you have replied to my previous post, which I removed after finding the solution, jeje, and maybe you read it trough email submission, sorry.

Thanks!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #5 on: June 25, 2010, 21:25:55 »

Yes, I see. I'm already implemented settings for the 'Name' field (same as for e-mail) in JComments settings. If this field is disabled or unrequired and empty - name will be replaced with Guest. This feature will be available in next JComments version.
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: Question: Guests with "Guests" on nick and Users nick linkables
 
Jump to: