Pages (3): 1 2 3   
Member
Member
benjancewicz   17-04-2008, 13:45
#1

I've seen a lot of posts on Paypal, but has anyone done Google Checkout integration on ZenPhoto yet?

Administrator
Administrator
acrylian   17-04-2008, 13:47
#2

Never heard of that. What is that for?

Member
Member
aitf311   17-04-2008, 16:48
#3

I have not seen Google Checkout integration yet, but I'd imagine one could mod the Paypal plugin to get it to also work with Google Checkout.

Member
Member
sbillard   17-04-2008, 16:52
#4

All that is needed is to have a definition of the form that is used by the Google Checkout. The Paypal plugin is a good start for modifications, but I would suggest cloning into a Google plugin rather than trying to make one version that does both services.

Member
Member
benjancewicz   17-04-2008, 19:55
#5

I found this: http://code.google.com/apis/checkout/
Does that help?

Member
Member
aitf311   17-04-2008, 20:11
#6

Yea, you found exactly what you will need to make the plugin

Member
Member
sbillard   17-04-2008, 20:11
#7

Do you have a Google Merchant ID? It looks pretty simple to make this implementation, but I have no way to test it.

I have placed an experimental Googal Checkout plugin in the nightly build. I have not tested it as I do not have a merchant ID. Please give it a try and provide feedback.

Member
Member
benjancewicz   04-05-2008, 04:52
#8

Okey doke,
I've been trying to get the plugin to work, but the plugins page gives me these errors (and won't let me activate the plugin).

Warning: exif_read_data() [function.exif-read-data]: Unable to open file in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/plugins/exifimagerotate.php on line 2

Warning: imagecreatefromjpeg(SRC_IMAGE) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/plugins/image_mirror.php on line 8

Warning: imagesx(): supplied argument is not a valid Image resource in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/plugins/image_mirror.php on line 9

Warning: imagesy(): supplied argument is not a valid Image resource in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/plugins/image_mirror.php on line 10

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/plugins/image_mirror.php on line 11

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/plugins/image_mirror.php on line 23

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/plugins/image_mirror.php on line 25

Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/plugins/image_mirror.php on line 26

Fatal error: Cannot redeclare imagerotate() in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/plugins/image_rotate.php on line 45

Developer
Developer
trisweb   04-05-2008, 07:08
#9

You need to delete all the files in your /zp-core/plugins directory and re-install the nightly build...

We need to fix this for the next version I think, so it won't be a problem, but for now that should work.

Administrator
Administrator
acrylian   04-05-2008, 10:39
#10

These files actually should not be in the nightly anymore...

Member
Member
benjancewicz   04-05-2008, 15:56
#11

Alright. I replaced the /zp-core/plugins directory with the one from the May 3rd nightly build, and that took away the errors in the plugins admin page.

Now, however, I get two errors when looking at an image:

This one shows up at the top, above the breadcrumb.

Warning: Invalid argument supplied for foreach() in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/template-functions.php on line 177

This one is at the bottom, where the comment field used to be (it disappeared).

Fatal error: Call to undefined function printImageMap() in /home/content/b/j/a/bjancewicz/html/ZenPhoto/themes/default/image.php on line 62

You can see this in action here:
http://zerflin.com/ZenPhoto/index.php?album=artwork/Vector%20People&image=Tamikas%20Mural%20outlines.jpg

Administrator
Administrator
acrylian   04-05-2008, 16:13
#12

The Image map is now part of the google maps plugin instead of being within the template-functions. You need to activate that plugin to use this.

Anyway it's recommended not just to replace one folder but to update the whole installation.

Member
Member
benjancewicz   04-05-2008, 20:27
#13

Sorry, I mis-read trisweb's instructions.
Ok. I've reinstalled everything except the Themes folder, and the errors persist.
Do I need to customize my theme from scratch? Are there new things in the theme that are causing the error?

Administrator
Administrator
acrylian   05-05-2008, 08:47
#14

ImageMap is part of the plugin google maps. You have to activate it on the options plugin tab first to use it. If you don't want to use it delete it from your theme or place if(function_exists("printImageMap") { printImageMap(); around it.

Member
Member
benjancewicz   05-05-2008, 20:31
#15

I do have the Google Maps plugin enabled.

I inserted what you gave me in the image.php file of the theme, so that it looks like this:

Administrator
Administrator
acrylian   06-05-2008, 07:50
#16

I have a typo in my code (I thought you know a few things about php...). Before the "{" there needs to be a ")".

Member
Member
benjancewicz   06-05-2008, 13:45
#17

...I know how to make an include, that's about it!
I can design circles around anyone, but I'm a novice when it comes to code. Trying to figure out ZenPhoto is probably the most indepth "training" I've ever had.

I fixed the code so that it reads: ``

I still get errors, though... this one in Gallery view: Warning: Invalid argument supplied for foreach() in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/template-functions.php on line 177

This one in image view: Parse error: syntax error, unexpected $end in /home/content/b/j/a/bjancewicz/html/ZenPhoto/themes/default/image.php on line 118

Administrator
Administrator
acrylian   06-05-2008, 17:12
#18

The code is still wrong, but my fault again, I forgot another bracket.....:-))
Here finally the right one: ``

Member
Member
benjancewicz   07-05-2008, 15:19
#19

You sure?

I still get these errors:

Parse error: syntax error, unexpected '}' in /home/content/b/j/a/bjancewicz/html/ZenPhoto/themes/default/image.php on line 62

Warning: Invalid argument supplied for foreach() in /home/content/b/j/a/bjancewicz/html/ZenPhoto/zp-core/template-functions.php on line 177

Administrator
Administrator
acrylian   07-05-2008, 15:42
#20

I was just judging from the one line I posted and that itself is (now) correct. I don't know of couse what else code you have in your image.php. Please check if all brackets are closed and if there is not one too much.

Pages (3): 1 2 3   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.