Member
Member
icco   2006-01-17, 03:35
#1

I've always been a big fan of gravatars. I dont know im just a sucker for little images representing people. anyway for those of you who dont know what they are, check out gravatar.com

For those of you who do, and want to have alittle hack to plop them into your comments, here is an easy one line hack to do it.

go to image.php in your theme, and if its the default theme go to around line 49, or just look for , and plop the following line of code right after that (make sure its the first one).
`

`

this will give you an 80x80 image styled with the css class gravatar. Now just style it and you're done

Here is some css you could use in your zen.css
.gravatar {
width: 20px;
border: 1px grey solid;
padding: 1px;
vertical-align: middle;
}

here is an example of what it looks like: http://www.pseudoweb.net/zenphoto/index.php?album=favorites&image=IMG_0385.jpg

p.s. As you can see this is pretty easy to impliment. if we ever do get a plugin setup going, i would love to make a plugin for this.

Member
Member
pronvit   2006-01-17, 12:00
#2

good idea and simple implementation, thank you!

Member
Member
Null   2006-01-17, 15:46
#3

I like it, I would place the gravatar to the right like on most blogs.

Sec nice optional plugin for Zenphoto!

Member
Member
icco   2006-01-18, 03:23
#4

eh i just did a quick implimentation, you could style it however you wanted. Thanks for the comments though.

Member
Member
smoyssidis   2006-01-18, 20:07
#5

Sweet! Thanks and can't wait to try it out.

Member
Member
vt-equine   2006-01-20, 23:46
#6

Alright, installed the latest ZenPhoto build. Then I hit up the images.php file in my default theme folder. I went down to line 50 put in this code. Here's a snippet of a couple lines before and after and the code itself:

code

                 says:`code`

And now I get some weird error:

Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in /opt/lampp/htdocs/photos/themes/default/image.php on line 50

Member
Member
aitf311   2006-01-21, 00:25
#7

I got the same error

Member
Member
icco   2006-01-23, 07:28
#8

That means that some how you are missing something, probbably you cut and pasted something wrong.

http://www.pseudoweb.net/zenphoto/themes/EdtheTheme/image.txt

see if you can just grab it from there, i have the code block marked with comment tags

Member
Member
vt-equine   2006-01-23, 22:33
#9

Alright I just copied your code completely and that worked And now I run into a new error, although I am going to create a new topic as not to clog this one up!

Member
Member
icco   2006-01-25, 05:39
#10

okay dokey

Member
Member
SoFlaChris   2006-01-25, 23:05
#11

Works cool... I just have to get it to fit within the Killer Bee theme. See http://maltese.net/photo/noise-analysis/2.JPG

Thanks,
Chris

Member
Member
icco   2006-01-29, 03:57
#12

cool. glad i could help

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.