Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 07-07-2008, 12:19 PM
bitus82 Offline
forum loafer
 
Join Date: Sep 2007
Posts: 11
Paypal Addon

Hi,
does anybody else have problems installing the new paypal addon by ecosee? After I copy the addon in my addons directory, I cannot access the addon page on my admin panel, it simply won't display anything. As soon as I delete the addon, everything is back to normal.
Do you have any suggestions? Is it incompatible with other addons?
Thanks,
Titus

The Obvious - Photography by Titus Bartos
Reply With Quote
  #2  
Old 07-07-2008, 07:36 PM
toner75 Offline
forum loafer
 
Join Date: Jul 2008
Posts: 7
I am having the same problem. Can anyone tell us what's wrong?
Reply With Quote
  #3  
Old 07-07-2008, 07:44 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
try adding &errors to the end of the url, to see the error causing the problem.

So the url should look like this:
/admin/index.php?view=addons &errors
__________________
Jay Williams | A Different View
Reply With Quote
  #4  
Old 07-07-2008, 07:59 PM
Jonkai Offline
pp regular
 
Join Date: Jul 2006
Posts: 22
I've managed to add the addon and select my currency and set the email address, after adding the <BUY_IMAGE_PRINT> command within my image template you can see that a drop down should be there (slightly bigger gap between the text compared to the items above).

I can also add prices, sizes and a description to each image, after pressing Apply that option is set and I can add another etc etc, however; when I click Update everything is lost??

Been trying to figure this out and it's doing my head in

www.net-images.co.uk
Reply With Quote
  #5  
Old 07-07-2008, 08:01 PM
Jonkai Offline
pp regular
 
Join Date: Jul 2006
Posts: 22
Just took Jays advice and the following was displayed

Quote:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/n/e/netimages/public_html/addons/admin_paypal_cart.php on line 276
Which relates to:

Code:
while ($row = mysql_fetch_assoc($sth)) {
from:

Code:
if ($image_name) {
   $query = "SELECT * FROM {$pixelpost_db_prefix}paypalcardprintoptions WHERE id_image = '" . mysql_real_escape_string($image_id) . "' ORDER BY price ASC";
   $sth = mysql_query($query);
   $options = array();
   while ($row = mysql_fetch_assoc($sth)) {
      $options[] = array('id_image' => $row['id_image'],
      'width' => floatval($row['width']),
      'height' => floatval($row['height']),
      'price' => number_format(floatval($row['price']), 2),
      'options' => $row['options']
      );
   }
Pass! lol
Reply With Quote
  #6  
Old 07-07-2008, 11:04 PM
TheMarco Offline
pixelpost guru
 
Join Date: Apr 2008
Posts: 195
Funny. It works fine for me. I tweaked it a bit to look nice with my theme and it's working.

http://www.i-marco.nl/photoblog/index.php?showimage=77
__________________
Check out Dark Matter, the accessible, degradable and sweet looking Pixelpost template.

Dark Matter Pro is now available at darkmatter-template.com!

If you want something from me please DON'T PM me on this forum as the inbox keeps filling up. Send me email instead at marco at i-marco.nl. Thanks!
Reply With Quote
  #7  
Old 07-07-2008, 11:11 PM
TheMarco Offline
pixelpost guru
 
Join Date: Apr 2008
Posts: 195
I just realised that I broke some law by modifying the markup this add-on produces.

It says:

Quote:
You may not reproduce or change the code of this program/file without
the express written consent of the author.
Not sure how useful this add-on is if you're not allowed to make it look nice with whatever template you're using...
__________________
Check out Dark Matter, the accessible, degradable and sweet looking Pixelpost template.

Dark Matter Pro is now available at darkmatter-template.com!

If you want something from me please DON'T PM me on this forum as the inbox keeps filling up. Send me email instead at marco at i-marco.nl. Thanks!
Reply With Quote
  #8  
Old 07-08-2008, 08:45 AM
Jonkai Offline
pp regular
 
Join Date: Jul 2006
Posts: 22
What I like most about this addon is the ability to choose which images to sell as I have some images which I wouldn't want users to have the ability to buy, although I would much prefer a buy_template page with various options for the user to choose.

Everything works apart from it saving the data when updating, must be something to do with the database but I haven't got a clue to be honest
Reply With Quote
  #9  
Old 07-08-2008, 05:23 PM
toner75 Offline
forum loafer
 
Join Date: Jul 2008
Posts: 7
I tried to add the &errors to the end of the url, but the result is the same. The addon page loads, but cannot see any of the addon. The addon page only display the menu of the admin. Once I delete the Paypal addon, I can see all the other addons on the addon page.



Quote:
Originally Posted by jaywilliams View Post
try adding &errors to the end of the url, to see the error causing the problem.

So the url should look like this:
/admin/index.php?view=addons &errors
Reply With Quote
  #10  
Old 07-08-2008, 05:50 PM
toner75 Offline
forum loafer
 
Join Date: Jul 2008
Posts: 7
I turned OFF the Defensio comment filter, and tried adding the Paypal addon. With the Defensio turned off and the Paypal addon in the addon folder, the addon page loaded properly showing the addons, EXCEPT that I cannot see the Paypal addon.

I really want to use this paypal function. Can anyone please help? Am I suppose to see the Paypal addon under the pixelpost admin addon page? And I just need to add the words "<BUY_IMAGE_PRINT>" somewhere in my image_template.html file?

Thanks.

Quote:
Originally Posted by toner75 View Post
I tried to add the &errors to the end of the url, but the result is the same. The addon page loads, but cannot see any of the addon. The addon page only display the menu of the admin. Once I delete the Paypal addon, I can see all the other addons on the addon page.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:34 AM.

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