CMSB Ligthbox Integration

6 posts by 3 authors in: Forums > CMS Builder
Last Post: September 26, 2008   (RSS)

Re: [gkornbluth] CMSB Ligthbox Integration

By Melanie - September 25, 2008

Jerry,

It looks like you didn't replace with the calls in your cms. It's looking for arguments that don't exist in your system.

Re: [Melanie] CMSB Ligthbox Integration

By gkornbluth - September 25, 2008

Thanks for responding.

Any specific ideas?

No matter how much I keep learning about this stuff there always seems to be a new "Got Ya" waiting to pounce.
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] CMSB Ligthbox Integration

By Dave - September 25, 2008

Hi gkornbluth,

I can't seem to connect to your server to see your demo pages right now (I'm getting a DNS error). But I can give you some tips while we wait for that to sort itself out:

This is the old type of code from the coder generator:
<?php foreach (getUploads($options['tableName'], 'images', $record['num']) as $upload): ?>

Don't use that, use this instead:
<?php foreach ($js_galleryRecord['images'] as $upload): ?>

That will fix the first error, then we can move onto any further issues.

Also, it might make more sense to have one upload field that allows multiple uploads than multiple fields. I'll have to see the mockup pages you posted.

Can you let me know if the server is working again for you? And if that line above helps? Thanks!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] CMSB Ligthbox Integration

By gkornbluth - September 25, 2008

Hi Dave,

The new line of code is in http://artistsofpalmbeachcounty.org/jsart4.php but itgives the same error as jsart3.php did.

Warning: Invalid argument supplied for foreach() in /hsphere/local/home/apbcweb/artistsofpalmbeachcounty.org/jsart4.php on line 59

I've re-sent you the log in info in a private message.

Thanks for taking a look at this

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] CMSB Ligthbox Integration

By Dave - September 26, 2008

Hi gkornbluth,

I had a look. There was two problems:

The first is that you only have a record in the 'js_gallery' section, but it had a 'removeDate' of Sept 25th, so it was automatically being hidden and it was as if there was no records. I changed it to 2009.

Next, I got a "Undefined index: images ..." error. This is because there's no field called 'images' but many files called image_1, image_2, etc.

I'm not sure if you want to show just one but I swapped images with image_1 and now it's showing the image in that field.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com