Skip to Content Skip to Menu

Gravatar + Open ID integration

  • creatina
  • creatina
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
16 years 9 months ago #56914 by creatina
Gravatar + Open ID integration was created by creatina
What about a Gravatar and Open ID integration?
It will be wonderful!

Please Log in or Create an account to join the conversation.

  • frankver
  • frankver
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
16 years 5 months ago #64773 by frankver
Replied by frankver on topic Re:Gravatar + Open ID integration
Having gravatar integration would be great!
To bad i'm not a coder :blush:

Please Log in or Create an account to join the conversation.

  • divocak
  • divocak
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
14 years 3 months ago #140503 by divocak
Replied by divocak on topic Re:Gravatar + Open ID integration
Some news about gravatar? It would be great!

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 11 months ago #149091 by slabbi
Replied by slabbi on topic Re:Gravatar + Open ID integration
I am running an older version of CB for which I have following hack:

In cb.core.php (~line 2480) add two lines (see comment):

[code:1]function _avatarLivePath( &$field, &$user, $thumbnail = true, $show_avatar = 2 ) {
[...]
$oValue = null;
if ( ( $avatar != '' ) && ( $avatarapproved > 0 ) ) {
if ( strpos( $avatar, 'gallery/' ) === false ) {
$oValue = 'images/comprofiler/' . $tn . $avatar;
} else {
$oValue = 'images/comprofiler/' . $avatar;
}
if ( ! is_file( $absolute_path . '/' . $oValue ) ) {
$oValue = null;
}
}
if ( ( $oValue === null ) && ( $show_avatar == 2 ) ) {
if ( $avatarapproved == 0 ) {
$icon = 'pending_n.png';
} else {
$icon = 'nophoto_n.png';

// slabbi's gravatar hack
$grav_url = " www.gravatar.com/avatar/".md5 (strtolower(trim($user->email)))."?d=monsterid&s=61";
return $grav_url;
}
return selectTemplate() . 'images/avatar/' . $tn . $icon;
}
}
[/code:1]

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

13 years 10 months ago #150823 by FreeThinker
Replied by FreeThinker on topic Re:Gravatar + Open ID integration
Gravatar despite existing in last uddeim version...seems not to be workin'!?!? :blink:

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 10 months ago #150838 by slabbi
Replied by slabbi on topic Re:Gravatar + Open ID integration
What does not work? The hack above or the implementation in uddeIM?

Is a link to the picture created
www.gravatar.com/avatar/ ?d=monsterid&s=61
or nothing at all?

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum