Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Addons (http://www.pixelpost.org/forum/forumdisplay.php?f=13)
-   -   Addon: GeoS Gravatar Comments (http://www.pixelpost.org/forum/showthread.php?t=2230)

GeoS 09-24-2005 09:44 AM

Addon: GeoS Gravatar Comments
 
Name:
GeoS Gravatar Comments

Description:
Displays gravatars (http://www.gravatar.com/) in comments.
It works under 1.4.2 (at this version was tested) with need of modificated /index.php and /includes/addons_lib.php upload. Current Pixelpost version (1.5dev) needs only addon file.
It use <GRAVATAR_COMMENTS> tag.

Addon details:
Version: 0.2
Added: 2005-09-24 04:38:05
Updated: 2005-09-29 18:00:00
Category: mod
Requires Pixelpost version -

Addon page:
http://pixelpost.org/v1/index.php?x=...ds&details=111

Download:
http://pixelpost.org/v1/devfiles/?id=111

lokjah 09-24-2005 06:17 PM

sweet! thanks GeoS

the only thing I dont see is where we can code in the path to a default gravatar image for people who dont have a gravatar account...

maybe thats one of the things you are getting to after the weekend...

thanks again!

GeoS 09-25-2005 08:57 PM

I forgot to write it in addon desc visible in admin section - default address is in addon code.

skennedy1217 09-26-2005 01:17 AM

So this means I have to replace the index.php file to run the addon? I've made other mods to that file because of various bugs and don't want to lose them. Can I just cut and paste that section?

GeoS 09-26-2005 09:28 AM

You can cut & paste. Best tool to find this places it some Diff stuff. Download oryginal index.php and compare with this from my mod. I remember 1 change (~ line 440).

PS At moment I added better desc of addon (which is visible in admin section). Now there is info, that addon settings are in the code of it (lines 55-59).

Have fun

lokjah 09-27-2005 04:53 AM

$def_default = '';


is that where the default path goes?

lokjah 09-27-2005 05:54 AM

hmm for some reason when I use <GRAV_IMAGE_COMMENTS>

None of my comments show up...maybe because I'm not using pop up comments?

http://aenonfiredesign.com/pp142/

also what does the first setting represent?

$def_gravatar = ' ';

doesnt the addon grab the email address from the comment form?

lokjah 09-27-2005 06:02 AM

ok I can get the comments to show up if I replace <IMAGE_COMMENTS> on line 436 of your index.php file with <GRAV_IMAGE_COMMENTS>

but I'm not getting gravatars yet...

I also notice that pp is not recognizing the gravatars_comments.php at all, I can delete everything from that file and it doesnt affect the site, Ive added some span and classes to the li's and they dont get fed back to the html.

the last line of the add-on uses <GRAVATAR_COMMENTS> I tried changing that to <GRAV_IMAGE_COMMENTS> but it still didnt do anything....

GeoS 09-28-2005 07:55 AM

1) You shouldnt modify index.php

2) In addon desc I made error. You should use <GRAVATAR_COMMENTS> tag instead of <GRAV_IMAGE_COMMENTS> (I finished adding on PP page this addon 15 minutes before I left home for weekend - rush was a reason of error). Sorry for that.

3) Default gravatar is set to (line 55 of /addons/gravatars_comments.php):
PHP Code:

$def_gravatar 'geos@pixelpost.org'

It is used for posts without gravatars as default. For rest of comments (with emails) it tries to use commenter email.

4) Did you also put content from /includes directory to your's place??

lokjah 09-29-2005 05:05 AM

ah, i see you are using your gravatar account as the default image..

I was just wanting to hard code an image path to one on my site rather than needing to use a gravatar email for it.

Code:

<img src="http://mysite.com/images/defaultgrav.gif" alt="" />


All times are GMT. The time now is 04:56 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.