<?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%3AChris</link>
        <description></description>
        <pubDate>Sat, 27 Jun 2026 03:29:44 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3AChris&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>UPLOAD CHANGES IMAGE ORIENTATION</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238420#post2238420</link>
          <description><![CDATA[<p>Hi Tina,</p>
<p>Thanks for the example images, that made things very easy to test! I did some research and it seems like there aren't many cameras which rely on the EXIF Orientation tag rather than saving the image content with the correct rotation in the first place, which is why we haven't seen this issue come up often. The EXIF Orientation tag seems to be poorly-supported by many software systems, and unfortunately the PHP image processing functions we're relying on don't offer support for it.</p>
<p>I wrote a patch which will rotate affected uploaded images before they go through the complicated "resizeOversizedImages" step, but unfortunately it seems like this approach uses a lot of memory, so we can't enable this solution by default. We're going to try to come up with a better long-term solution that will work for everyone, but in the meantime, the next version of CMS Builder will include the following code in cmsb/lib/upload_functions.php:</p>
<p><code>  // [experimental] rotate uploaded JPEG file if EXIF Orientation flag has been set<br />  // explanation: certain cameras save rotated JPEG content and use a poorly-supported EXIF flag to tell users the image must be rotated (90, -90, or 180)<br />  // our resampling code, which relies on GD, doesn't respect or preserve that flag, which can result in certain uploaded files being saved with incorrect rotation<br />  // in testing, doing rotations like the following before resampling caused out-of-memory errors on reasonably large image files, so this fix has been disabled by default<br />  $fixJpegExifOrientation = <span style="color:#ff0000;"><strong>false</strong></span>; // defaulted to false to avoid potential out-of-memory errors<br />  if ($fixJpegExifOrientation) {<br />    _image_fixJpegExifOrientation($mainUploadWorkingPath);<br />  }</code></p>
<p>Once you've upgraded to the next version of CMSB, (we should be releasing it for beta testing within the next couple days,) you can edit this file and change "false" to "true", which should fix rotation issues for you. Please make sure to test it by uploading a big image to make sure your server has enough memory to be able to rotate the image. If you get an "out of memory" error, let us know and we'll let you know what your options are.</p>
]]></description>
          <pubDate>Tue, 01 Mar 2016 16:44:02 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238420#post2238420</guid>
        </item>
                <item>
          <title>Color Picker add on with CMSB v3+</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238418#post2238418</link>
          <description><![CDATA[<p>Hi garyhoffmann,</p>
<p>I'm assuming you found the 'adminUI_args' plugin filter and were attempting to add html to $adminUI['CONTENT']? I thought your approach should have worked, so I tested it and found a small bug which was preventing plugins from being able to modify 'CONTENT' (and only 'CONTENT'). I've patched this bug and the fix should be in the release of CMS Builder after the next one (we're in the middle of releasing and I don't think I can get my patch in to 3.03.)</p>
<p>There's not really much documentation for the adminUI_args array yet, as it's brand new, however there are some examples of its use above the adminUI() function in admin_functions.php -- and you may find it helpful to search the codebase for calls to adminUI() to see how it's used. I hope this helps!</p>
<p>That said, "admin_header" (or "admin_footer") is probably a much better (simpler) hook to use in this case, as you're now doing.</p>
<p>Glad to hear you were able to get it working!</p>]]></description>
          <pubDate>Tue, 01 Mar 2016 14:27:03 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238418#post2238418</guid>
        </item>
                <item>
          <title>CMSB v3 font bug (safari?)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238404#post2238404</link>
          <description><![CDATA[<p>Hi zaba,</p>
<p>Thanks for the details! I've fixed this issue for the next release of CMS Builder, although we're still using Railway and Open Sans.</p>
<p>If you wish to customize future versions of CMS Builder, please note that the font is now being included by lib/menus/header_css.php, instead of with an @import rule:</p>
<p><code>&lt;link href='<a href="https://fonts.googleapis.com/css?family=Open+Sans:400" rel="nofollow">https://fonts.googleapis.com/css?family=Open+Sans:400</a>,700,300|Raleway:400,700,500' rel='stylesheet' type='text/css'&gt;</code></p>
]]></description>
          <pubDate>Mon, 29 Feb 2016 16:18:20 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238404#post2238404</guid>
        </item>
                <item>
          <title>Membership plugin: Changing username field to only accept letters and numbers</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238401#post2238401</link>
          <description><![CDATA[<p>Hi superhappybunnycat,</p>
<p>You can enforce this within CMS Builder by turning on system field editing (Admin &gt; Section Editors &gt; User Accounts, Advanced Commands... (near the bottom of the page)), then setting up the Allowed Content input validation settings for the username field. Let me know if the attached screenshot doesn't make it clear how to set it up and how it works.</p>
<p>If you have a front-end form which allows people to sign up and/or change their usernames, you'll need to add custom logic into it. If that's the case, please post the source code of your form and we can see if we can help from there.</p>
<p>Hope this helps!</p>]]></description>
          <pubDate>Mon, 29 Feb 2016 12:23:07 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238401#post2238401</guid>
        </item>
                <item>
          <title>Importing data from one table to another</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238400#post2238400</link>
          <description><![CDATA[<p>Hi Terry,</p>
<p>That's great! I'm glad you got it working.</p>
<p>mysql_get() is just a shorter way to write your getRecords() call, but it doesn't have all the features that getRecords() has, so it's probably better that you're using getRecords().</p>]]></description>
          <pubDate>Mon, 29 Feb 2016 12:10:16 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238400#post2238400</guid>
        </item>
                <item>
          <title>Importing data from one table to another</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238394#post2238394</link>
          <description><![CDATA[<p>Hi Terry,</p>
<p>I recommend replacing your three list fields with one list field. Call it "hotel", and in the Field Options in the Field Editor, select "num" for the List Value field and "name" (or whatever you like) for the List Label field.</p>
<p>Basically, if your Hotels table has three records (e.g. #1 Astoria, #2 Biltmore, #3 Caberet), the pulldown will show you the names (e.g. Astoria, Biltmore, Caberet), but you'll be storing just the record number (e.g. 3) in the Show records. Then in the front end, you use the number to look up the entire Hotel record. An easy way to do this is with mysql_get().</p>
<p>Here's an example:</p>
<p><code>&lt;?php<br /><br /> list($showsRecords, $showsMetaData) = getRecords(array(<br />  'tableName' =&gt; 'shows',<br />  'where'     =&gt; whereRecordNumberInUrl(1),<br />  'limit'     =&gt; '1',<br /> ));<br /> $showsRecord = @$showsRecords[0]; // get first record<br /> ?&gt;<br /><br /><br /> &lt;?php if ($showsRecord['hotel']): ?&gt;<br /><br />  <span style="color:#ff0000;"><strong>&lt;?php $hotelRecord = mysql_get('hotel', $showsRecord['hotel']); ?&gt;</strong></span><br /><br />  &lt;?php if ($hotelRecord): ?&gt;<br /><br />    &lt;b&gt;Hotel accommodation available at&lt;/b&gt;: <br />    &lt;a href="&lt;?php echo $hotelRecord['website'] ?&gt;" title="&lt;?php echo $hotelRecord['name'] ?&gt;" target="_blank"&gt;&lt;?php echo $hotelRecord['name'] ?&gt;&lt;/a&gt;<br />    &lt;?php if ($hotelRecord['rooms_cost']): ?&gt; @ &lt;?php echo $hotelRecord['rooms_cost'] ?&gt;&lt;?php endif ?&gt;. <br />    Telephone &lt;?php echo $hotelRecord['phone'] ?&gt;.&lt;br/&gt;&lt;br/&gt;<br /><br />  &lt;?php endif ?&gt;<br /> &lt;?php endif ?&gt;</code></p>
<p>In my example, I'm guessing that your Hotel section name is 'hotel', but if it's 'hotels' or something else, you'll need to change the mysql_get line:</p>
<p>mysql_get('<span style="color:#ff0000;"><strong>hotels</strong></span>', $showsRecord['hotel']);</p>
<p>The first "hotels" is the section name to load your hotel record from. The second "hotel" is the name of the (one) List Field in your shows section.</p>
<p>I'm also guessing at the field names in your hotel section, which you may need to change in my example code:</p>
<ul><li>$hotelRecord['name']</li>
<li>$hotelRecord['website']</li>
<li>$hotelRecord['rooms_cost']</li>
<li>$hotelRecord['phone']</li>
</ul><p>The extra "if" block in there is just for safety: in case you delete a Hotel but there are still Shows which had it selected, it protects you from showing an error. After trying to load hotel number 4, it'll make sure that we actually loaded a record before showing any Hotel fields.</p>
<p>If you can't get this working, please post the viewer code for your Hotel section, so we can see what the fields are in that section too.</p>
<p>Hope this helps!</p>]]></description>
          <pubDate>Fri, 26 Feb 2016 11:54:21 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238394#post2238394</guid>
        </item>
                <item>
          <title>CMSB 3 (latest) Glitch when ordering images (drag order)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2238393#post2238393</link>
          <description><![CDATA[<p>Hi zaba,</p>
<p>I'm working on a fix for this.</p>
<p>As a workaround in the meantime, you can try grabbing the row from its top or bottom.</p>
<p>Thanks for the video demonstration!</p>]]></description>
          <pubDate>Fri, 26 Feb 2016 11:33:41 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2238393#post2238393</guid>
        </item>
                <item>
          <title>Gecoder custom map icons per listing</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235459#post2235459</link>
          <description><![CDATA[<p>If you wanted to do this by adding an upload field to your section called 'marker_icon', here's one way of getting it into the Google Map code. This is the chunk of example code from the Geocoder's "multiple address" map example modified to use the aforementioned change. Changed code is highlighted:</p>
<p><code>&lt;script type="text/javascript"&gt;<br />function initialize() {<br />  var mapCanvasId = 'map_canvas';<br />  var mapOptions  = { mapTypeId: google.maps.MapTypeId.ROADMAP };<br />  var map         = new google.maps.Map(document.getElementById(mapCanvasId), mapOptions);<br />  var bounds      = new google.maps.LatLngBounds();<br />  var infowindow  = new google.maps.InfoWindow();<br />&lt;?php<br />foreach ($myRecords as $record) {<br />  if (!$record['latitude'] || !$record['longitude']) { continue; }<br />  $jsFunctionArgs = "{$record['latitude']}, {$record['longitude']}, {$record['num']}, '" .escapeJs($record['_link']). "'<span style="color:#ff0000;"><strong>, '" .escapeJs(@$record['marker_icon'][0]['urlPath']). "'</strong></span>";<br />  print "  _geocoder_addMarker($jsFunctionArgs);\n";<br />}<br />?&gt;<br /><br />  //<br />  function _geocoder_addMarker(latitude, longitude, recordNum, detailLink<span style="color:#ff0000;"><strong>, markerIconUrl</strong></span>) {<br />    var latLng       = new google.maps.LatLng(latitude, longitude);<br />    var infowindowEl = document.getElementById('marker_infowindow_' + recordNum);<br />    var marker       = new google.maps.Marker({ map: map, position: latLng<span style="color:#ff0000;"><strong>, icon: markerIconUrl</strong></span> });<br />    google.maps.event.addListener(marker, 'click', function() {<br />      if (infowindowEl) {<br />        infowindow.setContent(infowindowEl.innerHTML);<br />        infowindow.open(map, marker);<br />      }<br />      else {<br />        window.location = detailLink;<br />      }<br />    });<br />    bounds.extend(latLng);<br />  }<br /><br />  //<br />  map.fitBounds(bounds);<br />}<br /><br />&lt;/script&gt;<br /></code></p>
<p>Hope this helps!</p>]]></description>
          <pubDate>Mon, 01 Dec 2014 14:06:27 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235459#post2235459</guid>
        </item>
                <item>
          <title>Show/Hide Dependent Fields Plus upload field bug!</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2235026#post2235026</link>
          <description><![CDATA[<p>Hi Ron,</p>
<p>If you've got a workaround that works for you, that's great! All the best! :)</p>]]></description>
          <pubDate>Mon, 22 Sep 2014 13:37:58 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2235026#post2235026</guid>
        </item>
                <item>
          <title>Show/Hide Dependent Fields Plus upload field bug!</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234992#post2234992</link>
          <description><![CDATA[<p>Hi Ron,</p>
<p>I took a look at showHideDependentFieldsPlus, but it's been rather drastically changed and it would probably take me a couple of hours to sort out a fix. We could do this through our consulting service if you'd like. Please let us know if you're interested.</p>]]></description>
          <pubDate>Thu, 18 Sep 2014 18:18:32 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234992#post2234992</guid>
        </item>
                <item>
          <title>Suggestion: Test Message</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234541#post2234541</link>
          <description><![CDATA[<p>Hi everyone,</p>
<p>Here's a little plugin which uses Javascript to add a Send Test Email feature to the Email Templates section. Please let me know what you think!</p>]]></description>
          <pubDate>Fri, 25 Jul 2014 18:19:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234541#post2234541</guid>
        </item>
                <item>
          <title>List Field Jump plugin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234199#post2234199</link>
          <description><![CDATA[<p>Hi Tim,</p>
<p>Not an easy fix, no. Because of how customizable a "Get options from mySQL" list field can be, it's harder to check to make sure the field uses the foreign `num` field, and even to make sure that the foreign table is a CMSB-controlled table! This is a feature we could build for you through our consulting service. Please let us know if this is something you're interested in.</p>]]></description>
          <pubDate>Fri, 13 Jun 2014 13:26:06 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234199#post2234199</guid>
        </item>
                <item>
          <title>Using Options List Populated From MYSQL Query to Filter Article Records By Month and Year</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234118#post2234118</link>
          <description><![CDATA[<p>Hi Jerry,</p>
<p>You'll want to add a "name" attribute to that &lt;select&gt;, and you'll want to pass in both the month and the year to the "value" of the &lt;option&gt;s, like this:</p>
<p><code>&lt;?php<br /> // get list of unique months and years with articles<br /> $query = "SELECT DATE_FORMAT(publication_date, '%M %Y') as dateAndYear, YEAR(publication_date) as year, MONTH(publication_date) as month FROM cms_articles_by_erica WHERE `hidden` = 0 GROUP BY dateAndYear ORDER BY publication_date DESC";<br /> $result = mysql_query($query) or die("MySQL Error: ". htmlspecialchars(mysql_error()) . "\n");<br /> ?&gt;<br /><br /> &lt;form method="POST" action="articlestest2.php"&gt;<br /> &lt;select <span style="color:#ff0000;"><strong>name="dateAndYear"</strong></span> style="width:350px;" &gt;<br /> &lt;option value=""&gt;Choose An Archive&lt;/option&gt; <br /> &lt;?php while ($record = mysql_fetch_assoc($result)):?&gt;<br /> &lt;option value="&lt;?php echo $record['<span style="color:#ff0000;"><strong>dateAndYear</strong></span>'] ?&gt;"&gt;&lt;?php echo $record['dateAndYear']; ?&gt;&lt;/option&gt;&lt;?php endwhile ?&gt;&lt;/select&gt;<br /> &lt;input type="submit" name="submit" value="Go To Archive" style="width:200px; "&gt;&lt;/form&gt;</code></p>
<p>...And then on your archive list page, you can extract the month and year from $_REQUEST['dateAndYear']:</p>
<p><code>&lt;?php<br /> @list($month, $year) = explode(' ', @$_REQUEST['dateAndYear']); // split on space<br /> ...<br /> ?&gt;</code></p>
<p>Does that help?</p>]]></description>
          <pubDate>Thu, 05 Jun 2014 18:12:36 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234118#post2234118</guid>
        </item>
                <item>
          <title>Related Records</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233935#post2233935</link>
          <description><![CDATA[<p>Hi Tim,</p>
<p>No, if there's no problem, it's not important. Setting field names up like that is only useful for automatically filling in the field responsible for joining when creating a new record from a related records list. Just so you don't have to select the Individual from the dropdown, for example.</p>
<p>Hope this helps clear things up! :)</p>]]></description>
          <pubDate>Fri, 09 May 2014 18:24:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233935#post2233935</guid>
        </item>
                <item>
          <title>Skipping specific records when using [previous] &amp; [next] code</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233879#post2233879</link>
          <description><![CDATA[<p>Yes, if you omit the 'orderBy' line, getPrevAndNextRecords() will default to the sort order defined in the Admin.</p>]]></description>
          <pubDate>Wed, 30 Apr 2014 17:13:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233879#post2233879</guid>
        </item>
                <item>
          <title>Save and Copy not working correctly?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233874#post2233874</link>
          <description><![CDATA[<p>Hi rez,</p>
<p>I think I have a solution. Can you try making this change to the plugin to see if it fixes the problem?</p>
<p>In saveAndCopy.php, change line 22:</p>
<p><code>$button = '&lt;input type="button" name="action=save" value="' .t('Save &amp; Copy'). '" onclick="window.SAVE_AS_COPY_CLICKED=true; $(\'form\').submit();" class="button" /&gt;';</code></p>
<p>...adding this new code:</p>
<p><code>$button = '&lt;input type="button" name="action=save" value="' .t('Save &amp; Copy'). '" onclick="window.SAVE_AS_COPY_CLICKED=true; <span style="color:#ff0000;"><strong>$(\'form\')[0].onsubmit();</strong></span> $(\'form\').submit();" class="button" /&gt;';</code></p>
<p>Does that solve the problem? Please let me know and I will patch the add on. Thanks!</p>]]></description>
          <pubDate>Wed, 30 Apr 2014 13:14:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233874#post2233874</guid>
        </item>
                <item>
          <title>Using CMS Builder I&apos;ve Accomplished Wondrous Things.</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233873#post2233873</link>
          <description><![CDATA[<p>Thanks Zick! That means a lot! :D</p>]]></description>
          <pubDate>Wed, 30 Apr 2014 12:44:47 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233873#post2233873</guid>
        </item>
                <item>
          <title>Related Records</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233872#post2233872</link>
          <description><![CDATA[<p>Hi Tim,</p>
<p>The reason they're showing up is that the current record doesn't have a num yet; that is to say that <span>@$RECORD['num'] is ''. </span>You can add a test to the <span>MySQL Where to avoid showing records when the current record doesn't have a num yet by adding this:</span></p>
<p><code>individual ='&lt;?php echo mysql_escape(@$RECORD['num']) ?&gt;<br /><span style="color:#ff0000;"><strong>AND &lt;?php echo (@$RECORD['num'] ? 'TRUE' : 'FALSE') ?&gt;</strong></span></code></p>
<p>Or perhaps this would be simpler:</p>
<p><code>individual ='&lt;?php echo mysql_escape(@$RECORD['num']) ?&gt;<br /><span style="color:#ff0000;"><strong>AND individual &gt; 0</strong></span></code></p>
<p>On a side note, you may want to rename your field from individual to individualsNum (the name of the table, plus "Num"). The reason is that the Related Records' create link will attempt to populate a field with that name (and there's currently no way to customize that.) You can see it attempting to do that in the address bar when you click Create on a Related Records field; for example, for a Create button on my "test" table (with a self-referential Related Records relationship):</p>
<p><a href="http://example.com/cmsAdmin/admin.php?menu=test&amp;action=edit&amp;" rel="nofollow">http://example.com/cmsAdmin/admin.php?menu=test&amp;action=edit&amp;</a><span style="color:#ff0000;"><strong>testNum=7</strong></span>&amp;returnUrl=%3Fnum%3D7%26menu%3Dtest%26action%3Dadd</p>
<p>I hope this helps! Please let me know if you have any questions.</p>]]></description>
          <pubDate>Wed, 30 Apr 2014 12:42:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233872#post2233872</guid>
        </item>
                <item>
          <title>Skipping specific records when using [previous] &amp; [next] code</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233871#post2233871</link>
          <description><![CDATA[<p>Hi drewh01,</p>
<p>Try this:</p>
<p><code>$where = "title &gt; ''";</code></p>
<p>Usually, you can get away with title != '', but that won't catch NULL fields, so the above is safer.</p>
<p>Does that help?</p>]]></description>
          <pubDate>Wed, 30 Apr 2014 12:27:10 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233871#post2233871</guid>
        </item>
                <item>
          <title>Skipping specific records when using [previous] &amp; [next] code</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233858#post2233858</link>
          <description><![CDATA[<p>Here:</p>
<p><code>//Get prev/next links using the blog num <br /><span style="color:#ff0000;"><strong>$where = "num != 2";</strong></span><br /> list($prevRecord, $nextRecord, $firstRecord, $lastRecord) = getPrevAndNextRecords(array( <br /> 'tableName' =&gt; 'films', <br /> 'recordNum' =&gt; $filmsRecord['num'], <br /><span style="color:#ff0000;"><strong>'where'     =&gt; $where,</strong></span><br /> 'orderBy'   =&gt; 'createdDate'<br /> ));</code></p>
<p>Does that help?</p>]]></description>
          <pubDate>Tue, 29 Apr 2014 17:31:56 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233858#post2233858</guid>
        </item>
                <item>
          <title>Skipping specific records when using [previous] &amp; [next] code</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233856#post2233856</link>
          <description><![CDATA[<p>Hi drewh01,</p>
<p>I'm assuming you're using getPrevAndNextRecords()? You can use a where clause to filter certain results.</p>
<p><code>// Supported options: tableName (required), recordNum (optional), and orderBy (optional, defaults to schema listPageOrder)<br /> // list($prevRecord, $nextRecord, $firstRecord, $lastRecord) = getPrevAndNextRecords(array(<br /> // 'tableName' =&gt; 'news',<br /> // 'recordNum' =&gt; $record['num'],<br /> // 'where' =&gt; '1', // optional - defaults to all records in section<br /> // 'orderBy' =&gt; 'createdDate', // optional - defaults to schema listPageOrder<br /> // ));</code></p>
<p>For example:</p>
<p><code>$where = "num != 2";<br /><br />list($prevRecord, $nextRecord, $firstRecord, $lastRecord) = getPrevAndNextRecords(array(<br />  'tableName' =&gt; 'news',<br />  'recordNum' =&gt; $record['num'],<br />  'where'     =&gt; $where,<br />));</code></p>
<p>Does that help?</p>]]></description>
          <pubDate>Tue, 29 Apr 2014 16:54:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233856#post2233856</guid>
        </item>
                <item>
          <title>No. of rows returned and sum of row field</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233851#post2233851</link>
          <description><![CDATA[<p>Hi zaba,</p>
<p>You can count the <span>$basketRecords array with count():</span></p>
<p><code>There were &lt;?php echo count($basketRecords); ?&gt; record(s) returned.</code></p>
<p>The simplest way to sum a field is to use a variable and a foreach loop:</p>
<p><code>&lt;?php<br />$sum = 0;<br />foreach ($basketRecords as $record) {<br />  $sum = $sum + $record['price'];<br />}<br />?&gt;<br />The total price is: &lt;?php echo $sum ?&gt;</code></p>
<p>Does that help?</p>]]></description>
          <pubDate>Tue, 29 Apr 2014 12:55:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233851#post2233851</guid>
        </item>
                <item>
          <title>Skipping specific records when using [previous] &amp; [next] code</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233850#post2233850</link>
          <description><![CDATA[<p>Hi drewh01,</p>
<p>I'm not sure I quite understand what you're doing. Can you post the complete PHP source code for your page? Preferably as an attachment?</p>]]></description>
          <pubDate>Tue, 29 Apr 2014 12:52:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233850#post2233850</guid>
        </item>
                <item>
          <title>LinkArray include category permalink</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233849#post2233849</link>
          <description><![CDATA[<p>Hi Jeremy,</p>
<p>Generating the _link field will require another call to getRecords(), whether you're using the standard _link (which is generated from other fields) or a permalink _link. A simple solution would be to replace your code with this:</p>
<p><code>&lt;?php<br /> $where = 'num IN (' . mysql_escapeCSV($record['category:values']) . ')';<br /> list($linkRecords) = getRecords(array(<br />  'tableName'   =&gt; 'category', // TODO: set this to the tableName for your link records<br />  'where'       =&gt; $where,<br />  'allowSearch' =&gt; false,<br /> ));<br /> foreach ($linkRecords as $linkRecord): ?&gt;<br /> &lt;a href="&lt;?php echo $linkRecord['_link']; ?&gt;"&gt;&lt;?php echo $linkRecord['title']; ?&gt;&lt;/a&gt;,<br /> &lt;?php endforeach ?&gt;</code></p>
<p>Does that work?</p>
<p>However, if your code is already inside of a foreach, this is going to mean an extra getRecords() call per $record you're displaying, which may slow down your page. Let me know if this is a problem and I can show you how to load all the child records all at once (caching them at the top of your page).</p>]]></description>
          <pubDate>Tue, 29 Apr 2014 12:46:13 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233849#post2233849</guid>
        </item>
                <item>
          <title>Search (list) page shows results for inactive/expired accounts but when clicked on for details page get message &quot;No record found for that search. Please click BACK in your browser.&quot;</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2233848#post2233848</link>
          <description><![CDATA[<p>Hi equinox,</p>
<p>How are <span>disengaged, put on hold, and inactive/expired accounts represented in the database? Is it <span>manufacturer.disabled or something like that?</span></span></p>
<p><span><span>Can you show us the detail page which is returning the "No record found" message so we can see what the logic is there?</span></span></p>]]></description>
          <pubDate>Tue, 29 Apr 2014 12:08:16 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2233848#post2233848</guid>
        </item>
              </channel>
    </rss>
  