Jump to content


- - - - -

(V88) Gravatar 1.0


  • Please log in to reply
13 replies to this topic

#1 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,973 posts
  • Location:California, USA / Israel
  • Real Name:Vince
  • IPB Version:v3.1.x
Contributor

Posted 18 November 2008 - 09:20 AM

Posted Image

File Name: (V88) Gravatar 1.0
File Submitter: Vadim88
File Submitted: 18 Nov 2008
File Category: IP.Board v2.3.x Mods

Modification Name: (V88) Gravatar 1.0

Modification Description: Allows you to set an avatar using the famous Gravatar service

Modification Author: Vadim Gavrilov

Modification Version: 1.0

Modification IPB Compatible Version: 2.3.x

Modification Requirements: Universall Mod Installer available from InvisionModding.com

Files To Edit

    * sources/action_public/usercp.php
    * sources/lib/func_usercp.php
    * sources/ipsclass.php
    * Template Edits


Click here to download this file
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com

formerly known as vadimg88

#2 Schranzer

Schranzer

    Dr Gonzo

  • Banned
  • PipPipPipPipPip
  • 173 posts
  • Location:Germany
  • Real Name:Jerome McLane
  • IPB Version:v2.3.x
Contributor

Posted 18 November 2008 - 10:16 AM

Hi Vadim!
Can you tell me a little bit more about the Modification?
I dont understand the description ;)
What does that mean "Allows you to set an avatar using the famous Gravatar service" - What is a Gravatar Service?
Can peoples upload more then 1 Avatar and Change them with 1 Click?

Thanks for answearing me

#3 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,973 posts
  • Location:California, USA / Israel
  • Real Name:Vince
  • IPB Version:v3.1.x
Contributor

Posted 18 November 2008 - 10:22 AM

Here is the official site of Gravatar http://en.gravatar.com/
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com

formerly known as vadimg88

#4 Schranzer

Schranzer

    Dr Gonzo

  • Banned
  • PipPipPipPipPip
  • 173 posts
  • Location:Germany
  • Real Name:Jerome McLane
  • IPB Version:v2.3.x
Contributor

Posted 18 November 2008 - 10:30 AM

View PostVadim88, on Nov 18 2008, 06:22 AM, said:

Here is the official site of Gravatar http://en.gravatar.com/

Ahhh  :) Okeyyyy, thanks  ;)

#5 atsaunier

atsaunier

    Advanced Member

  • IM Supporters
  • PipPipPipPip
  • 88 posts
  • IPB Version:v3.0.x
Contributor

Posted 30 November 2008 - 05:40 AM

Im getting the following error

Parse error: syntax error, unexpected T_ELSE in ****/sources/lib/func_usercp.php on line 1451



													   //-----------------------------------------
				// URL field and upload field left blank.
				//-----------------------------------------
				
				$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_avatar_selected' ) );
			# GRAVATAR
		else if($this->ipsclass->input['gravatar'] != ''&& $this->ipsclass->input['gravatar'] != $this->ipsclass->member['gravatar_email'])
		{
			# Use Gravatar
			$gremail = strtolower( trim($this->ipsclass->input['gravatar']) );

			# Check Email
			$gremail = $this->ipsclass->clean_email($gremail);

			if ( ! $gremail OR strlen($gremail) < 6 )
			{
				$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'avatar_invalid_url' ) );
			}
			
			$real_choice = 'gravatar';
			$real_dims   = '100x100';
			$real_type   = 'gravatar';

			# Hash & Update
			$this->ipsclass->DB->do_update( 'member_extra', array( 'gravatar_email' => $gremail,
			'gravatar_email_hash'	 => md5($gremail)
			), 'id='.$this->ipsclass->member['id'] );
		}
			
			}
		}
		else
		{

(LINE 1451)
else if($this->ipsclass->input['gravatar'] != ''&& $this->ipsclass->input['gravatar'] != $this->ipsclass->member['gravatar_email'])

Edited by atsaunier, 30 November 2008 - 05:41 AM.


Sign up HERE Enter Promo
WINXPERTS09 for $50 off on New accounts



Winxperts.net


#6 Lindsey

Lindsey

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 261 posts
  • IPB Version:v2.3.x
Contributor

Posted 30 November 2008 - 05:41 AM

Upload a new sources/lib/func_usercp.php file and redo the file edits ;)

