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

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: JCOMMENTS LATEST by username linked to CB profile
Pages: [1]   Go Down
  Print  
Author Topic: JCOMMENTS LATEST by username linked to CB profile  (Read 7245 times)
0 Members and 2 Guests are viewing this topic.
itgl72
Newbie
*

Karma: 0
Offline Offline

Posts: 20


« on: June 13, 2009, 00:17:57 »

I followed THIS THREAD and got that to work but need a step further of modification with the LATEST module.

I am looking for a way to make the JCOMMENTS LATEST username link to CB. I would like the USERNAME showed after the "BY" to be linked to the CB profile if posssible.


Thanks
Logged
itgl72
Newbie
*

Karma: 0
Offline Offline

Posts: 20


« Reply #1 on: June 18, 2009, 20:27:17 »

Anyone please? I missing the solution to this.
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #2 on: June 18, 2009, 20:53:34 »

By default this option isn't available. But you can add it by simple

1. Download, install and publish JComments Avatar plugin
2. Enable JComments mambots (plugins) in module params
3. Change mod_jcomments by replacing:

Code: (php)
echo '<br />' . ($label4author != '' ?  $label4author . ' ' : '') . $row->name;
with:
Code: (php)
if ($row->profileLink != '') {
echo '<br />' . ($label4author != '' ?  $label4author . ' ' : '') .  '<a href="'.$row->profileLink.'">' . $row->name . '</a>';
} else {
echo '<br />' . ($label4author != '' ?  $label4author . ' ' : '') . $row->name;
}

and

Code: (php)
echo '<br />' . ($label4author != '' ?  $label4author . ' ' : '') . $row->name;
with:
Code: (php)
if ($row->profileLink != '') {
echo '<br />' . ($label4author != '' ?  $label4author . ' ' : '') .  '<a href="'.$row->profileLink.'">' . ($row->username ? $row->username : $row->name) . '</a>';
} else {
echo '<br />' . ($label4author != '' ?  $label4author . ' ' : '') . ($row->username ? $row->username : $row->name);
}

Logged

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

Karma: 0
Offline Offline

Posts: 20


« Reply #3 on: June 18, 2009, 21:35:48 »

Just to be clear, I mean the JCOMMENTS LATEST to have the username linked to the CB profile. I already have the JCOMMENTS module working with username links to CB Profile.

I see JCOMMENTS working fine when I click on an article with comments, and click the username, it takes me to CB profile.

What I need is the JCOMMENTS LATEST which is on my front page, and lists the latest comments to articles to show the BY: USER to link to the CB profile.

I tried what you posted none the less and it did not help or break anything.

Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #4 on: June 19, 2009, 00:54:50 »

Just to be clear, I mean the JCOMMENTS LATEST to have the username linked to the CB profile.
yes and changes I describe solves this problem - the JComments Avatar plugin fills profileLink variable for each comment and changes in module add link around comment's author name...
Logged

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

Karma: 0
Offline Offline

Posts: 20


« Reply #5 on: June 19, 2009, 01:00:12 »

I did this before then, and the username was not linked to the CB profile.


Was this the right file to edit?

\modules\mod_jcomments\mod_jcomments.php


Logged
itgl72
Newbie
*

Karma: 0
Offline Offline

Posts: 20


« Reply #6 on: June 19, 2009, 01:38:17 »

I just tried this again and it did not work.

I might like to request you look at your code and double check that something was not copy and pasted by mistake.

It seems the second set of boxes with code is replacing a section of the first section of code you had me put in.

Logged
itgl72
Newbie
*

Karma: 0
Offline Offline

Posts: 20


« Reply #7 on: June 27, 2009, 00:01:27 »

Any one else?  Cheesy
Logged
itgl72
Newbie
*

Karma: 0
Offline Offline

Posts: 20


« Reply #8 on: July 02, 2009, 18:55:06 »

I'm not having any luck with this. Anyone care to try and give it another shot?  Kiss
Logged
doctor_paul
Newbie
*

Karma: 0
Offline Offline

Posts: 9


« Reply #9 on: July 07, 2009, 21:58:52 »

Hi itlgl72

Sorry you're frustrate with this (or have you sorted it out?)

And I'm sorry -I  don't know how to do what you're trying to do but you HAVE worked out how to do the thing I'm trying to do - which is to have the username link from the actual comments to the user's CB profile.

So if you have a moment can you tell me how you did that please? Smiley

Cheers

Dr Paul

Logged
itgl72
Newbie
*

Karma: 0
Offline Offline

Posts: 20


« Reply #10 on: July 07, 2009, 22:41:09 »

I did not figure this out.

However, there is a post here in the forum with directions on how to link the comments page itself, to have those avatars link to the CB. I only followed those directions to the letter and it worked. I did nothing differently.
Logged
doctor_paul
Newbie
*

Karma: 0
Offline Offline

Posts: 9


« Reply #11 on: July 08, 2009, 00:03:02 »

thanks itgl - i now followed those instructions and it's worked. cheers!

For anyone else, the thread is here: http://www.joomlatune.com/forum/index.php/topic,295.0.html

Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: JCOMMENTS LATEST by username linked to CB profile
 
Jump to: