<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Image uploads - different display for first image</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Image-uploads---different-display-for-first-image-79017</link>
        <description></description>
        <pubDate>Mon, 15 Jun 2026 20:07:30 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Image-uploads---different-display-for-first-image-79017" rel="self" type="application/rss+xml" />

                <item>
          <title>Image uploads - different display for first image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231910#post2231910</link>
          <description><![CDATA[<p>Just an update:  using the code from the Code Generator for the detail page fixed the issue:</p>
<p><code> &lt;?php foreach ($showsRecord['images'] as $index =&gt; $image): ?&gt;</code></p>
<p>Any other questions or issues, just let us know.</p>]]></description>
          <pubDate>Tue, 24 Sep 2013 11:17:39 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231910#post2231910</guid>
        </item>
                <item>
          <title>Image uploads - different display for first image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231894#post2231894</link>
          <description><![CDATA[<p>Hi Hannah,</p>
<p>Can you submit a Support Request so we can take a look at the code on that page and get it working for you.</p>
<p>Here is the Support Request link:<br /><a href="https://www.interactivetools.com/support/email_support_form.php?priority=free&amp;message=http://www.interactivetools.com/forum/forum-posts.php?Image-uploads---different-display-for-first-image-79017" rel="nofollow">https://www.interactivetools.com/support/email_support_form.php?priority=free&amp;message=http://www.interactivetools.com/forum/forum-posts.php?Image-uploads---different-display-for-first-image-79017</a></p>
<p>Thanks!</p>]]></description>
          <pubDate>Mon, 23 Sep 2013 12:19:23 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231894#post2231894</guid>
        </item>
                <item>
          <title>Image uploads - different display for first image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231886#post2231886</link>
          <description><![CDATA[<p>Hi Jason,</p>
<p>No the field is called images :(</p>]]></description>
          <pubDate>Mon, 23 Sep 2013 05:49:01 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231886#post2231886</guid>
        </item>
                <item>
          <title>Image uploads - different display for first image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231868#post2231868</link>
          <description><![CDATA[<p>Hi Hannah,</p>
<p>From that error message, it looks like your upload field is not called "images".  Try replacing the images index in your foreach loop with the name of your upload field.  That should take care of the error.</p>

<p>Hope this helps</p>]]></description>
          <pubDate>Fri, 20 Sep 2013 10:58:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231868#post2231868</guid>
        </item>
                <item>
          <title>Image uploads - different display for first image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231866#post2231866</link>
          <description><![CDATA[<p>Hi Jason,</p>
<p>I'm getting an invalid foreach() however I do this - any ideas?<br /><a href="http://www.fromemtc.co.uk/forthcoming-shows-in-frome-spring.php?Sweeney-Todd-4" rel="nofollow">http://www.fromemtc.co.uk/forthcoming-shows-in-frome-spring.php?Sweeney-Todd-4</a></p>
<p>Hannah</p>]]></description>
          <pubDate>Fri, 20 Sep 2013 06:55:30 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231866#post2231866</guid>
        </item>
                <item>
          <title>Image uploads - different display for first image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231852#post2231852</link>
          <description><![CDATA[<p>Hi Hannah,</p>
<p>Yes, you can as many images as you need.  When setting up your upload field, you can set up to 4 thumbnails.  This means that up to 4 different thumbnails will be created for each image uploaded.  You shouldn't run into any issues with larger numbers of images.</p>
<p>Hope this helps</p>]]></description>
          <pubDate>Thu, 19 Sep 2013 11:16:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231852#post2231852</guid>
        </item>
                <item>
          <title>Image uploads - different display for first image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231843#post2231843</link>
          <description><![CDATA[<p>Hi Jason,</p>
<p>Thanks! Will it be possible to have more than 5 images in total though as I know some will have 10-20! Even if the page only displayed the first image, 4 thumbnails and then the rest were available in the lightbox?</p>
<p>Hannah</p>]]></description>
          <pubDate>Thu, 19 Sep 2013 04:10:59 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231843#post2231843</guid>
        </item>
                <item>
          <title>Image uploads - different display for first image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231833#post2231833</link>
          <description><![CDATA[<p>Hi Hannah,</p>
<p>Sure, this can be done fairly simply.  With uploaded images in CMSB, you have your main image, and up to 4 different thumbnails.  So for this example, let's assume that our main image is the large image we want to output, and the first thumbnail is the smaller image we want for the other images.</p>

<p>In this example, I've also assumed that you are outputting your information from a variable called $record, and that your upload field is called images.  You may need to adjust this to work with what you have set up on your page:</p>
<p><code>&lt;?php $imageCount = 0; ?&gt;<br /><br />&lt;?php foreach ($record['images'] as $image): ?&gt;<br />  &lt;?php $imageCount++ ;?&gt;<br />  <br />  &lt;?php if ($imageCount == 1): // first image ?&gt;<br />    &lt;img src = "&lt;?php echo $image['urlPath'];?&gt;" width = "&lt;?php echo $image['width'];?&gt;" height = "&lt;?php echo $image['height'];?&gt;" /&gt;<br />  &lt;?php else: ?&gt;<br />    &lt;img src = "&lt;?php echo $image['thumbUrlPath'];?&gt;" width = "&lt;?php echo $image['thumbWidth'];?&gt;" height = "&lt;?php echo $image['thumbHeight'];?&gt;" /&gt;<br />  &lt;?php endif ?&gt;<br />  <br />  <br />&lt;?php endforeach ?&gt;</code></p>

<p>What this does is increment a counter to keep track of how many images we've output.  In this way it's easy to detect if we are outputting the first image or not.  You can then add in your lightbox code to these image tags as needed.</p>
<p>Hope this helps get you started.</p>]]></description>
          <pubDate>Wed, 18 Sep 2013 11:45:13 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231833#post2231833</guid>
        </item>
                <item>
          <title>Image uploads - different display for first image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2231825#post2231825</link>
          <description><![CDATA[<p>Hi there,</p>
<p>I have an upload field which needs to be one upload field that allows multiple images (as each record will vary). I would then like the first image to be displayed larger with the next images, displaying smaller underneath as thumbnails. See link:<br /><a href="http://www.fromemtc.co.uk/forthcoming-shows-in-frome-spring.php?Spring-Show-1" rel="nofollow">http://www.fromemtc.co.uk/forthcoming-shows-in-frome-spring.php?Spring-Show-1</a></p>
<p><em>Catch - I would then like, if possible, these to all open in a lighbox!</em></p>
<p>Have I gone to far or is that possible? Many thanks as always!<br />Hannah</p>]]></description>
          <pubDate>Wed, 18 Sep 2013 06:03:06 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2231825#post2231825</guid>
        </item>
              </channel>
    </rss>
  