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: Displaying the commenters website
Pages: [1]   Go Down
  Print  
Author Topic: Displaying the commenters website  (Read 1912 times)
0 Members and 2 Guests are viewing this topic.
AndersD
Newbie
*

Karma: 0
Offline Offline

Posts: 2


Email
« on: January 05, 2010, 14:54:01 »

Hi Guys,

Is it possible to display the website that my commenters fill in when commenting? Now their name just becomes linkable.

So what I would love to see is this:

___________________________
John Palmer - www.example.com

their comment
___________________________

Or something like that.

Hope you can help me!


Anders
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: January 05, 2010, 15:22:57 »

Open /components/com_jcomments/tpl/default/tpl_comment.php and replace:

Code: (php)
<a class="author-homepage" href="<?php echo $comment->homepage?>" rel="nofollow" title="<?php echo $comment->author?>"><?php echo $comment->author?></a>
with:
Code: (php)
<?php echo $comment->author?> &mdash; <a class="author-homepage" href="<?php echo $comment->homepage?>" rel="nofollow" title="<?php echo $comment->homepage?>"><?php echo str_replace('http://'''$comment->homepage); ?></a>
Logged

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

Karma: 0
Offline Offline

Posts: 2


Email
« Reply #2 on: January 06, 2010, 18:29:14 »

Worked like a charm, thank you so much!
Logged
Shooter
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« Reply #3 on: May 19, 2010, 14:09:28 »

Sorry for the bump but this was the closest to my needs, and I'm sure seeing the above will help.

Is it possible to expand on that but instead of displaying the pain url it would display it under their chosen keyword.

e.g "Name from Keyword(s)"

similarly to how the wordpress plugin "keywordLuv" deals with it where it has users enter their name in the form "Name@Keywords(s)" to get the above result.

Also is it possible to have a similar feature to the wordpress plugin "Commentluv" it automatically parses the last blog post made on the commentators url and displays it at the end of their comments.

e.g

[name]

[comment]

(name)'s last blog "Blog post name"

Thanks
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Displaying the commenters website
 
Jump to: