![]() |
|
Gravatar Hack - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Gravatar Hack (/thread-230.html) |
Gravatar Hack - icco - 2006-01-17 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 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. Gravatar Hack - pronvit - 2006-01-17 good idea and simple implementation, thank you! Gravatar Hack - Null - 2006-01-17 I like it, I would place the gravatar to the right like on most blogs. Sec nice optional plugin for Zenphoto! Gravatar Hack - icco - 2006-01-18 eh i just did a quick implimentation, you could style it however you wanted. Thanks for the comments though. Gravatar Hack - smoyssidis - 2006-01-18 Sweet! Thanks and can't wait to try it out. Gravatar Hack - vt-equine - 2006-01-20 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:
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 Gravatar Hack - aitf311 - 2006-01-21 I got the same error Gravatar Hack - icco - 2006-01-23 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 Gravatar Hack - vt-equine - 2006-01-23 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! Gravatar Hack - icco - 2006-01-25 okay dokey Gravatar Hack - SoFlaChris - 2006-01-25 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, Gravatar Hack - icco - 2006-01-29 cool. glad i could help |