Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 09-24-2005, 09:44 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
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
__________________
photoblog | portfolio | addons | Donate

Last edited by GeoS; 09-29-2005 at 11:02 PM. Reason: Next data update
Reply With Quote
  #2  
Old 09-24-2005, 06:17 PM
lokjah Offline
pp veteran
 
Join Date: Jul 2005
Posts: 52
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!
Reply With Quote
  #3  
Old 09-25-2005, 08:57 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
I forgot to write it in addon desc visible in admin section - default address is in addon code.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #4  
Old 09-26-2005, 01:17 AM
skennedy1217's Avatar
skennedy1217 Offline
pp veteran
 
Join Date: May 2005
Location: Chattanooga, TN
Posts: 71
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?
__________________
www.chromaticus.net
Reply With Quote
  #5  
Old 09-26-2005, 09:28 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
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
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #6  
Old 09-27-2005, 04:53 AM
lokjah Offline
pp veteran
 
Join Date: Jul 2005
Posts: 52
$def_default = '';


is that where the default path goes?
Reply With Quote
  #7  
Old 09-27-2005, 05:54 AM
lokjah Offline
pp veteran
 
Join Date: Jul 2005
Posts: 52
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?
Reply With Quote
  #8  
Old 09-27-2005, 06:02 AM
lokjah Offline
pp veteran
 
Join Date: Jul 2005
Posts: 52
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....
Reply With Quote
  #9  
Old 09-28-2005, 07:55 AM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
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??
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #10  
Old 09-29-2005, 05:05 AM
lokjah Offline
pp veteran
 
Join Date: Jul 2005
Posts: 52
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="" />
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 10:43 PM.

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