<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title></title>
        <link>https://interactivetools.com/forum/forum-search.php?k=user%3Acjpritchard</link>
        <description></description>
        <pubDate>Thu, 16 Apr 2026 22:30:24 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3Acjpritchard&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Ad module - show random image but never no image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2237197#post2237197</link>
          <description><![CDATA[<p>Hi Ross,</p>
<p>Thanks for your message. That worked!</p>
<p>Cheers!</p>]]></description>
          <pubDate>Thu, 06 Aug 2015 18:31:49 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2237197#post2237197</guid>
        </item>
                <item>
          <title>Ad module - show random image but never no image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2237191#post2237191</link>
          <description><![CDATA[<p>Hello, I'm having trouble with an ad module I've created. I have a table of ads in which I have start and end dates and a checkbox selector for the different ad zones. I've set a limit of one image ad to appear in each of the zones, and that works fine, but sometimes NO image appears, which I don't want; I always need at least one ad to show in the zone. What can I add to my code to always have an image appear?</p>
<p>Thanks!</p>
<p>Here's my ad function:</p>
<p>========== start code ============</p>
<p>function ad_content ($zone) {<br /><br />    list($banner_adsRecords, $banner_adsMetaData) = getRecords(array(<br />        'tableName' =&gt; 'banner_ads',<br />        'limit' =&gt; '1',<br />        'orderBy' =&gt; 'RAND()',<br />         'loadUploads' =&gt; true,<br />        'allowSearch' =&gt; false,<br />    ));</p>
<p>    list($ad_zonesRecords, $ad_zonesMetaData) = getRecords(array(<br />        'tableName' =&gt; 'ad_zones',<br />    ));</p>
<p>    foreach ($ad_zonesRecords as $zoneRecord) {<br />         if($zoneRecord['num']==$zone) {</p>
<p>            foreach ($banner_adsRecords as $record) {<br />                $start_date = strtotime($record['start_date']);<br />                 $end_date = strtotime($record['end_date']);</p>
<p>                if (time() &lt; $end_date &amp;&amp; time() &gt; $start_date) {<br />                     if(in_array($zone, $record['zones:values'])) {<br />                         foreach ($record['banner'] as $index =&gt; $upload) {<br />                             echo "&lt;a href='$record[destination_url]'&gt;&lt;img src='$upload[urlPath]' width='$upload[width]' height='$upload[height]' target='_blank' /&gt;&lt;/a&gt;";<br />                         }<br />                     }<br />                 }<br />             }<br />         }<br />     }<br /> }</p>
<p>========== end code ============</p>]]></description>
          <pubDate>Thu, 06 Aug 2015 06:37:47 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2237191#post2237191</guid>
        </item>
                <item>
          <title>Setting &quot;selected&quot; dropdown list item in Admin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235123#post2235123</link>
          <description><![CDATA[<p>Well, that was easy! Thanks, Damon.</p>
<p>Chris</p>]]></description>
          <pubDate>Wed, 01 Oct 2014 10:15:37 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235123#post2235123</guid>
        </item>
                <item>
          <title>Setting &quot;selected&quot; dropdown list item in Admin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235120#post2235120</link>
          <description><![CDATA[<p>Hello,</p>
<p>I'm trying to set a default or selected option in a pulldown list inside the cmsAdmin. Basically, I have a list of five options and I want the first option in the list to be preselected in the dropdown (NOT the default "&lt;select&gt;"). See the attached image.</p>
<p>Is there a way to do this?</p>
<p>Thanks!<br />Chris</p>]]></description>
          <pubDate>Wed, 01 Oct 2014 09:53:05 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235120#post2235120</guid>
        </item>
                <item>
          <title>Listing event records under a date</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2230073#post2230073</link>
          <description><![CDATA[<p>Hello,</p>
<p>I'm trying to create a simple list of calendar events, but I'm having a couple of issues. Right now I have this foreach statement listing my events:</p>
<p>--------------------------------------------------------</p>
<p>            &lt;?php foreach ($calendar_eventsRecords as $record): ?&gt;<br />                &lt;p&gt;&lt;strong&gt;&lt;?php echo date("l, F j", strtotime($record['date'])) ?&gt;&lt;/strong&gt; &lt;br/&gt;<br />          <br />                &lt;?php echo date("g:i a", strtotime($record['date'])) ?&gt; (&lt;?php echo $record['duration:label'] ?&gt;) - &lt;a href="#" class="tooltip" title="&lt;?php echo $lessonsRecord['content']; ?&gt; &lt;?php echo htmlencode($record['content']) ?&gt;"&gt;&lt;?php echo $record['title:label'] ?&gt;&lt;/a&gt;&lt;/p&gt;<br />        <br />            &lt;?php endforeach ?&gt;</p>
<p>--------------------------------------------------------</p>
<p>This produces the output:</p>
<p><strong>Friday, July 19</strong> <br /> 10:00 am (2 hours) - Event Name</p>
<p><strong>Friday, July 19</strong> <br /> 6:00 pm (2 hours) - Event Name</p>
<p><strong>Saturday, July 27</strong> <br /> 10:00 am (2 hours) - Event Name</p>
<p>etc.</p>
<p>This is the output I need, with events listed under the date without the date repeated.</p>
<p><strong>Friday, July 19</strong> <br /> 10:00 am (2 hours) - Event Name<br />6:00 pm (2 hours) - Event Name</p>
<p><strong>Saturday, July 27</strong> <br /> 10:00 am (2 hours) - Event Name</p>
<p>Can you please tell me how I can create a loop for the events after the date output?</p>
<p>Thanks,Chris</p>]]></description>
          <pubDate>Mon, 01 Apr 2013 15:25:37 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2230073#post2230073</guid>
        </item>
                <item>
          <title>Re: [Jason] Sub-categories Tutorial</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2216204#post2216204</link>
          <description><![CDATA[Thanks Jason,<br /><br />That works great. Appreciate the help.<br /><br />Chris<br />]]></description>
          <pubDate>Wed, 16 May 2012 08:18:38 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2216204#post2216204</guid>
        </item>
                <item>
          <title>Re: [robin] Sub-categories Tutorial</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2216192#post2216192</link>
          <description><![CDATA[Hi Robin,<br /><br />Attached is a screenshot of that part of the editor.<br /><br />Thanks,<br />Chris<br />]]></description>
          <pubDate>Tue, 15 May 2012 15:59:51 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2216192#post2216192</guid>
        </item>
                <item>
          <title>Re: [Jason] Sub-categories Tutorial</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2216173#post2216173</link>
          <description><![CDATA[Hi Jason,<br /><br />This doesn't seem to work. The faq_categories selector inside the FAQ editor is actually a checkbox (ref: attachment faq_editor.jpg above).  Does that make a difference?<br /><br />Thanks,<br />Chris<br />]]></description>
          <pubDate>Tue, 15 May 2012 09:22:01 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2216173#post2216173</guid>
        </item>
                <item>
          <title>Re: [Jason] Sub-categories Tutorial</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2216154#post2216154</link>
          <description><![CDATA[Hi Jason,<br /><br />I've having a bit of trouble displaying a list of FAQs that are organized by category, and wondered if you could bless me with more of your wisdom, please. I posted in this thread back in Nov 2010 with a similar issue, and have used the same format you suggested back then in a number of others sites. Until now it's been working. This is the first site I've built using v2.15. <br /><br />All I'm trying to do is cycle through a list of categories and print off their respective FAQs. <br /> <br />Here's my code:<br /><br />&lt;?php <br /><br />.... <br /><br />/  // load records from 'faq_categories'<br />  list($faq_categoriesRecords, $faq_categoriesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'faq_categories',<br />  ));<br /><br />  // load records from 'faqs'<br />  list($faqsRecords, $faqsMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'faqs',<br />  ));<br /><br />?&gt;<br />   <br />&lt;?php foreach ($faq_categoriesRecords as $categoryRecord): ?&gt; <br /><br />	&lt;h1&gt;&lt;?php echo $categoryRecord['category_name'] ?&gt;&lt;/h1&gt; <br /> <br />	&lt;?php foreach($faqsRecords as $record): ?&gt; <br /><br />		&lt;p&gt;[debug]Category num = &lt;?php echo $categoryRecord['num'] ?&gt;&lt;br /&gt;<br />		[debug]faq category = &lt;?php echo $record['faq_categories'] ?&gt;&lt;/p&gt;<br /><br />		&lt;?php if($categoryRecord['num']==$record['faq_categories']): ?&gt; <br />  <br />    		&lt;h2&gt;&lt;?php echo $record['question'] ?&gt;&lt;/h2&gt;<br />    		&lt;p&gt;&lt;?php echo $record['content'] ?&gt;&lt;/p&gt;<br />     <br /> 		&lt;?php endif ?&gt; <br />	&lt;?php endforeach ?&gt; <br /> <br />&lt;?php endforeach ?&gt; <br /><br />.... And here's my output - http://www.bcmortgagesonline.com/cms/faq_categories-list.php<br />(including a bit of debugging code so I can see what values are being assigned to my category numbers and faq categories, and a few screenshots of the associated editors).<br /><br />Thanks in advance for your help.<br />Chris<br />]]></description>
          <pubDate>Mon, 14 May 2012 11:28:14 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2216154#post2216154</guid>
        </item>
                <item>
          <title>Re: [gkornbluth] Collapsible menu in Section List</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2212074#post2212074</link>
          <description><![CDATA[Thanks for your response, Jerry. I tried this over and over again, in all browsers, and then realized I had &quot;Always show expanded menu ...&quot; selected in General Settings. Alas, when de-selected, menus collapsed as they needed to. D'uh!<br /><br />Thanks again,<br />Chris<br />]]></description>
          <pubDate>Sun, 03 Jul 2011 23:46:52 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2212074#post2212074</guid>
        </item>
                <item>
          <title>Collapsible menu in Section List</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2212062#post2212062</link>
          <description><![CDATA[Hi Guys ... I'm trying to create a collapsible section list in the Admin as you have in the v2.07 online demo on your site. For the life of me, I can not figure out how you've done it, and I don't see any mention of it in the documentation. I'm using your latest version (2.10).<br /><br />Any help would be greatly appreciated. <br /><br />Thanks,<br />Chris<br />]]></description>
          <pubDate>Fri, 01 Jul 2011 16:34:03 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2212062#post2212062</guid>
        </item>
                <item>
          <title>Re: [Jason] Display Sub-categories in a Simple List</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2208353#post2208353</link>
          <description><![CDATA[Perfect, thanks very much.<br /><br />Chris<br />]]></description>
          <pubDate>Tue, 30 Nov 2010 14:26:08 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2208353#post2208353</guid>
        </item>
                <item>
          <title>Re: [Jason] Display Sub-categories in a Simple List</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2208351#post2208351</link>
          <description><![CDATA[Hi again Jason,<br /><br />At the top of this page (http://www.tucg.ca/participants2.html) I have a note <i>&quot;35 PARTICIPANTS AND GROWING!&quot;</i>  How can I make this number 35 dynamic, so it reads the number of name fields from the participants table? <br /><br />Thanks,<br />Chris<br />]]></description>
          <pubDate>Tue, 30 Nov 2010 14:12:43 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2208351#post2208351</guid>
        </item>
                <item>
          <title>Re: [Jason] Display Sub-categories in a Simple List</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2208350#post2208350</link>
          <description><![CDATA[Hi Jason,<br /><br />Thanks very much for your help. Yes, I have a category field in the participants table and it's using the num field from the category section. <br /><br />Here's the page now: http://www.tucg.ca/participants2.html<br /><br />Thanks again,<br />Chris<br />]]></description>
          <pubDate>Tue, 30 Nov 2010 14:02:45 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2208350#post2208350</guid>
        </item>
                <item>
          <title>Display Sub-categories in a Simple List</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2208337#post2208337</link>
          <description><![CDATA[Hello ... I'm trying to output a simple list of categories but am having a bit of trouble. I've followed Chris's sub-category tutorial (http://www.interactivetools.com/forum/gforum.cgi?post=77230) successfully for other outputs, but can't get this to work.  <br /><br />I have a list of businesses and individuals that fall into one of 9 categories. My desired output is as follows:<br /><br />Category 1<br />- business 1<br />- business 2<br />- business 3<br /><br />Category 2<br />- business 4<br />- business 5<br />- business 6<br /><br />Category 3<br />- business 7<br />- business 8<br />- business 9<br />- business 10<br /><br />etc.<br /><br />But when I output my list each member appears in every category, as in: <br /><br />Category 1<br />- business 1<br />- business 2<br />- business 3<br /><br />Category 2<br />- business 1<br />- business 2<br />- business 3<br /><br />etc. <br /><br />I know this is a simple coding issue. Here is what I have in my file:<br /><br />HEAD<br /><br />  // load viewer library<br />  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';<br />  $dirsToCheck = array('/home/tucg/public_html/','','../','../../','../../../');<br />  foreach ($dirsToCheck as $dir) { if (@include_once(&quot;$dir$libraryPath&quot;)) { break; }}<br />  if (!function_exists('getRecords')) { die(&quot;Couldn't load viewer library, check filepath in sourcecode.&quot;); }<br /><br />  list($categoriesRecords, $selectedCategory) = getCategories(array( <br />    'tableName'      =&gt; 'categories', <br />    'categoryFormat' =&gt; 'onelevel', <br />  ));<br /> <br />  list($participantsRecords, $participantsMetaData) = getRecords(array( <br />    'tableName'   =&gt; 'participants', <br />  )); <br /><br /><br />BODY<br /><br />   &lt;?php foreach ($categoriesRecords as $categoryRecord): ?&gt; <br />    &lt;h2&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/h2&gt;<br />    	&lt;ul&gt;<br />        &lt;?php if ($categoryRecord['num']): ?&gt;<br />        <br />        	&lt;?php foreach ($participantsRecords as $record): ?&gt;<br /> 			&lt;li&gt;&lt;?php if ($record['url']): ?&gt;&lt;a href='http://&lt;?php endif ?&gt;<br />			&lt;?php echo $record['url'] ?&gt;&lt;?php if ($record['url']): ?&gt;' target='_blank'&gt;&lt;?php endif ?&gt;&lt;?php echo $record['title'] ?&gt;<br /> 			&lt;?php if ($record['url']): ?&gt;&lt;/a&gt;&lt;?php endif ?&gt;<br />    		&lt;span class=&quot;contact-info&quot;&gt;&lt;?php echo $record['phone_number'] ?&gt;&lt;/li&gt;<br />    		&lt;?php endforeach ?&gt;<br />    <br />        &lt;?php endif ?&gt;<br />        &lt;/ul&gt;<br />        <br />    &lt;?php endforeach ?&gt;<br />    &lt;/ul&gt; <br /><br />Any help would be appreciated. <br />Many thanks,<br /><br />Chris P<br />]]></description>
          <pubDate>Tue, 30 Nov 2010 11:44:16 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2208337#post2208337</guid>
        </item>
              </channel>
    </rss>
  