<?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%3Ajreddigital</link>
        <description></description>
        <pubDate>Tue, 26 May 2026 11:26:13 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3Ajreddigital&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Creating an Automatic News Archive - 2018 Version</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2242013#post2242013</link>
          <description><![CDATA[<p>Hi Leo, Glad to have you on board.</p>
<p>Your code worked, thank you.</p>
<p>For the record, here is what I did for an automatic archive news item page and the detail page - the code  below is for my LIST page.</p>
<p><code>// load records from 'notices_srpc'<br /> list($notices_srpcRecords, $notices_srpcMetaData) = getRecords(array(<br /> 'tableName' =&gt; 'notices_srpc',<br /> 'loadUploads' =&gt; true,<br /> 'allowSearch' =&gt; false,<br /> 'ignoreRemoveDate' =&gt; true,<br /> 'where' =&gt; "`publishDate` &lt; '".date('Y-m-d H:i:s', strtotime('-1 year'))."'"<br /><br /> ));</code></p>
<p>Then, in order to be able to use the same Detail page as my current news listings, I used this code for the detail page. The key was to use the ignoreRemoveDate.  This is the active page  <a href="http://strafford.org/newsarchiveList.php" rel="nofollow">http://strafford.org/newsarchiveList.php</a></p>
<p><code>list($notices_srpcRecords, $notices_srpcMetaData) = getRecords(array(<br /> 'tableName' =&gt; 'notices_srpc',<br /> 'where' =&gt; whereRecordNumberInUrl(1),<br /> 'limit' =&gt; '1',<br /> 'ignoreRemoveDate' =&gt; true,<br /> ));<br /> $notices_srpcRecord = @$notices_srpcRecords[0]; // get first record</code></p>
]]></description>
          <pubDate>Wed, 02 May 2018 11:24:01 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2242013#post2242013</guid>
        </item>
                <item>
          <title>Creating an Automatic News Archive - 2018 Version</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241985#post2241985</link>
          <description><![CDATA[<p>Hi,</p>
<p>I would like to do exactly what mizrahi, requested in this Post 2234008 [<a href="https://www.interactivetools.com/forum/forum-posts.php?postNum=2234008#post2234008" rel="nofollow">https://www.interactivetools.com/forum/forum-posts.php?postNum=2234008#post2234008</a>]</p>
<p>My url for the test News Archive page is :  <a href="http://strafford.org/newsarchiveList.php" rel="nofollow">http://strafford.org/newsarchiveList.php</a></p>
<p>Current news items are shown on the home page of <a href="http://strafford.org" rel="nofollow">http://strafford.org</a> and on this page <a href="http://strafford.org/notices.php" rel="nofollow">http://strafford.org/notices.php</a> </p>
<p>Using the same table "notices_srpc" which holds news items, I would like to have items older than a year appear on another page "newsarchiveList.php" </p>
<p>When I add Greg's suggested code from Post 2234008 for s separate listing of items a year old, as below, the page does not appear at all.</p>
<p><code>// load records from 'notices_srpc'<br /> list($notices_srpcRecords, $notices_srpcMetaData) = getRecords(array(<br /> 'tableName' =&gt; 'notices_srpc',<br /> 'loadUploads' =&gt; true,<br /> 'allowSearch' =&gt; false,<br /> 'where' =&gt; "`createdDate` &lt; '".date('Y-m-d H:i:s', strtotime('-1 year'))."')"<br /> 'ignoreRemoveDate' =&gt; true,<br /> )); </code></p>
<p><br />If the 'ignoreRemoveDate' is removed from the above, I get an error message as follows:<br /><br /><em>MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND `notices_srpc`.hidden = 0 AND `notices_srpc`.publishDate &lt;= NOW() AND (`no' at line 3</em></p>
<p>I noticed a forum post from a user in Post 2235844 <a href="https://www.interactivetools.com/forum/forum-posts.php?postNum=2235844#post2235844" rel="nofollow">https://www.interactivetools.com/forum/forum-posts.php?postNum=2235844#post2235844</a> that they  received this kind of message after a server move.</p>
<p>Indeed after the CMSB was updated by you guys (thanks again) this site was recently moved to a new and better host. I suspect, however, that the where query isn't structured correctly.</p>
<p>I have left the test page (<a href="http://strafford.org/newsarchiveList.php" rel="nofollow">http://strafford.org/newsarchiveList.php</a>) showing the error message. The code on it is:</p>
<p><code>// load viewer library<br /> $libraryPath = 'cmsAdmin/lib/viewer_functions.php';<br /> $dirsToCheck = array('/usr/home/straffordrpc/public_html/','','../','../../','../../../');<br /> foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}<br /> if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }<br /><br /> // load records from 'notices_srpc'<br /> list($notices_srpcRecords, $notices_srpcMetaData) = getRecords(array(<br /> 'tableName' =&gt; 'notices_srpc',<br /> 'loadUploads' =&gt; true,<br /> 'allowSearch' =&gt; false,<br /> 'where' =&gt; "`createdDate` &lt; '".date('Y-m-d H:i:s', strtotime('-1 year'))."')"<br /> ));</code></p>
<p>So in summary, can you help me get a News Archive List page showing items over a) 6 months old and b) over 1 year old? (The client can choose which range they want.)</p>
<p>I am assuming that the same Detail page can be used with both the Current News items and with the Archived News items.</p>
<p>Thanks in advance, J</p>
<p>Note: this site Running CMSB 3.10  and PHP v7.1.15 </p>]]></description>
          <pubDate>Sun, 22 Apr 2018 11:07:45 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241985#post2241985</guid>
        </item>
                <item>
          <title>Drop down menu populated with database entries and multiple viewers on one page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240201#post2240201</link>
          <description><![CDATA[<p>You bet Ross, I'll wrestle with it and if I'm still stuck I hope I can use the consulting services ;-)</p>
<p>Thanks very much, J</p>]]></description>
          <pubDate>Fri, 10 Feb 2017 12:15:41 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240201#post2240201</guid>
        </item>
                <item>
          <title>Drop down menu populated with database entries and multiple viewers on one page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240195#post2240195</link>
          <description><![CDATA[<p>Hi Again,</p>
<p>The client wanted to have the maps page accessible, so I made a new development page here:</p>
<p><a href="http://strafford.org/maps/standmapsListdm.php" rel="nofollow">http://strafford.org/maps/standmapsListdm.php</a></p>
<p>The Aerial maps category has a demo jumpmenu /dropmenu.</p>
<p>But to return to my point above, I would like to avoid js/jquery connections and use a form with a jump menu. I think my client's users will be more comfortable with that as well. Is this possible?</p>
<p>I set one up on the development page as below, but I know there is something missing.</p>
<p><code>&lt;form name="form" id="form"&gt;<br />&lt;select name="jumpMenu" id="jumpMenu" onChange="MM_jumpMenu('parent',this,0)"&gt;<br />&lt;option value="" selected&gt;Select&lt;/option&gt;<br /><br />&lt;?php foreach ($standmaps_2015_aerialRecords as $record): ?&gt;<br />&lt;option value="&lt;?php echo htmlencode($record['townaerial15']) ?&gt;"&gt;&lt;?php echo htmlencode($record['townaerial15']) ?&gt;&lt;/option&gt;<br />&lt;?php endforeach ?&gt;<br />&lt;/select&gt;<br />&lt;input type="submit" name="go_button" id="go_button" value="Go" onclick="MM_jumpMenuGo('jumpMenu','parent',0)" /&gt;<br />&lt;/form&gt;</code></p>
<p>thanks, J</p>]]></description>
          <pubDate>Fri, 10 Feb 2017 08:44:15 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240195#post2240195</guid>
        </item>
                <item>
          <title>Drop down menu populated with database entries and multiple viewers on one page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240193#post2240193</link>
          <description><![CDATA[<p>Thanks Ross.  </p>
<p>Before I get into the weeds of using javascript for this (my scripts are all related to the menu systems I use), why can't I just use the jumpmenu method similar to that discussed in this post: "A drop-down year list to display different categories books."  <a href="http://www.interactivetools.com/forum/forum-posts.php?A-drop-down-year-list-to-display-different-categories-books.-78685" rel="nofollow">http://www.interactivetools.com/forum/forum-posts.php?A-drop-down-year-list-to-display-different-categories-books.-78685</a></p>
<p>Here is that code from that post...</p>
<p><code>&lt;form method="get" action="birds_mag_list.php" &gt;<br />   &lt;?php $options = getListOptions('birds_mag_list', 'list'); ?&gt;<br />     &lt;select name="list"&gt;<br />       &lt;option value=""&gt;&amp;lt;select&amp;gt;&lt;/option&gt;<br />          &lt;option value=""&gt;Any&lt;/option&gt;<br />            &lt;?php foreach($options as $value =&gt; $label): ?&gt;<br />          &lt;option value="&lt;?php echo $value; ?&gt;" &gt;&lt;?php echo $label; ?&gt;&lt;/option&gt;<br />     &lt;?php endforeach; ?&gt;<br />    &lt;/select&gt;<br />   &lt;input type="submit" name="go_button" id="go_button" value="Go" onclick="MM_jumpMenuGo('jumpMenu','parent',0)" /&gt;<br />&lt;/form&gt;</code></p>
<p>best, J</p>]]></description>
          <pubDate>Thu, 09 Feb 2017 12:26:42 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240193#post2240193</guid>
        </item>
                <item>
          <title>Drop down menu populated with database entries and multiple viewers on one page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240183#post2240183</link>
          <description><![CDATA[<p>Hi Ross, thank you very much for your reply.</p>
<p><strong>Success on part one!</strong> I have all the sections reading properly on the Map Index page and all the links connect properly to a Detail page.  I made a simplified version of the page (removing global nav) and it is viewed here </p>
<p><a href="http://strafford.org/maps/standmapsList.php" rel="nofollow">http://strafford.org/maps/standmapsList.php</a></p>
<p><span>and the code is uploaded as an attachment - both as the page above and in a 'simple' version cleaning out scripts, etc.</span></p>
<p><span>I am looking forward to learning how to program the dropdowns and the client is excited - many months of work on their part for this.</span></p>
<p>Best, J</p>
]]></description>
          <pubDate>Tue, 07 Feb 2017 11:43:12 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240183#post2240183</guid>
        </item>
                <item>
          <title>Drop down menu populated with database entries and multiple viewers on one page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2240145#post2240145</link>
          <description><![CDATA[<p>Hi,</p>
<p>I am creating a page for a planning commission's maps. They are offering different map types for download, e.g. aerial, land use, transportation.<br /><br />I need a index showing the many type of maps available and I am creating a List page with multiple viewers.  <br /><br />Each map viewer will have a drop down menu (or jump menu) where a town name can be selected.<br /><br />The site visitor selects a town name and then will go to a Detail page where they can download the map and see more information about the map.<br /><br />An html List page with the layout I want is here:  <a href="http://strafford.org/maps/standmapsList.html" rel="nofollow">http://strafford.org/maps/standmapsList.html</a><br /><br />An html Detail page is here. <a href="http://strafford.org/maps/standmapsDetaillanduse.html" rel="nofollow">http://strafford.org/maps/standmapsDetaillanduse.html</a><br /><br />Even after extensively reviewing forum posts, I am unable to <br /><br />1) load the multiple viewers on the index page.  My attempt is here:  <a href="http://strafford.org/maps/standmapsList.php" rel="nofollow">http://strafford.org/maps/standmapsList.php</a><br /><br />2) I am also unable to get the town names in the database to appear in a dropdown menu or jump menu).<br /><br />My attempt at the List page using three section viewers is not working.  As others have experienced, I only see one viewer and the error "Unknown optionsType" <br /><br />The List viewer page with php is here:  <a href="http://strafford.org/maps/standmapsList.php" rel="nofollow">http://strafford.org/maps/standmapsList.php</a><br /><br />So I need help with the multiple viewers on the Map listing page and I need help forming a jump menu or dropdown menu that is populated from the town field in the database. <br /><br />No doubt I have some important code lines, but at this point I feel  am creating a  three ring circus. The Detail pages are working correctly at least.</p>
<p>Thanks in advance for your help. J<br /><br />Code for List viewer page with php is below:<br /><br />-------------------- header --------------------<br />&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br />   require_once "/home/straffor/public_html/cmsAdmin/lib/viewer_functions.php";<br /><br />// load viewer library<br />  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';<br />  $dirsToCheck = array('/home/straffor/public_html/','','../','../../','../../../');<br />  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}<br />  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }<br />    <br />   // load records from 'standmaps_2015_aerial'<br />  list($standmaps_2015_aerialRecords, $standmaps_2015_aerialMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'standmaps_2015_aerial',<br />    'loadUploads' =&gt; false,<br />    'allowSearch' =&gt; true,<br />  ));<br />  <br />  // load records from 'standmaps_2015land'<br />  list($standmaps_2015landRecords, $standmaps_2015landMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'standmaps_2015land',<br />    'loadUploads' =&gt; false,<br />    'allowSearch' =&gt; false,<br />  ));<br />  <br />// load records from 'standmaps_transport'<br />  list($standmaps_transportRecords, $standmaps_transportMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'standmaps_transport',<br />    'loadUploads' =&gt; false,<br />    'allowSearch' =&gt; false,<br />  ));<br />?&gt;<br /><br />-------------------- end header --------------------------------<br /><br />-------------------- code with dropdown menus --------------------<br /><br /><br />     &lt;h3&gt;2015 Aerial &lt;/h3&gt;<br />   <br />            &lt;form method="get" action="standmaps_2015_aerial.php" &gt;<br /><br />              &lt;?php $options = getListOptions('standmaps_2015_aerial', 'townaerial15'); ?&gt;<br /><br />             &lt;select name="&lt;?php echo htmlencode($standmaps_2015_aerialRecord['townaerial15']) ?&gt;"&gt;<br /><br />               &lt;option value=""&gt;&lt;/option&gt;<br /><br />            &lt;option value=""&gt;Any&lt;/option&gt;<br /><br />            &lt;?php foreach($options as $value =&gt; $label): ?&gt;<br /><br />           &lt;option value="&lt;?php echo $value; ?&gt;" &gt;&lt;?php echo $label; ?&gt;&lt;/option&gt;<br /><br />             &lt;?php endforeach; ?&gt;<br /><br />            &lt;/select&gt;<br /><br />               &lt;input type="submit" name="go_button" id="go_button" value="Go" onclick="MM_jumpMenuGo('jumpMenu','parent',0)" /&gt;<br />            &lt;/form&gt;<br />            <br />-------------------- end code with dropdown menus --------------------       </p>]]></description>
          <pubDate>Mon, 30 Jan 2017 13:04:26 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2240145#post2240145</guid>
        </item>
                <item>
          <title>Limit text of a field when displayed in List View?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238525#post2238525</link>
          <description><![CDATA[<p>Hi,  I there a way to limit the amount of text from a field when using the List View ?</p>
<p>This would cut off the text in a summary-type box at a fixed number of characters when a field is being displayed.</p>
<p>I could create a dedicated summary field and only display that in List View, but I think the client would prefer not to have an extra field to fill out.</p>
<p>I think there is a simple 'limit' command to enter, thanks in advance,</p>
<p>J. </p>]]></description>
          <pubDate>Fri, 18 Mar 2016 12:10:43 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238525#post2238525</guid>
        </item>
                <item>
          <title>Maintaining .html extensions for CMSB .php pages</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235572#post2235572</link>
          <description><![CDATA[<p>Hi,   Can you advise how I can keep my client's .html page extensions after I convert the pages to .php?</p>
<p>Also, is this something the Permalinks plug in can do more easily.</p>
<p>I know there is a simple htaccess step, but I can't find the authoritative way to do it with cmsb. </p>
<p>This client has great seo for their products with the .html and I don't want to interfer with that.</p>
<p>J.</p>]]></description>
          <pubDate>Tue, 23 Dec 2014 10:51:12 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235572#post2235572</guid>
        </item>
              </channel>
    </rss>
  