Columns / details displaying after each other not under

17 posts by 4 authors in: Forums > CMS Builder
Last Post: April 28, 2009   (RSS)

By Perchpole - April 6, 2009

Get rid of this line...

$galleryRecord = @$galleryRecords[0]; // get first record


:0)

Perch

Re: [Perchpole] Columns / details displaying after each other not under

By Kittybiccy - April 6, 2009

I'd tried that but get: Warning: Invalid argument supplied for foreach() in /homepages/31/d271660971/htdocs/CMSB/lightbox2/gallery_arc_school2.php on line 95

On line 95 is this: <?php foreach ($galleryRecord['image'] as $upload): ?>

I'm getting very confused!

By Perchpole - April 6, 2009

Sorry -

Missed that. Do this...



<?php foreach ($galleryRecord): ?>[/#ff0000]

<?php foreach ($galleryRecord['image'] as $upload): ?>
<?php if ($upload['hasThumbnail']): ?>
<a href="<?php echo $upload['urlPath'] ?>" rel="lightbox" title="<?php echo $upload['info1'] ?>">
<img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight']?>" border="0" /> </a>

<?php elseif ($upload['isImage']): ?>
<a href="<?php echo $upload['urlPath'] ?>" rel="lightbox" title="<?php echo $upload['info1'] ?>">
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" /> </a>

<?php else: ?>

<?php endif ?>
<?php endforeach ?>
<!-- STEP2a: /Display Uploads -->
<?php endforeach; ?>[/#ff0000]


<?php if (!$galleryRecord): ?>
No record found!
<?php endif ?>

I've been working on this with Jerry and have got all records to finally display! The only problem now is that is has moved my design all about! I have been using nested tables as in the posts above to space out the images, could anyone help me with this a bit more?

There seems to be a huge blank space between the late two records and the one that is on the second line and I think this is what is causing the page to move about? This is the page: http://www.arcschoolsuk.com/CMSB/lightbox2/gallery_arc_school2.php

Attached is the php file, would really appreciate it if someone could have a look and let me know what I need to do.

Thanks!

By ross - April 24, 2009

Hi Hannah

Could you let me know which browsers you are having trouble with? I had a look at your link there and I wasn't seeing a large space anywhere.

I am curious if you had already fixed this perhaps :).

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Columns / details displaying after each other not under

Hi Ross,
I have fixed it yeeey! I went back through and looked at where my endif's were (after a hint from Jerry!) and had a closer look at the nested tables that were already working in another page. Was just a simple adjustment but all working now!
Thanks!