#7 Lindsey

Lindsey

    Programmer

  • IM Supporters
  • PipPipPipPipPipPip
  • 261 posts
  • IPB Version:v2.3.x
Contributor

Posted 30 November 2008 - 05:42 AM

or just change line 1451 to

if($this->ipsclass->input['gravatar'] != ''&& $this->ipsclass->input['gravatar'] != $this->ipsclass->member['gravatar_email'])


*it may work

#8 atsaunier

atsaunier

    Advanced Member

  • IM Supporters
  • PipPipPipPip
  • 88 posts
  • IPB Version:v3.0.x
Contributor

Posted 30 November 2008 - 05:54 AM

that works ;) thankx


Sign up HERE Enter Promo
WINXPERTS09 for $50 off on New accounts



Winxperts.net


#9 Depot

Depot

    Invision Modding.com Helper - Type - Person

  • IM Supporters
  • PipPipPipPipPipPipPipPipPipPip
  • 5,573 posts
  • Location:NE Florida
  • Real Name:Larry C
  • IPB Version:v2.3.x
Contributor

Posted 30 November 2008 - 11:29 AM

View PostVadim88, on Nov 18 2008, 05:22 AM, said:

Here is the official site of Gravatar http://en.gravatar.com/
Thanks for the link... I'd never heard of it.  ;)

I understand Gravatar support will be available in 3.0.

Edited by Depot, 30 November 2008 - 11:36 AM.

- - - - nsMod Community Forums - - - -

Posted Image Services System Modification Installation FAQ Invision Modding Store Posted Image

I DO: IPB UPGRADES, MOD INSTALLS, DATABASE BACKUPS & RESTORATION, CUSTOM SKINS, SITE TRANSFERS

IMPORTANT - READ THIS BEFORE YOU PM ME!!!

Do not ask me for assistance / provide me with your url if you own a nullified board - IM Staff will be notified.


#10 atsaunier

atsaunier

    Advanced Member

  • IM Supporters
  • PipPipPipPip
  • 88 posts
  • IPB Version:v3.0.x
Contributor

Posted 01 December 2008 - 04:05 AM

im having another issue, i got this working it lets me add my e-mail (and i did regester with gravter) but on my forum where my avatar should show up im getting the missing picture image.


Sign up HERE Enter Promo
WINXPERTS09 for $50 off on New accounts



Winxperts.net


#11 China J

China J

    ClubUgly

  • IM Supporters
  • PipPipPipPipPipPipPipPip
  • 1,131 posts
  • Location:Rochester Hills, MI
  • Real Name:Jay
  • IPB Version:v2.3.x
Contributor

Posted 25 January 2009 - 12:29 PM

Question: Does this automatically display your gravatar based on the email you used at signup or do you have to perform extra steps and enter it in the CP first to get it started?

#12 Vince

Vince

    Lead Developer

  • Modders
  • PipPipPipPipPipPipPipPipPipPip
  • 3,973 posts
  • Location:California, USA / Israel
  • Real Name:Vince
  • IPB Version:v3.1.x
Contributor

Posted 27 January 2009 - 06:36 PM

You have to enter the email you used with Gravatar it won't show the Gravatar avatar by default when you register.
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image


Zend Certified Engineer.
Zend Framework Certified Engineer.
-- Email: vadimg88@gmail.com
-- Phone: +972-52-3808258
-- Skype: vadim.gabriel
-- Website: http://www.vadimg.com

formerly known as vadimg88

#13 jordanlachance

jordanlachance

    n00b

  • Banned
  • Pip
  • 1 posts
  • Real Name:Jay Lachance
  • IPB Version:v2.3.x

Posted 07 April 2009 - 10:34 AM

Hey Vince. I installed it and it shows the gravatar on the UCP like your screenshot shows. But it does not show it when I go to view the topic where a user's avatar would be. I view the source in the browser and the image src is
<img src="style_avatars/gravatar" alt="" border="0">

Any suggestions?

Edited by jordanlachance, 07 April 2009 - 10:34 AM.


#14 raechelparker

raechelparker

    n00b

  • Banned
  • Pip
  • 2 posts
  • IPB Version:v1.1.x or older

Posted 23 November 2009 - 11:47 AM

You made some good points there. I did a search on the topic and found most people will agree with your post.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users