<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>UL List Issue</title>
        <link>https://interactivetools.com/forum/forum-posts.php?UL-List-Issue-73146</link>
        <description></description>
        <pubDate>Sat, 07 Nov 2026 00:29:48 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;UL-List-Issue-73146" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [Jason] UL List Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214296#post2214296</link>
          <description><![CDATA[Hi Jason<br /><br />perfect thank you very much it looks good now.<br />]]></description>
          <pubDate>Tue, 13 Dec 2011 14:43:58 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214296#post2214296</guid>
        </item>
                <item>
          <title>Re: [kcmedia] UL List Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214279#post2214279</link>
          <description><![CDATA[Hi Craig,<br /><br />Try changing the if statement to this:<br /><br /><code>        &lt;?php if (++$imageCount % $imagesPerSlide == 0):?&gt;   <br />          &lt;/ul&gt;   <br />	  &lt;ul&gt;   <br />	&lt;?php endif ?&gt;</code><br /><br />Since we're now doing the check after the image is outputted and now before, we want to use $imagesPerSlide, not $imagesPerSlide +1 in our check.<br /><br />Hope this helps<br />]]></description>
          <pubDate>Tue, 13 Dec 2011 01:07:10 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214279#post2214279</guid>
        </item>
                <item>
          <title>Re: [Jason] UL List Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214270#post2214270</link>
          <description><![CDATA[Hi Jason<br /><br />still not working right it is showing that one extra image per slide.<br />]]></description>
          <pubDate>Mon, 12 Dec 2011 14:56:42 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214270#post2214270</guid>
        </item>
                <item>
          <title>Re: [kcmedia] UL List Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214260#post2214260</link>
          <description><![CDATA[Hi Craig,<br /><br />Our problem is that we were doing our check BEFORE we ouput and image, where we should have been doing the check AFTER.<br /><br />Try this:<br /><br /><code>&lt;div class=&quot;slide2&quot;&gt;  <br />    &lt;?php  <br />      $imageCount     = 0;  <br />      $imagesPerSlide = 4;  <br />    ?&gt;  <br />       <br />      &lt;ul&gt;  <br />      &lt;?php foreach ($custom_motorbikesRecords as $record): ?&gt; <br />        &lt;?php if (!$record['upload']) { continue; } ?&gt; <br />	 <br />	&lt;?php $upload = $record['upload'][0]; ?&gt; <br />      <br />        &lt;li&gt;&lt;a href=&quot;custom-motorbikes.php&quot;&gt;&lt;img src=&quot;&lt;?php echo $upload['thumbUrlPath'];?&gt;&quot; alt=&quot;&quot; width=&quot;&lt;?php echo $upload['thumbWidth4'];?&gt;&quot; height=&quot;&lt;?php echo $upload['thumbHeight4'];?&gt;&quot;&gt;&lt;/a&gt;&lt;span&gt;&lt;?php echo $record['title'] ?&gt;&lt;/span&gt;&lt;/li&gt;  <br />      <span style="color:blue"><br />        &lt;?php if (++$imageCount % ($imagesPerSlide + 1) == 0):?&gt;  <br />          &lt;/ul&gt;  <br />	  &lt;ul&gt;  <br />	&lt;?php endif ?&gt;<br />      </span><br />      &lt;?php endforeach ?&gt;  <br />      &lt;/ul&gt;  <br /> <br />    &lt;?php if (!$custom_motorbikesRecords): ?&gt; <br />      No records were found!&lt;br/&gt;&lt;br/&gt; <br />    &lt;?php endif ?&gt;  <br />  <br />  &lt;/div&gt;</code><br /><br />This should work better.<br />]]></description>
          <pubDate>Mon, 12 Dec 2011 01:57:02 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214260#post2214260</guid>
        </item>
                <item>
          <title>Re: [Jason] UL List Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214255#post2214255</link>
          <description><![CDATA[Hi Jason<br /><br />that sort of worked if you have a look it is dropping an extra image into some of the scrolls<br />]]></description>
          <pubDate>Mon, 12 Dec 2011 01:21:32 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214255#post2214255</guid>
        </item>
                <item>
          <title>Re: [kcmedia] UL List Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214254#post2214254</link>
          <description><![CDATA[Hi,<br /><br />We can do this by only using a single foreach loop and skipping any record that doesn't have an upload attached to it.<br /><br />Try this:<br /><br /><code>&lt;div class=&quot;slide2&quot;&gt; <br />    &lt;?php <br />      $imageCount     = 0; <br />      $imagesPerSlide = 4; <br />    ?&gt; <br />      <br />      &lt;ul&gt; <br />      &lt;?php foreach ($custom_motorbikesRecords as $record): ?&gt;<br />        &lt;?php if (!$record['upload']) { continue; } ?&gt;<br />	<br />	&lt;?php $upload = $record['upload'][0]; ?&gt;<br />        &lt;?php if (++$imageCount % ($imagesPerSlide + 1) == 0):?&gt; <br />	  &lt;/ul&gt; <br />	  &lt;ul&gt; <br />	&lt;?php endif ?&gt; <br />		     <br />        &lt;li&gt;&lt;a href=&quot;custom-motorbikes.php&quot;&gt;&lt;img src=&quot;&lt;?php echo $upload['thumbUrlPath'];?&gt;&quot; alt=&quot;&quot; width=&quot;&lt;?php echo $upload['thumbWidth4'];?&gt;&quot; height=&quot;&lt;?php echo $upload['thumbHeight4'];?&gt;&quot;&gt;&lt;/a&gt;&lt;span&gt;&lt;?php echo $record['title'] ?&gt;&lt;/span&gt;&lt;/li&gt; <br />                   <br />      &lt;?php endforeach ?&gt; <br />      &lt;/ul&gt; <br /><br />    &lt;?php if (!$custom_motorbikesRecords): ?&gt;<br />      No records were found!&lt;br/&gt;&lt;br/&gt;<br />    &lt;?php endif ?&gt; <br /> <br />  &lt;/div&gt;</code><br /><br />Hope this helps<br />]]></description>
          <pubDate>Mon, 12 Dec 2011 01:16:56 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214254#post2214254</guid>
        </item>
                <item>
          <title>Re: [Jason] UL List Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214234#post2214234</link>
          <description><![CDATA[Hi Jason<br /><br />i sort of got it working but the issue is that it is displaying all the images it should only show the first image of each bike in the list<br /><br />I have attached the code again and also the cmsb code.<br /><br />&lt;?php<br />  <br /><br /><br />  // load records<br />  list($custom_motorbikesRecords, $custom_motorbikesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'custom_motorbikes',<br />  ));<br /><br />?&gt;  &lt;!-- STEP2: Display Records (Paste this where you want your records to be listed) --&gt;<br />    &lt;h1&gt;Custom Motorbikes - List Page Viewer&lt;/h1&gt;<br />    &lt;?php foreach ($custom_motorbikesRecords as $record): ?&gt;<br />      Record Number: &lt;?php echo $record['num'] ?&gt;&lt;br/&gt;<br />      Title: &lt;?php echo $record['title'] ?&gt;&lt;br/&gt;<br />      Features: &lt;?php echo $record['content'] ?&gt;&lt;br/&gt;<br />      Text: &lt;?php echo $record['text'] ?&gt;&lt;br/&gt;<br />      _link : &lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['_link'] ?&gt;&lt;/a&gt;&lt;br/&gt;<br /><br /><br />      &lt;!-- STEP 2a: Display Uploads for field 'logo' (Paste this anywhere inside STEP2 to display uploads) --&gt;<br />        &lt;!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 --&gt;<br />        &lt;?php foreach ($record['logo'] as $upload): ?&gt;<br />          &lt;?php if ($upload['hasThumbnail']): ?&gt;<br />            &lt;img src=&quot;&lt;?php echo $upload['thumbUrlPath'] ?&gt;&quot; width=&quot;&lt;?php echo $upload['thumbWidth'] ?&gt;&quot; height=&quot;&lt;?php echo $upload['thumbHeight'] ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;br/&gt;<br /><br />          &lt;?php elseif ($upload['isImage']): ?&gt;<br />            &lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;&lt;?php echo $upload['width'] ?&gt;&quot; height=&quot;&lt;?php echo $upload['height'] ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;br/&gt;<br /><br />          &lt;?php else: ?&gt;<br />            &lt;a href=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot;&gt;Download &lt;?php echo $upload['filename'] ?&gt;&lt;/a&gt;&lt;br/&gt;<br /><br />          &lt;?php endif ?&gt;<br />        &lt;?php endforeach ?&gt;<br />      &lt;!-- STEP2a: /Display Uploads --&gt;<br /><br /><br /><br />      &lt;!-- STEP 2a: Display Uploads for field 'upload' (Paste this anywhere inside STEP2 to display uploads) --&gt;<br />        &lt;!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 --&gt;<br />        &lt;?php foreach ($record['upload'] as $upload): ?&gt;<br />          &lt;?php if ($upload['hasThumbnail']): ?&gt;<br />            &lt;img src=&quot;&lt;?php echo $upload['thumbUrlPath'] ?&gt;&quot; width=&quot;&lt;?php echo $upload['thumbWidth'] ?&gt;&quot; height=&quot;&lt;?php echo $upload['thumbHeight'] ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;br/&gt;<br /><br />          &lt;?php elseif ($upload['isImage']): ?&gt;<br />            &lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;&lt;?php echo $upload['width'] ?&gt;&quot; height=&quot;&lt;?php echo $upload['height'] ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;br/&gt;<br /><br />          &lt;?php else: ?&gt;<br />            &lt;a href=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot;&gt;Download &lt;?php echo $upload['filename'] ?&gt;&lt;/a&gt;&lt;br/&gt;<br /><br />          &lt;?php endif ?&gt;<br />        &lt;?php endforeach ?&gt;<br />      &lt;!-- STEP2a: /Display Uploads --&gt;<br /><br /><br />      &lt;hr/&gt;<br />    &lt;?php endforeach ?&gt;<br /><br />    &lt;?php if (!$custom_motorbikesRecords): ?&gt;<br />      No records were found!&lt;br/&gt;&lt;br/&gt;<br />    &lt;?php endif ?&gt;<br />  &lt;!-- /STEP2: Display Records --&gt;<br />]]></description>
          <pubDate>Fri, 09 Dec 2011 19:27:14 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214234#post2214234</guid>
        </item>
                <item>
          <title>Re: [Jason] UL List Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214232#post2214232</link>
          <description><![CDATA[Hi Jason<br /><br />i am getting an error about this line<br /><br />      &lt;?php foreach ($record['images'] as $upload): ?&gt; <br /><br />checkout the site.<br /><br /><a target="_blank" href="www.actionmc.com.au/beta/index.php">www.actionmc.com.au/beta/index.php</a><br />]]></description>
          <pubDate>Fri, 09 Dec 2011 17:00:01 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214232#post2214232</guid>
        </item>
                <item>
          <title>Re: [kcmedia] UL List Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214219#post2214219</link>
          <description><![CDATA[Hi Craig,<br /><br />Try this:<br /><br /><code>  &lt;div class=&quot;slide2&quot;&gt;<br />    &lt;?php<br />      $imageCount     = 0;<br />      $imagesPerSlide = 4;<br />    ?&gt;<br />    <br />    &lt;ul&gt;<br />      &lt;?php foreach ($record['images'] as $upload): ?&gt;<br />        &lt;?php if (++$imageCount % ($imagesPerSlide + 1) == 0):?&gt;<br />	  &lt;/ul&gt;<br />	  &lt;ul&gt;<br />	&lt;?php endif ?&gt;<br />		    <br />        &lt;li&gt;&lt;a href=&quot;custom-motorbikes.php&quot;&gt;&lt;img src=&quot;&lt;?php echo $upload['thumbUrlPath'];?&gt;&quot; alt=&quot;&quot; width=&quot;&lt;?php echo $upload['thumbWidth'];?&gt;&quot; height=&quot;&lt;?php echo $upload['thumbHeight'];?&gt;&quot;&gt;&lt;/a&gt;&lt;span&gt;&lt;?php echo $upload['info1'];?&gt;&lt;/span&gt;&lt;/li&gt;<br />                  <br />      &lt;?php endforeach ?&gt;<br />    &lt;/ul&gt;<br /><br /><br />  &lt;/div&gt;</code><br /><br />I wasn't sure where you were storing the text you wanted displayed for the link, so I used the info1 field in this example.<br /><br />Hope this helps you get started.<br />]]></description>
          <pubDate>Fri, 09 Dec 2011 13:46:18 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214219#post2214219</guid>
        </item>
                <item>
          <title>UL List Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214208#post2214208</link>
          <description><![CDATA[Hi All<br /><br />i have this scrolling image list <a target="_blank" href="http://www.actionmc.com.au/beta/index.php">http://www.actionmc.com.au/beta/index.php</a> at the bottom called custom rides that displays 4 images at a time<br /><br />Attached is the code to make that work, but i need to know how to make this work with cmsb as it is broken into 2 or more UL lists to make it work how can i make it so that is displays 4 images then a new UL then 4 images in LI then the next 4 and so on.<br /><br />I have included the cmsb code also.<br /><br />&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br /><br /><br />  // load records<br />  list($custom_ridesRecords, $custom_ridesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'custom_rides',<br />  ));<br /><br />?&gt;  &lt;!-- STEP2: Display Records (Paste this where you want your records to be listed) --&gt;<br />    &lt;h1&gt;Custom Rides - List Page Viewer&lt;/h1&gt;<br />    &lt;?php foreach ($custom_ridesRecords as $record): ?&gt;<br />      Record Number: &lt;?php echo $record['num'] ?&gt;&lt;br/&gt;<br />      Title: &lt;?php echo $record['title'] ?&gt;&lt;br/&gt;<br />      Specification: &lt;?php echo $record['specification'] ?&gt;&lt;br/&gt;<br />      Custom Options: &lt;?php echo $record['custom_options'] ?&gt;&lt;br/&gt;<br />      _link : &lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['_link'] ?&gt;&lt;/a&gt;&lt;br/&gt;<br /><br /><br />      &lt;!-- STEP 2a: Display Uploads for field 'images' (Paste this anywhere inside STEP2 to display uploads) --&gt;<br />        &lt;!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 --&gt;<br />        &lt;?php foreach ($record['images'] as $upload): ?&gt;<br />          &lt;?php if ($upload['hasThumbnail']): ?&gt;<br />            &lt;img src=&quot;&lt;?php echo $upload['thumbUrlPath'] ?&gt;&quot; width=&quot;&lt;?php echo $upload['thumbWidth'] ?&gt;&quot; height=&quot;&lt;?php echo $upload['thumbHeight'] ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;br/&gt;<br /><br />          &lt;?php elseif ($upload['isImage']): ?&gt;<br />            &lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;&lt;?php echo $upload['width'] ?&gt;&quot; height=&quot;&lt;?php echo $upload['height'] ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;br/&gt;<br /><br />          &lt;?php else: ?&gt;<br />            &lt;a href=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot;&gt;Download &lt;?php echo $upload['filename'] ?&gt;&lt;/a&gt;&lt;br/&gt;<br /><br />          &lt;?php endif ?&gt;<br />        &lt;?php endforeach ?&gt;<br />      &lt;!-- STEP2a: /Display Uploads --&gt;<br /><br /><br />      &lt;hr/&gt;<br />    &lt;?php endforeach ?&gt;<br /><br />    &lt;?php if (!$custom_ridesRecords): ?&gt;<br />      No records were found!&lt;br/&gt;&lt;br/&gt;<br />    &lt;?php endif ?&gt;<br />  &lt;!-- /STEP2: Display Records --&gt;<br />]]></description>
          <pubDate>Thu, 08 Dec 2011 18:20:39 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214208#post2214208</guid>
        </item>
              </channel>
    </rss>
  