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: Gravatar for unregistered users and CB avatar for registered users
Pages: [1]   Go Down
  Print  
Author Topic: Gravatar for unregistered users and CB avatar for registered users  (Read 6567 times)
0 Members and 2 Guests are viewing this topic.
frez
Newbie
*

Karma: 0
Offline Offline

Posts: 8


« on: May 23, 2009, 20:10:42 »

Hello,

Is it possible to have Gravatar displayed for unregistered users and CB avatar for registered users?

Thanks,
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: May 24, 2009, 23:56:38 »

You can make small modification in jcomments.avatar.php:

replace:
Code: (php)
        if (isset($avatars[$userid]) && !empty($avatars[$userid]->avatar)) {
$comments[$i]->avatar = '<img src="' . $mainframe->getCfg('live_site') . '/images/comprofiler/'. $avatars[$userid]->avatar .'" alt="" border="0" />';
} else {
$comments[$i]->avatar = $noavatar;
        }
with
Code: (php)
        if (isset($avatars[$userid]) && !empty($avatars[$userid]->avatar)) {
$comments[$i]->avatar = '<img src="' . $mainframe->getCfg('live_site') . '/images/comprofiler/'. $avatars[$userid]->avatar .'" alt="" border="0" />';
        }
Logged

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

Karma: 0
Offline Offline

Posts: 8


« Reply #2 on: May 25, 2009, 00:57:04 »

 Cheesy it works! Thanks a lot!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #3 on: May 25, 2009, 01:00:42 »

Ok, in next versions of plugin I'll add this to params...
Logged

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

Karma: 0
Offline Offline

Posts: 8


« Reply #4 on: May 25, 2009, 01:05:13 »

Yes i think it's a good idea because registered users like to see their avatar and unregisterd users like to put their own avatar from gravatar! Thanks again!
Logged
rinuccio
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« Reply #5 on: May 26, 2009, 01:25:24 »

Actually plugin don't work with CB 1.2.1

Avatar not show, link to profile not work  Angry Angry Angry

Help  Tongue Tongue Tongue
Logged
frez
Newbie
*

Karma: 0
Offline Offline

Posts: 8


« Reply #6 on: May 26, 2009, 01:32:20 »

I just upgrade to cb 1.2.1 and it's still working for me!
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #7 on: May 26, 2009, 01:40:30 »

I just upgrade to cb 1.2.1 and it's still working for me!
yes, I'll check this at now too and all works fine...

rinuccio, please check:

1. JComments Avatar plugin is published and CB is selected as avatar source
2. In JComments settings mambots support is enabled (first tab in settings section)
3. In JComments settings on Rules page you don't forgot set permission to view Gravatar (this is required)
Logged

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

Karma: 0
Offline Offline

Posts: 2


« Reply #8 on: May 26, 2009, 02:00:06 »

Oooooooooooooo yeah very thanks  Grin Grin Grin Cheesy Tongue
Logged
streezer
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« Reply #9 on: February 22, 2010, 20:24:58 »

for me this doesnt work...
i use following versions:
JComments 2.1.0.0  [07/08/2009]
CB 1.2.1

i checked also the points which were mentionted in the upper posts - but that neither helped...

thanks for advices,

regards,
streezer
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #10 on: February 23, 2010, 01:40:50 »

for me this doesnt work...
i use following versions:
JComments 2.1.0.0  [07/08/2009]
CB 1.2.1
do you install JComments Avatar plugin? What version JComments Avatar do you use?
Logged

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

Karma: 0
Offline Offline

Posts: 2


« Reply #11 on: February 25, 2010, 15:20:35 »

i got version 3.1 (07/11/2009)

i just had to change some parameters, which i missed ^^
works great  Grin
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Gravatar for unregistered users and CB avatar for registered users
 
Jump to: