<?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%3Aatomicrabbit</link>
        <description></description>
        <pubDate>Wed, 13 May 2026 01:12:20 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3Aatomicrabbit&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [chris] css and category menus</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199349#post2199349</link>
          <description><![CDATA[yeah that's what I ended up doing.<br /><br />It all seems to work! Thank you Chris! Your help is much appreciated!<br />]]></description>
          <pubDate>Wed, 16 Sep 2009 08:57:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199349#post2199349</guid>
        </item>
                <item>
          <title>Re: [chris] css and category menus</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199339#post2199339</link>
          <description><![CDATA[hey chris,<br />seems to work ok so far. Is there a way to determine if an item has sub items. I don't want it to print the IE conditional statement if an item does not have children.<br />]]></description>
          <pubDate>Tue, 15 Sep 2009 21:20:27 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199339#post2199339</guid>
        </item>
                <item>
          <title>Re: [chris] css and category menus</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199332#post2199332</link>
          <description><![CDATA[<blockquote>Hmm. Would a simple solution be to add the IE6 LI start code to the &lt;ul&gt; tags around the entire menu?</blockquote><br />I'm not sure I understand what you mean.<br /><br />my point is that I DON'T want the IE6 conditional if statements to be added to the &lt;ul&gt; tags around the entire menu, ONLY around the <b>nested</b> &lt;ul&gt; tags... <br /><br />but it seems like the regexp code you posted will add the IE6 code to ALL &lt;/ul&gt; tags, not just the nested ones<br /><br />atomicrabbit.<br />]]></description>
          <pubDate>Tue, 15 Sep 2009 15:03:56 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199332#post2199332</guid>
        </item>
                <item>
          <title>Re: [chris] css and category menus</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199327#post2199327</link>
          <description><![CDATA[I haven't tested it yet, but what do the pipes <b>|</b> around the &lt;/ul&gt; in  the $match variable do?<br /><br />Also, won't that match ALL &lt;ul&gt; tags, not just nested &lt;ul&gt; tags? ... so won't it also match the surrounding &lt;ul&gt; tags around the entire menu?<br />]]></description>
          <pubDate>Tue, 15 Sep 2009 14:30:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199327#post2199327</guid>
        </item>
                <item>
          <title>css and category menus</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199317#post2199317</link>
          <description><![CDATA[ok I'm trying to use the code from <a target="_blank" href="http://www.cssplay.co.uk/menus/dd_valid.html">http://www.cssplay.co.uk/menus/dd_valid.html</a> for styling my (category) menu... Problem is, to be compatible with IE6, it uses conditional if statements between the &lt;li&gt; and &lt;ul&gt; tags on sub-menus. See sample code below:<br /><br /><code>&lt;div class=&quot;menu&quot;&gt;<br />&lt;ul&gt;<br />  &lt;li&gt;&lt;a href=&quot;/&quot;&gt;HOME&lt;/a&gt;&lt;/li&gt;<br />  &lt;li&gt;&lt;a href=&quot;/about&quot;&gt;ABOUT&lt;/a&gt;&lt;/li&gt;<br /><br />  &lt;li&gt;&lt;a class=&quot;hide&quot; href=&quot;/collection&quot;&gt;PRODUCTS&lt;/a&gt;<br />&lt;!--[if lte IE 6]&gt;<br />&lt;a href=&quot;/products&quot;&gt;PRODUCTS<br />&lt;table&gt;&lt;tr&gt;&lt;td&gt;<br />&lt;![endif]--&gt;<br />    &lt;ul &gt;<br />      &lt;li&gt;&lt;a href=&quot;/products/product-1&quot;&gt;Product 1&lt;/a&gt;&lt;/li&gt;<br />      &lt;li&gt;&lt;a href=&quot;/products/product-2&quot;&gt;Product 1&lt;/a&gt;&lt;/li&gt;<br />    &lt;/ul&gt;<br />&lt;!--[if lte IE 6]&gt;<br />&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;<br />&lt;/a&gt;<br />&lt;![endif]--&gt;<br />  &lt;/li&gt;<br />&lt;/ul&gt;<br />&lt;/div&gt;</code><br /><br />As you can see, the conditional if statements go in between &lt;li&gt; tags if parents of sub menu's. Adding the beginning conditional if won't be a problem as I can just check if it's not the parent menu, then print the conditional code, then just print <b>$categoryRecord['_listItemStart']</b>.<br /><br />But the problem comes when printing the end tag, since <b>$categoryRecord['_listItemEnd']</b> will print the end tag of the last sub-item, the end tag of the sub items list and the end tag of the parent item all at once.<br /><br />Is it possible to insert the condition if statement BEFORE the close &lt;/li&gt; tag of the parent as shown in the code above?<br />]]></description>
          <pubDate>Mon, 14 Sep 2009 23:19:30 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199317#post2199317</guid>
        </item>
                <item>
          <title>Re: [chris] Unknown option &apos;where&apos; specified</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199285#post2199285</link>
          <description><![CDATA[<blockquote>How about setting up two top-level categories in your section: &quot;Top Menu&quot; and &quot;Bottom Menu&quot;, then assigning all your records underneath to either one or the other. You can supply the &quot;rootCategoryNum&quot; option to getCategories, supplying the &quot;num&quot; of either your &quot;Top Menu&quot; or &quot;Bottom Menu&quot; record, which would return all the records underneath.</blockquote><br /><br />Ok I was playing around with this... and I keep getting this error:<br /><blockquote>Unknown option 'rootCategoryNum' specified</blockquote><br /><br />Is 'rootCategoryNum' a new option in the latest version ?<br />]]></description>
          <pubDate>Thu, 10 Sep 2009 13:30:13 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199285#post2199285</guid>
        </item>
                <item>
          <title>Re: [chris] Unknown option &apos;where&apos; specified</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199264#post2199264</link>
          <description><![CDATA[Hey Chris,<br />I'm currently using v1.26, do paid users get free upgrades? and if so, can I upgrade without breaking anything in the process?<br />]]></description>
          <pubDate>Wed, 09 Sep 2009 08:41:48 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199264#post2199264</guid>
        </item>
                <item>
          <title>Re: [chris] Unknown option &apos;where&apos; specified</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199224#post2199224</link>
          <description><![CDATA[<blockquote>Personally, I'd be tempted to keep them as separate sections and use a Menu Group to keep them conceptually together, which might be simpler.</blockquote><br />can you explain this in more detail? Not sure I understand.<br />]]></description>
          <pubDate>Mon, 07 Sep 2009 18:12:33 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199224#post2199224</guid>
        </item>
                <item>
          <title>Unknown option &apos;where&apos; specified</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2199194#post2199194</link>
          <description><![CDATA[Currently I have 2 menus, a top and a bottom, set up as separate Category sections so they can be displayed separately. But to avoid confusion, I want to set up only 1 menu section and have a list field named &quot;Position&quot; and be able to select either Top or Bottom.<br /><br />This is all fine, except the getCategories function doesn't support the 'where' option. I get this error if I use the 'where' option:<br />Unknown option 'where' specified<br /><br />This is my code:<br /><code>	list($categoryRecords, $selectedCategory) = getCategories(array(<br />	'tableName'			=&gt; 'menu',<br />	'categoryFormat'		=&gt; 'showall',<br />	'where'			=&gt; 'position=&quot;top&quot;',<br />	));</code><br /><br />Is this at all possible? My other option would be just to query the entire category section and just do an if statement for the top and bottom menus... for example, for the top menu, I would do something like this.<br /><br /><code>//top menu<br />foreach ($categoryRecords as $categoryRecord):<br />	if ($categoryRecord['position'] == &quot;top&quot;) {<br />		//display item<br />	}<br />endforeach;</code><br /><br />But I'd really prefer a more graceful solution.<br /><br />/atomicrabbit<br />]]></description>
          <pubDate>Sun, 06 Sep 2009 13:54:32 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2199194#post2199194</guid>
        </item>
                <item>
          <title>Re: [ross] populate list field based on another list field&apos;s selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2197483#post2197483</link>
          <description><![CDATA[Thanks ross, worked like a charm...<br /><br />it's weird though -- that's the FIRST thing I tried and for whatever reason, it didn't work the first time. [:/]<br /><br />Anywho, all is well now. Thanks again!<br />]]></description>
          <pubDate>Sun, 24 May 2009 18:38:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2197483#post2197483</guid>
        </item>
                <item>
          <title>Re: [ross] populate list field based on another list field&apos;s selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2197343#post2197343</link>
          <description><![CDATA[Ok let me give you an example. If I use the normal query,<br /><br /><code>list($locRecords, $locMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'locations',<br />    'where'       =&gt; 'country=&quot;whatever&quot;',<br />  ));</code><br /><br />It will return the fields in the locations table based on the where statement and I'll be able to loop through the images field using $locRecords['image']['isImage'], $locRecords['image']['thumbUrl'], etc variables. BUT since I need to use <b>multiple</b> where statements, I cannot use the above code. As far as I know, it doesn't support multiple where statements -- i.e. &quot;where w=x AND y=z&quot;, which is what I need so I'm forced to use a standard MySQL statement to query the database:<br /><br /><code>$locRecords = mysql_query_fetch_all_assoc(&quot;SELECT * FROM cms_locations WHERE country='&quot; . $_REQUEST['c'] <br /> . &quot;' AND province_state='&quot; . $_REQUEST['ps'] . &quot;' AND city='&quot; . $_REQUEST['ci'] . &quot;' ORDER BY country, province_state, city&quot;);</code><br /><br />BUT, using this does not give me the variables such as $locRecords['image']['isImage'] or $locRecords['image']['hasThumbnail'] or $locRecords['image']['thumbUrl'] (as far as I know)... how do I get those variables using a standard MySQL statement as opposed the to first code snippet.<br />]]></description>
          <pubDate>Wed, 13 May 2009 12:44:48 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2197343#post2197343</guid>
        </item>
                <item>
          <title>Re: [Dave] populate list field based on another list field&apos;s selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2197284#post2197284</link>
          <description><![CDATA[Hey Dave, I'm having a bit of trouble. I'm using a normal MySQL state as opposed to the getRecords() function to retrieve the values from the database to display on the page because I needed multiple WHERE statements. This is the line of code:<br /><br /><code>$locRecords = mysql_query_fetch_all_assoc(&quot;SELECT * FROM cms_locations WHERE country='&quot; . $_REQUEST['c']<br /> . &quot;' AND province_state='&quot; . $_REQUEST['ps'] . &quot;' AND city='&quot; . $_REQUEST['ci'] . &quot;' ORDER BY country, province_state, city&quot;);</code><br /><br />The problem is I can't use the same code to loop through an image field because the normal MySQL statement doesn't add all the extra variables like 'thumbUrlPath' or 'isImage' or 'hasThumbnail', etc etc. Is there a way I can get those variables still using a normal MySQL statement, or is there a way to use the getRecords() function and add multiple WHERE statements?<br />]]></description>
          <pubDate>Sun, 10 May 2009 10:49:35 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2197284#post2197284</guid>
        </item>
                <item>
          <title>Re: [Dave] populate list field based on another list field&apos;s selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2197280#post2197280</link>
          <description><![CDATA[Yes, I know MySQL syntax, I just wasn't sure if I could use it with the CMS backend. That's all I needed to know.<br /><br />Thanks Dave.<br />]]></description>
          <pubDate>Sat, 09 May 2009 13:36:38 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2197280#post2197280</guid>
        </item>
                <item>
          <title>Re: [Dave] populate list field based on another list field&apos;s selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2197261#post2197261</link>
          <description><![CDATA[is there an easy way to input the province/state entries into the database without having to do each one manually?<br /><br />Can I just use a MySQL insert statement in a php page??<br />]]></description>
          <pubDate>Fri, 08 May 2009 07:34:48 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2197261#post2197261</guid>
        </item>
                <item>
          <title>Re: [Dave] populate list field based on another list field&apos;s selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2197248#post2197248</link>
          <description><![CDATA[<blockquote>The query may require two values (one for &quot;value&quot; and one for &quot;label&quot; in the pulldown)</blockquote>yeah thats what I was thinking<br /><br /><blockquote>Try this:<br /><br />Query: SELECT state, state FROM cms_states WHERE country = '&lt;?php echo $ESCAPED_FILTER_VALUE ?&gt;'</blockquote><br />that worked like a charm, dave. Thanks!!!! [:)]<br />]]></description>
          <pubDate>Wed, 06 May 2009 18:40:49 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2197248#post2197248</guid>
        </item>
                <item>
          <title>Re: [Dave] populate list field based on another list field&apos;s selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2197226#post2197226</link>
          <description><![CDATA[thanks for the replies Ross and Dave.<br /><br />Dave, I think your idea makes sense, although I don't think I need to create a Country section, I can just create a Country list field in the state section.<br /><br />But regardless, I will try your solution and post the results!<br /><br /><b>Edit:</b> ok it seems to return the proper values from the MySQL select statement, but it gives me the following error when I change the Country list pulldown<br /><code>Error: <br />Notice: Undefined offset:  1 in /home/.sites/4/site38/web/cmsAdmin/lib/database_functions.php on line 507<br />&lt;option value=''&gt;&amp;lt;select&amp;gt;&lt;/option&gt;<br />&lt;option value=&quot;Alberta&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;British Columbia&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;Manitoba&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;New Brunswick&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;Newfoundland and Labrador&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;Nova Scotia&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;Northwest Territories&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;Nunavut&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;Ontario&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;Prince Edward Island&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;Quebec&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;Saskatchewan&quot; &gt;&lt;/option&gt;<br />&lt;option value=&quot;Yukon&quot; &gt;&lt;/option&gt;</code><br /><br />So I'm not sure whats going on here, but right off the bat, it seems like only the values are being populated, not the visible text between the &lt;option&gt;&lt;/option&gt; tags<br /><br />- Adam<br />]]></description>
          <pubDate>Tue, 05 May 2009 21:28:22 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2197226#post2197226</guid>
        </item>
                <item>
          <title>populate list field based on another list field&apos;s selection</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2197215#post2197215</link>
          <description><![CDATA[Ok 'll try to keep this as simple as possible:<br /><br />I created a section called Locations which will hold the company's locations around North America, so I've created a Country list field and a Province/State list field. <br /><br /><b>When inputting data</b>, what I want to do is have the Province/State list field automatically updated with appropriate values when the Country list field is changed.<br /><br />So if I'm adding an entry in the locations section, and I select Canada from the country field, I want the Provinces/States field to automatically be populated with Canada's provinces &amp; territories only. And if I select US, I want it to be automatically populated with USA's states.<br /><br />One way I thought of doing this is by creating a separate section that holds provinces and states and have three main fields:<br /><br />Country, PS_Abbreviation, Province/State<br /><br />So I would add all provinces and states from Canada and the US in the separate section and give each the appropriate country, so for example:<br /><br />Canada, ON, Ontario<br />Canada, BC, British Columbia<br />United States, AL, Alabama<br />United States, AK, Alaska<br />etc etc<br /><br />And MAYBE set the Province/State list field to populate using a MySQL statement using the values from the separate section, but I don't know how I'd reference the Country field that is selected.<br /><br />Note: I want to do this all within the CMS backend, not on a html viewer page I create.<br /><br />I hope this makes sense.<br />]]></description>
          <pubDate>Mon, 04 May 2009 21:23:24 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2197215#post2197215</guid>
        </item>
              </channel>
    </rss>
  