Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 11-28-2006, 02:12 AM
RobbieMc Offline
pp veteran
 
Join Date: Feb 2006
Location: Canada
Posts: 78
Addon: Buy from PayPal

I finally uploaded the Buy with PayPal addon that I promised some time ago: http://pixelpost.org/v1/index.php?x=...ds&details=191

You can see a slightly more sophisticated version of it at: http://www.sophiepasquet.com.

If there is interest, I may try to convert the more sophisticated version into an addon.

Rob

Last edited by RobbieMc; 11-29-2006 at 07:04 PM.
Reply With Quote
  #2  
Old 11-28-2006, 05:19 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
As I wrote in other topic - interesting addon
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #3  
Old 11-28-2006, 08:34 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Thanks for releasing this to the public. It's exactly what I've been waiting for.

Care to share the differences between the addon and the one running on your site? For all intents and purposes they appear to be the same.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #4  
Old 11-28-2006, 09:33 PM
RobbieMc Offline
pp veteran
 
Join Date: Feb 2006
Location: Canada
Posts: 78
Quote:
Originally Posted by dakwegmo View Post
Care to share the differences between the addon and the one running on your site? For all intents and purposes they appear to be the same.
The one on the site has two additional features, which require new dbase fields and admin file changes (which I have done through hacks but which may be done through an addon). These are:

1) there are five new fields in the main dbase tables (i.e., card; small; medium; large; exlarge). On the "new image" and "edit image" admin pages, there are check boxes to indicate that an image is available for sale in that size (because some aspect ratios are not available as art cards, and some tight crops cannot be blown up to large and exlarge size). If you look at the buy page for some images, it says "Not available" beside some sizes. That is determined by these additional fields. Here is what the additional section on the image edit page looks like (and there is a similar section on the new image page):



And,

2) in the buy addon running on the site, the aspect ratio of a given image is calculated from the .jpg file and is converted to an integer. Depending on the resulting number, the dimensions of the images available for order are different, as is the price. Click on the purchase button of a "square" image and note the available order sizes and price, then click on the purchase button of another aspect ratio and compare the available sizes and prices. They are customized to the aspect ratio (of which Sophie shoots five)

Rob

Last edited by RobbieMc; 11-29-2006 at 03:56 AM. Reason: Added screen shot
Reply With Quote
  #5  
Old 11-29-2006, 02:03 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
I hadn't noticed that, but it is a pretty cool feature. I hate hacking code, because it makes upgrading so difficult, but I would definitely be interested in seeing that as an addon. Don't go to any extra effort just for me. If nobody else is interested, would you mind just sharing the modifications you've made?
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #6  
Old 11-29-2006, 03:20 PM
RobbieMc Offline
pp veteran
 
Join Date: Feb 2006
Location: Canada
Posts: 78
I am happy to share with anybody who wants it. The challenge is that because I have made so many little tweaks to the admin files to support my other mods (which isn't ideal, I know), it is hard for me to just distribute the files without running the risk that something else will get mucked up for you. With the assistance of the PP developers, I will try to develop this into an addon in the next while -- although I said that about the basic buy script about 6 months ago and look how long it took me

Rob

Last edited by RobbieMc; 12-01-2006 at 08:03 PM.
Reply With Quote
  #7  
Old 11-29-2006, 04:00 PM
jimdugan Offline
forum loafer
 
Join Date: Feb 2005
Location: Maine, USA
Posts: 13
Sorry to be dense but...

I can't figure out what is meant by:

"6) You need to add a few lines to your language file or replace those variables in the addon (They are identified by the $lang_... code)."

in your instructions.

Can you elaborate? What should those lines look like?
Reply With Quote
  #8  
Old 11-29-2006, 05:30 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Pixelpost uses language files for messages.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #9  
Old 11-29-2006, 05:56 PM
jimdugan Offline
forum loafer
 
Join Date: Feb 2005
Location: Maine, USA
Posts: 13
I think I've figured it out:

//PayPal info
$lang_buy_this = "Purchase This Photo";
Reply With Quote
  #10  
Old 11-29-2006, 06:03 PM
RobbieMc Offline
pp veteran
 
Join Date: Feb 2006
Location: Canada
Posts: 78
I agree, jimdugan, that it is not immediately obvious what has to go in the language file. And yes "Purchase this photo" would be one of the right lines. I am not at home so have not looked at the code of the addon, but that might in fact be the only one.

I will update the addon and the instructions this evening to make it more clear what needs to go into the language file. In fact, it need not necessarily go into the language file. You can replace the variable itself in the body of the addon, or you can assign the language variable at the beginning of the addon, or you can put a new line in the language file. Since Sophie's site switches out the language files, I need to put everything the language files. But others may not need to.

Rob
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 07:11 PM.

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