Multi-Type Error in Gallery Layout

5 posts by 2 authors in: Forums > CMS Builder
Last Post: April 14, 2009   (RSS)

Re: [misery217] Multi-Type Error in Gallery Layout

By Perchpole - April 12, 2009

Hi Misery -

The error is due to the fact that you have not closed your first "if" argument...


<?php if ($upload['hasThumbnail']): ?>

You need to close this before the <?php endforeach ?> [/#ff0000]statement.

:0)

Perchpole[/#000000]

Re: [misery217] Multi-Type Error in Gallery Layout

By misery217 - April 13, 2009

Didn't this statement close it?

<?php $maxCols=5; if (@++$count % $maxCols == 0): ?></tr><tr><?php endif ?>

Which is right before the

<?php endforeach ?>

Statement?

Re: [misery217] Multi-Type Error in Gallery Layout

By Perchpole - April 13, 2009

Misery -

No, because <?php $maxCols=5; if (@++$count % $maxCols == 0): ?>[/#ff0000] is also an "if" statement.

In other words, you need two closing "endif" statements.

:0)

Perch

Re: [Perchpole] Multi-Type Error in Gallery Layout

By misery217 - April 14, 2009

That was exactly the issue. Thank you ever so much!