<?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%3ADaryl</link>
        <description></description>
        <pubDate>Tue, 07 Apr 2026 04:19:29 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3ADaryl&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Header Bar Separator Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239593#post2239593</link>
          <description><![CDATA[<p>Hi Jerry,</p>
<p>Thanks for your inputs, I will discuss it with our senior programmer.</p>
<p>Regards,</p>]]></description>
          <pubDate>Tue, 11 Oct 2016 10:22:54 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239593#post2239593</guid>
        </item>
                <item>
          <title>mysql query question</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239588#post2239588</link>
          <description><![CDATA[<p>Hi Jerry,</p>
<p>You're missing a "<strong>`</strong>" on this line:</p>
<p><code>$updateQuery = "UPDATE <span style="color:#ff0000;">`</span>{$TABLE_PREFIX}accounts` SET $updateSet WHERE $updateWhere";</code></p>
<p>Cheers,</p>]]></description>
          <pubDate>Thu, 06 Oct 2016 16:28:06 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239588#post2239588</guid>
        </item>
                <item>
          <title>Header Bar Separator Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239586#post2239586</link>
          <description><![CDATA[<p>Hi Jerry,</p>
<p>Can you please try using the HTML separator instead of the header bar and add the following HTML:</p>
<p><code>&lt;div class="separator "&gt;&lt;div&gt;&lt;font color="red"&gt;&lt;b&gt;SHOW IN CURRENT NEWSLETTER OR ON WEB SITE&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;</code></p>
<p>And please let me know if that works for you.</p>
<p>Thanks,</p>]]></description>
          <pubDate>Thu, 06 Oct 2016 14:40:25 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239586#post2239586</guid>
        </item>
                <item>
          <title>Filter items by category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239486#post2239486</link>
          <description><![CDATA[<p>It's a typo. I was typing too fast. It should be:</p>
<p><code>&lt;?php foreach ($records AS $record): ?&gt;</code></p>
<p>Anyway, I'm glad you got it working.</p>
<p>Cheers,</p>]]></description>
          <pubDate>Thu, 01 Sep 2016 09:18:24 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239486#post2239486</guid>
        </item>
                <item>
          <title>Filter items by category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239479#post2239479</link>
          <description><![CDATA[<p>Hi Jeremy,</p>
<p>Use array_groupBy() function on your <span>faq_questions records array.<br />For example:<br /></span></p>
<p><code>$faqsTopicsToRecords= array_groupBy($faq_quesitons, 'topics:label', true);<br /><br />// to see how the new array looks like<br />showme($faqsTopicsToRecords);</code></p>
<p>Your foreach loop should now look something like this:</p>
<p><code>&lt;?php foreach ($faqsTopicsToRecords as $topic =&gt; $records): ?&gt;<br />  &lt;h1&gt;&lt;?php echo htmlencode($topic) ?&gt;&lt;/h1&gt;<br /><br />  &lt;?php foreach ($records as $record): ?&gt;<br />    &lt;p&gt;<br />      &lt;?php echo $record['question'] ?&gt;&lt;br&gt;<br />      &lt;?php echo $record['answer'] ?&gt;&lt;br&gt;&lt;br&gt;<br />    &lt;/p&gt;<br />  &lt;?php endforeach ?&gt;<br /><br />&lt;?php endforeach ?&gt;</code></p>
<p>Hope this helps!</p>
<p>Cheers,</p>]]></description>
          <pubDate>Tue, 30 Aug 2016 16:44:37 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239479#post2239479</guid>
        </item>
                <item>
          <title>Developer Console v1.04 and Grey Hidden Records v1.01 Released!</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239478#post2239478</link>
          <description><![CDATA[<p>Hi Jayme,</p>
<p>The 'listRow_trStyle' filter passes the table name of the section to $tableName variable.<br />You can use that to check if the current table is _sc_orders, if not, return the tr style without any changes.<br />For example:</p>
<p><code>function grey_hidden_records_listRow_trStyle($trStyle, $tableName, $record) {<br />  <span style="color:#0000ff;"><strong>if ($tableName != '_sc_orders') { return $trStyle; } // change nothing if this is not the orders table</strong></span><br />  if (!@$record['hidden']) { return $trStyle; } // skip if record either doesn't have a hidden field or the hidden field isn't checked<br />  return "color: #CCC;";<br />}</code></p>
<p>Cheers,</p>]]></description>
          <pubDate>Tue, 30 Aug 2016 16:21:30 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239478#post2239478</guid>
        </item>
                <item>
          <title>CMSB v3.06 Released - CMS Menu Icons and Thumbnail Cropping - August 25th, 2016</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239465#post2239465</link>
          <description><![CDATA[<p><span>Hi All,</span><br /><br /><span>We've just released v3.06 (Build 2101) which a number of minor bug fixes, tweaks, and some new features:</span></p>
<ul><li>
<p>CMS Menus: Added icons for "CMS Setup" and "Admin" menus</p>
</li>
<li>
<p><span>Section Editors: Added "Menu Icon" field for adding menu icon</span></p>
</li>
<li>
<p>Field Editor: Added "crop" feature for upload field's thumbnail images</p>
</li>
</ul><p>Here's the complete changelog for v3.06:</p>
<blockquote>
<p>*** August 25, 2016 - Version 3.06 (CMS Menu Icons and Thumbnail Cropping)</p>
<p>SERVER REQUIREMENTS:<br />- This software version requires: PHP 5.5+ and MySQL 5.0+<br />- Future versions will require: PHP 5.6+ and MySQL 5.5+<br />- NOTE: Some plugin may need to be updated when upgrading from v2.xx</p>
<p>NEW FEATURES<br />- CMS Menus: Added icons for "CMS Setup" and "Admin" menus<br />- Section Editors: Added "Menu Icon" field for adding menu icon<br />- Field Editor: Added "crop" feature for upload field's thumbnail images</p>
<p>MINOR CHANGES<br />- CMS Menus: "Backup &amp; Restore" has been moved from "General Settings" to its own page<br />- CMS Menus: "Text Link" menus that redirects to an external page now display an "external-link" icon<br />- Section Editors: Moved "Hidden menu" option from "Advanced" tab to "General" tab<br />- Field Editor: Added &lt;br&gt; tag support for text field prefix and description<br />- Code Generator: Changed the RSS feed's isPermalink attribute value to false by default so that it will pass the w3c validation<br />- Code Generator: Included hidden menus in the "Select Section" list options<br />- Programmers: Updated getPage() function to send HTTP/1.1 header, added support for HTTP-chunked data<br />- Programmers: Added new plugin filters: sendMessage_options</p>
<p>BUG FIXES<br />- CMS Menus: Fixed display issue where menus sometimes didn't appear correctly<br />- CMS Menus: Fixed issue where background color turns black when printing a CMS Menu page in Chrome browser<br />- CMS Menus: Fixed issue where thumbnails on the section list page sometimes disappear when adding a new thumbnail setting<br />- Field Editor: Fixed issue where save &amp; copying a field doesn't automatically update the fieldname when changing the label<br />- Upload Field Editor: Fixed issue where recreating new thumbnail, the URL and file paths of that new thumbnail don't get set in its upload record<br />- Misc Code and other minor improvements</p>
</blockquote>
<p>To see the full list of changes, please visit the CMS Builder changelog: <br /><a href="http://www.interactivetools.com/tour/changelog.php" rel="nofollow">http://www.interactivetools.com/tour/changelog.php</a></p>
<p>CMS Builder users can upgrade by donation at this page: <br /><a href="http://www.interactivetools.com/upgrade/" rel="nofollow">http://www.interactivetools.com/upgrade/</a></p>
<p>Please feel free to create a new forum post for your feedback and questions.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Fri, 26 Aug 2016 11:11:26 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239465#post2239465</guid>
        </item>
                <item>
          <title>Combining Output from 2 mysql_select Calls?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239459#post2239459</link>
          <description><![CDATA[<p>Yes, it will be heavy if both tables have lots of records.</p>
<p>It's a bit tricky to sort a combined multi-dimensional array.<br />So I'd like to suggest to use mysql_select_query() function, for example:</p>
<p><code>$urlsAndLinks = mysql_select_query("SELECT CONCAT('./', permalink) AS URL, CONCAT(name,' (Page)') AS LINK from {$GLOBALS['TABLE_PREFIX']}pages<br />                                    UNION<br />                                    SELECT CONCAT('?rec=', num) AS URL, CONCAT(name,' (Record)') AS LINK from {$GLOBALS['TABLE_PREFIX']}records<br />                                    ORDER BY LINK");</code></p>
<p>Let me know how it goes.</p>
<p>Thanks,</p>]]></description>
          <pubDate>Wed, 24 Aug 2016 12:03:53 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239459#post2239459</guid>
        </item>
                <item>
          <title>Permalinks - Script to Clean-up Old Entries</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239455#post2239455</link>
          <description><![CDATA[<p>In Permalinks v1.05, the code that updates the old permalinks are on line 219-221 and looks like this:</p>
<p><code>    // mark all other matching permalinks for this record as old<br />    $where = mysql_escapef("`tableName` = ? AND `recordNum` = ? AND permalink != ?", $tableName, $recordNum, $permalinkText);<br />    mysql_update('_permalinks', null, $where, array('old' =&gt; '1'));</code></p>
<p>I didn't mention the exact lines/code as I'm not sure what version you're using.</p>
<p>Cheers,</p>]]></description>
          <pubDate>Wed, 24 Aug 2016 11:56:35 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239455#post2239455</guid>
        </item>
                <item>
          <title>Permalinks - Script to Clean-up Old Entries</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239452#post2239452</link>
          <description><![CDATA[<p>If that's the case, you can modify the permalinks plugin (create a backup first) to delete the old permalink as you add a new one.</p>
<p>You can do that by changing the code that updates the old permalink to mark it as "old" to have it delete the old record instead.</p>
<p>You can find that code in the permalink_add() function.</p>
<p>I'd comment out the code that updates the record instead of deleting it so I can restore it back easily when I need to.</p>]]></description>
          <pubDate>Wed, 24 Aug 2016 11:44:17 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239452#post2239452</guid>
        </item>
                <item>
          <title>Combining Output from 2 mysql_select Calls?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239450#post2239450</link>
          <description><![CDATA[<p>Hi Perch,</p>
<p>What were the problems when you tried to do it on a normal page?</p>
<p>Regards,</p>]]></description>
          <pubDate>Wed, 24 Aug 2016 11:29:19 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239450#post2239450</guid>
        </item>
                <item>
          <title>Permalinks - Script to Clean-up Old Entries</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239449#post2239449</link>
          <description><![CDATA[<p>Hi Perch,</p>
<p>Yes, that's doable.</p>
<p>But why would you want to delete the old entries?</p>
<p>We use the old permalinks to redirect the users to the current ones.<br />This is useful if a user bookmarked an old URL, or search engines haven't indexed the new URL yet and referred the user to the old one.</p>
<p>Cheers,</p>]]></description>
          <pubDate>Wed, 24 Aug 2016 11:06:18 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239449#post2239449</guid>
        </item>
                <item>
          <title>Notice: CMSB v3.06 Beta 1 (August 17, 2016) - CMS Menu Icons and Thumbnail Cropping</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239448#post2239448</link>
          <description><![CDATA[<p>Hi Djulia,</p>
<p>So you were referring to the menu suffix icon and not the prefix.</p>
<p>No, I don't think we need a field in the section editor for the suffix icon because I think it will not be used that much.<br />We can use the plugin filter to add/change the suffix icon for now unless many people asked for a field to set it.</p>
<p>And right, you can hide it using CSS or update it to change to other icon using the plugin filter.</p>
<p>Cheers,</p>]]></description>
          <pubDate>Wed, 24 Aug 2016 10:56:35 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239448#post2239448</guid>
        </item>
                <item>
          <title>Notice: CMSB v3.06 Beta 1 (August 17, 2016) - CMS Menu Icons and Thumbnail Cropping</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239438#post2239438</link>
          <description><![CDATA[<p>Hi Djulia,</p>
<blockquote>
<p><span>Is it also envisaged to add a field for menu-prefix-icon?</span></p>
</blockquote>
<p>Are you referring to the plugin filter where you can set the menu-prefix-icon?</p>
<p><span>If yes, setting a menu icon in the section editor does the same thing so we don't need another field for that.</span></p>
<p><span>Regards,<br /></span></p>]]></description>
          <pubDate>Tue, 23 Aug 2016 11:58:55 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239438#post2239438</guid>
        </item>
                <item>
          <title>WebsiteMembership Issue</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239437#post2239437</link>
          <description><![CDATA[<p>Hi Perch,</p>
<p><span>Functions that send or modify the headers, ie: setcookie() which is called by <span>setPrefixedCookie()</span>, should be executed first before displaying any output.</span></p>
<p><span>So I'd check if the setPrefixedCookie() code is called before anything that displays an output.</span></p>
<p><span>PS: Check out this <span>StackOverflow </span>thread that discusses the same error for more details: <a href="http://stackoverflow.com/a/8028987" rel="nofollow">http://stackoverflow.com/a/8028987</a></span></p>
<p><span>Hope this helps!</span></p>
<p><span>Thanks,</span></p>]]></description>
          <pubDate>Tue, 23 Aug 2016 11:42:58 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239437#post2239437</guid>
        </item>
                <item>
          <title>Adding in a CSS element on last item in list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239436#post2239436</link>
          <description><![CDATA[<p>Hi ciaran_mac,<span><br /></span></p>
<p>You can use the end() function to get the last array element then add an if statement inside your foreach loop that checks if the <span>current array's num</span> is equal to the<span> last array element's num</span>. If yes, then add the class.</p>
<p>Cheers,</p>]]></description>
          <pubDate>Tue, 23 Aug 2016 11:30:53 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239436#post2239436</guid>
        </item>
                <item>
          <title>Notice: CMSB v3.06 Beta 1 (August 17, 2016) - CMS Menu Icons and Thumbnail Cropping</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239430#post2239430</link>
          <description><![CDATA[<p>Hi,</p>
<p>Tim:</p>
<blockquote>
<p><span>You have a link to font awesome for additional icons - any instructions on how to add them?</span></p>
</blockquote>
<p><span>You just need to copy-paste the name of the icon. You'll see the name of the icon when you click on one of them, ie: "fa-check":<br /><a href="http://fontawesome.io/icon/check/" rel="nofollow">http://fontawesome.io/icon/check/</a><br /></span></p>
<p><span>Jeff:</span></p>
<blockquote>
<p>I already link to font awesome and add my own icons for each record. In the section editor when you set the icon for the menu item, I would like to set my icon to the cmsb menu item as it's default. I thought I might be able to do it via the viewer but could do it in cmsb by setting the default value for my icon to the cmsb menu icon.</p>
<p>Is there a way to do that?</p>
</blockquote>
<p>You'd like the icons you set/used in each record of a section to be the default menu icons options in the section editor?</p>
<p>If I understand your question correctly: No, there is currently no way to do that.</p>
<p>If that's not what your question is meant, can you please provide an example for what you're trying to do?</p>
<p>Thanks,</p>]]></description>
          <pubDate>Mon, 22 Aug 2016 14:36:10 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239430#post2239430</guid>
        </item>
                <item>
          <title>Image Type: SVG</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239426#post2239426</link>
          <description><![CDATA[<p>Hi Tim,</p>
<p>We'll look into adding support for SVG image file type for the next release. </p>
<p>You can add the following patch, for now, to display the thumbnails for SVG images in the admin.</p>
<p>In showUploadPreview function in \cmsb\lib\upload_functions.php file, add the following code after line 1086:</p>
<p><code>$isImage = preg_match("/\.(gif|jpg|jpeg|png)$/i", $uploadRecord['urlPath']); <strong>// line 1086</strong><br /><br /><span style="color:#3366ff;"><strong>// display image preview for svg image file type</strong></span><br /><span style="color:#3366ff;"><strong>if (preg_match("/\.(svg)$/i", $uploadRecord['urlPath'])) {</strong></span><br /><span style="color:#3366ff;"><strong>  $isImage                = true;</strong></span><br /><span style="color:#3366ff;"><strong>  $uploadRecord['width']  = "150";</strong></span><br /><span style="color:#3366ff;"><strong>  $uploadRecord['height'] = "150";</strong></span><br /><span style="color:#3366ff;"><strong>}</strong></span><br /></code></p>
<p><span>Note: This patch is for v3.05 and </span>don't<span> forget to create a backup first</span></p>
<p>Let me know any questions.</p>
<p>Thanks,</p>]]></description>
          <pubDate>Mon, 22 Aug 2016 11:22:56 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239426#post2239426</guid>
        </item>
                <item>
          <title>Notice: CMSB v3.06 Beta 1 (August 17, 2016) - CMS Menu Icons and Thumbnail Cropping</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239414#post2239414</link>
          <description><![CDATA[<p>Hi Jeff,</p>
<p>Thanks for your feedback.</p>
<p>To answer your question, viewer function doesn't load the menu icons.<br />If you want to use the icons, you need to include the font CSS file in your viewer page:</p>
<p><code>&lt;link rel="stylesheet" href="&lt;?php echo CMS_ASSETS_URL ?&gt;/3rdParty/clipone/plugins/font-awesome/css/font-awesome.min.css"&gt;</code></p>
<p>Regards,</p>]]></description>
          <pubDate>Fri, 19 Aug 2016 14:35:47 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239414#post2239414</guid>
        </item>
                <item>
          <title>Notice: CMSB v3.06 Beta 1 (August 17, 2016) - CMS Menu Icons and Thumbnail Cropping</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239402#post2239402</link>
          <description><![CDATA[<p>Thanks, Tim.</p>
<p>I will look into the issue where some icons don't show and discuss your feedback with Dave.</p>
]]></description>
          <pubDate>Fri, 19 Aug 2016 09:01:16 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239402#post2239402</guid>
        </item>
                <item>
          <title>Permalinks Change?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239396#post2239396</link>
          <description><![CDATA[<p>Hi Djulia.</p>
<blockquote>
<p>It would be possible to exclude the 'old' link in functions permalink_cms_onSaveUpdatePermalinks and permalink_add ?</p>
<p>It would be then possible to again use a link without having to remove it before in permalinks table.</p>
</blockquote>
<p>You would like to use permalink URL that is already used (old) by another record without having to delete it from the permalink table?</p>
<p>I wouldn't recommend doing it because we're using the old permalink to redirect the users to the current one when they visit the old URL. <br />This is helpful for users who bookmarked a URL with an old permalink or when search engines or browsers cached the page's old URL, users will still get redirected to the correct page.</p>
<p>But if you don't mind the old permalinks, you can delete the old permalink record instead of updating it as an old record whenever you add a new one.<br />To do that, in permalink_add() function, change the block of code with comment "mark all other matching permalinks for this record as old" from mysql update to mysql delete.</p>
<p>I never tried this before and don't know what other negative effects it could cause so I'd like to suggest to do lots of testing first and see if the benefits of not checking the old permalink outweigh the negative effects of it.</p>
<p>Hope that helps!</p>
<p>Cheers,</p>]]></description>
          <pubDate>Thu, 18 Aug 2016 09:54:05 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239396#post2239396</guid>
        </item>
                <item>
          <title>Notice: CMSB v3.06 Beta 1 (August 17, 2016) - CMS Menu Icons and Thumbnail Cropping</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239390#post2239390</link>
          <description><![CDATA[<p>Hi everyone, </p>
<p>We've just released v3.06 beta 1 (beta list members will get an email shortly). </p>
<p>The major new features are:</p>

<ul><li>CMS Menus: Added icons for "CMS Setup" and "Admin" menus</li>
<li>Section Editors: Added "Menu Icon" field for adding menu icon</li>
<li>Field Editor: Added "crop" feature for upload field's thumbnail images</li>
</ul><p>If you're not already on the beta tester email list and you'd like to get notified of upcoming betas (you must own at least 1 CMSB license) you can sign up here: <br /><a href="http://www.interactivetools.com/news/manage.php" rel="nofollow">http://www.interactivetools.com/news/manage.php</a></p>
<p>And if you have a license you can download the latest beta here: <br /><a href="https://www.interactivetools.com/order/download.php" rel="nofollow">https://www.interactivetools.com/order/download.php</a></p>
<p>Please post any feedback, questions, or bugs you find! Thanks! </p>
<p>Thanks!</p>]]></description>
          <pubDate>Wed, 17 Aug 2016 14:56:53 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239390#post2239390</guid>
        </item>
                <item>
          <title>Permalinks Change?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239377#post2239377</link>
          <description><![CDATA[<p>Hi Perch,</p>
<blockquote>
<p><span>Have I added the new line correctly?</span></p>
</blockquote>
<p><span>Looks good!</span></p>
<blockquote>
<p>Currently my savePage does not "report" errors. (If there is a code problem it just doesn't work!)</p>
<p>1) In the unlikely event that there is a clash of permalinks, how would I feed the error back to my savePage - without breaking the anything (and losing the changes that could have been made to the page)?</p>
</blockquote>
<p>The permalink_cms_onSaveUpdatePermalinks() function doesn't return the error message and instead, calls the die($error) function if there's an error.<br />So if you want to control the error reporting, you can copy the code and create your own version of this function that returns the error messages instead of dying. See the second step below.</p>
<blockquote>
<p>2) What code would I use to check if a new permalink has been added to an input box and, if so, then update the required tables?</p>
</blockquote>
<p>First, convert the input box value to SEO-friendly URL (converts spaces to dashes, removes non-alphanumeric characters):</p>
<p><code>$permalink = _permalink_generate_formatInputText($_REQUEST['permalink_input_box']);</code></p>
<p>Second, check $permalink for errors. The code below is derived from permalink_cms_onSaveErrorChecking() function (you can convert the code below to you own function):</p>
<p><code>// check if permalink already exists in database<br />$permalinkRecord = mysql_get('_permalinks', null, array('permalink' =&gt; $permalink)); <br />$isAlreadyUsed   = $permalinkRecord &amp;&amp; $permalinkRecord['recordNum'] != $recordNum &amp;&amp; ($tableName != '_permalinks');<br /><br />// error checking<br />$errors = '';<br />$requiredPrefix  = $GLOBALS['schema']['permalink']['defaultValue'];<br />if     (!$permalink)                              { $errors .= "You must enter a value for 'permalink'!"; }<br />elseif (preg_match("!^/!", $requiredPrefix))      { $errors .= "Permalink prefix can not start with a slash! Change the 'Default Value' for permalink field in Field Editor."; }<br />elseif ($permalink == $requiredPrefix)            { $errors .= "You must enter a value for 'permalink' after '" .htmlencode($requiredPrefix). "'!"; }<br />elseif (!startsWith($requiredPrefix, $permalink)) { $errors .= "Permalink must start with '" .htmlencode($requiredPrefix). "'!"; }<br />elseif (preg_match("|[^\w\-\./]|i", $permalink))  { $errors .= "Permalink can only contain these chars (a-z0-9/-.)!"; }<br />elseif (preg_match("!^/|/$!", $permalink))        { $errors .= "Permalink can not start or end with a slash!"; }<br />elseif (preg_match("!\.{2,}!", $permalink))       { $errors .= "Permalink can not include '..'!"; }<br />elseif (preg_match("!/{2,}!", $permalink))        { $errors .= "Permalink can not include '//'!"; }<br />elseif ($isAlreadyUsed)                           { $errors .= sprintf("Permalink '%s' is already in use, please choose another!", htmlencode($permalink)); }</code></p>
<p>Next, if there's no error, add/update the permalink of the record.<br />The permalink_add() function will take care of adding/updating the new permalink and will return an error if there is any.<br />If it doesn't return an error, you can continue with your other process, ie: update record.</p>
<p><code>if (!$errors) {<br />  // add/update permalink<br />  $errors = permalink_add($permalink, $tableName, $recordNum);<br />  <br />  if (!$error) {<br />    // do other stuff here, ie: update record<br />  }<br />}</code></p>
<p><span>Or you can do your other process first then add/update the permalink.</span></p>
<p>Finally, if there's an error, display it on your page.</p>
<p>NOTE: The code above are just examples and were not tested so you might need to tweak it more.</p>
<p>Let me know any questions!</p>
<p>Thanks,</p>]]></description>
          <pubDate>Wed, 17 Aug 2016 10:09:09 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239377#post2239377</guid>
        </item>
                <item>
          <title>Permalinks Change?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239374#post2239374</link>
          <description><![CDATA[<p>Hi Perch,</p>
<p>It seems like <span>permalink_cms_onSaveUpdatePermalinks function is not getting loaded on your page anymore.</span></p>
<p>I checked the code and the permalink_cms_onSaveUpdatePermalinks() function has been moved to /cmsb/plugins/permalinks/permalinks_cmsMenus.php since version 1.03.</p>
<p>And the <span>permalinks_cmsMenus.php is only called if the logged in user is an admin.</span></p>
<p><span>To resolve this, you can either:</span></p>
<ol><li>Include the <span>permalinks_cmsMenus.php file in your add/edit page (not recommended because the functions inside this file are designed to be used in CMS admin pages)</span></li>
<li>Use permalink_add() function which returns an error if there is any. Ie: permalink is already in use
<p><code>// add/update permalink<br /> $errors = permalink_add(@$_REQUEST['permalink'], $tableName, $recordNum);</code></p>
</li>
</ol><p>Let me know how it goes!</p>
<p>UPDATE:</p>
<p>The <span>permalink_add() doesn't do the permalink error checking, so it's better to include <span>permalinks_cmsMenus.php file and use <span>permalink_cms_onSaveUpdatePermalinks() function.</span></span></span></p>
<p>Thanks,</p>]]></description>
          <pubDate>Tue, 16 Aug 2016 17:03:13 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239374#post2239374</guid>
        </item>
                <item>
          <title>Thumbs not showing</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239369#post2239369</link>
          <description><![CDATA[<p>Hi guys,</p>
<blockquote>
<p>Verify in db that thumb 4 path is written - you will notice that the sizes are written even if path is not</p>
</blockquote>
<p>This is actually the cause of the issue that Tim described.</p>
<p>The newly added thumbnails don't get displayed because the paths were empty on their uploads records.</p>
<p>As a solution, when adding new thumbnails settings and recreate the thumbnails, the script now updates the uploads records to store the new thumb paths.</p>
<p>This solution is included in the next CMSB release.</p>
<p>Regards,</p>]]></description>
          <pubDate>Mon, 15 Aug 2016 14:29:30 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239369#post2239369</guid>
        </item>
              </channel>
    </rss>
  