Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 06-13-2005, 04:12 AM
derevaun Offline
pp regular
 
Join Date: Mar 2005
Location: oly, wa
Posts: 47
gravatars vs favatars

I've been reading about gravatars and favatars:

http://www.noscope.com/journal/2004/12/favatars

Anybody using them? I added some code to functions.php to support them in really, really basic form:

Code:
		if($comment_url != "") {
			$comment_url = "http://$comment_url"; // i'm running for president...
			$comment_url = str_replace("http://http://","http://",$comment_url); // you see?
			$comment_name = "<a href='$comment_url' title='$lang_visit_homepage'>$comment_name</a>";
      $grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($comment_email)."&size=24"; 
      $urlParts = parse_url($comment_url); 
      $fav_url = $urlParts['scheme'].'://'.$urlParts['host'].'/favicon.ico'; 
			}
...and then adding an image to each comment with $grav_url or $fav_url as the src attribute. My method for building the $fav_url string is pretty hacky and probably misses quite a few favicons, but it's a start. Of course, the fact that nobody visits my blog makes it a little difficult to actually get any use out of the code

Just wanted to toss that out there.
__________________
http://asiftosay.com
Reply With Quote
  #2  
Old 06-13-2005, 07:15 AM
blinking8s's Avatar
blinking8s+ Offline
über loafer
 
Join Date: Oct 2004
Location: Bowling Green, Ky
Posts: 3,428
Send a message via ICQ to blinking8s Send a message via AIM to blinking8s Send a message via MSN to blinking8s Send a message via Skype™ to blinking8s
lol...new to me, pretty neat concept, i have no use for it...but thanks for chuckin it up here
__________________
i should say more clever stuff
Reply With Quote
  #3  
Old 06-13-2005, 11:32 AM
Joe[y]'s Avatar
Joe[y]+ Offline
Team Pixelpost
 
Join Date: Mar 2005
Location: UK
Posts: 3,101
Send a message via MSN to Joe[y]
funky. i'm using the favicon option at my blog now!
great idea! cheers
Reply With Quote
  #4  
Old 07-07-2005, 03:46 PM
fauxtog's Avatar
fauxtog Offline
pp veteran
 
Join Date: Mar 2005
Location: So. Cal.
Posts: 70
My Gravatar

I have a gravatar account, but mine doesn't show up on your site derevaun. Oh, it took me a while to find your previous link. You might want to make it a little more prominent.
__________________
Brooks Ayola
http://fauxtoblog.com
http://ayola.com/blog
Reply With Quote
  #5  
Old 07-08-2005, 05:08 AM
derevaun Offline
pp regular
 
Join Date: Mar 2005
Location: oly, wa
Posts: 47
I think I set it to favatars only and stopped before figuring out how to make it do either one or the other. I switched it to gravatars and it works!

I've been puzzling over what to do with the previous link. I wanted to try something other than clicking the image, and ran out of room at the top. A redesign is iin order, but I should probably do something in the meantime. Thanks for bringing it up!
__________________
http://asiftosay.com
Reply With Quote
  #6  
Old 07-08-2005, 05:35 AM
fauxtog's Avatar
fauxtog Offline
pp veteran
 
Join Date: Mar 2005
Location: So. Cal.
Posts: 70
The previous and next links would be fine in the same line where you have "...Today All 91 A month Whichever Bad cameras See also." Maybe in place of some of those. :-)

Could you post the updated code that you used?
__________________
Brooks Ayola
http://fauxtoblog.com
http://ayola.com/blog
Reply With Quote
  #7  
Old 08-20-2005, 05:28 AM
wiphey Offline
forum loafer
 
Join Date: May 2005
Posts: 5
Send a message via AIM to wiphey
I got this to work on my site with the gravatars, but it only works if the author enters his/her url in... I tried commenting out the favatar stuff but it still didn't work. I don't see what could be affecting it
Reply With Quote
  #8  
Old 08-20-2005, 05:32 AM
wiphey Offline
forum loafer
 
Join Date: May 2005
Posts: 5
Send a message via AIM to wiphey
nevermind i figured it out. the code should be like this:
Code:
		if($comment_url != "") {
			$comment_url = "http://$comment_url"; // i'm running for president...
			$comment_url = str_replace("http://http://","http://",$comment_url); // you see?
			$comment_name = "<a href='$comment_url' title='$lang_visit_homepage'>$comment_name</a>";
}
      $grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($comment_email)."&size=24"; 
      $urlParts = parse_url($comment_url); 
      $fav_url = $urlParts['scheme'].'://'.$urlParts['host'].'/favicon.ico';
the bracket was in the wrong place
Reply With Quote
  #9  
Old 08-20-2005, 07:14 PM
Connie
Guest
 
Posts: n/a
Question

what the heck are you talking about?

or am I too old to know about that?
Reply With Quote
  #10  
Old 08-21-2005, 04:56 AM
wiphey Offline
forum loafer
 
Join Date: May 2005
Posts: 5
Send a message via AIM to wiphey
umm... im not sure what you mean. you're asking what gravatars are??

example: http://kristin.pishdadi.com/index.php?showimage=10

www.gravatar.com
global recognized avatars, you sign up and your gravatar is pulled on websites you post comments on by your email address.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 09:32 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs