<?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%3AMikey</link>
        <description></description>
        <pubDate>Tue, 14 Apr 2026 04:45:52 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3AMikey&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Sorting a multi list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2247795#post2247795</link>
          <description><![CDATA[<p>Hey <span>Djulia,</span></p>
<p><span>Thanks for the tip. I sorted it out using your tip and the line of code below. </span></p>
<pre class="language-markup"><code>    'orderBy'     =&gt; 'num ASC', // or DESC</code></pre>
<p><span>Have a great day!</span></p>]]></description>
          <pubDate>Thu, 12 Dec 2024 10:29:43 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2247795#post2247795</guid>
        </item>
                <item>
          <title>Sorting a multi list</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2247792#post2247792</link>
          <description><![CDATA[<p>I'm drawing a complete blank on this... but how can I sort a multi-list so the records are reversed of their record entries in CMSB? I'm building a timline, so I do not want to sort by year because some of the timeline records have the same year. I just need to reverse the order the records appear.</p>
<pre class="language-markup"><code>  // load records from 'timeline'
  list($timelineRecords, $timelineMetaData) = getRecords(array(
    'tableName'   =&gt; 'timeline',
    'loadUploads' =&gt; true,
    'allowSearch' =&gt; false,
  ));


&lt;?php if($about_usRecord['show_timeline'] =="1"): ?&gt;&lt;!--- Timeline ---&gt;
&lt;ul class="timeline"&gt;
&lt;?php foreach ($timelineRecords as $record): ?&gt; 
    
&lt;li class="timeline-container timeliner"&gt;
    &lt;div class="timeline-content"&gt;
        &lt;div class="grid-x grid-margin-x align-center bottom-space"&gt;
            &lt;div class="cell small-12 medium-6"&gt;
              &lt;p class="timelineyears"&gt;&lt;?php echo htmlencode($record['start_year']) ?&gt;&lt;?php if(!$record['end_year'] ==""): ?&gt; - &lt;?php echo htmlencode($record['end_year']) ?&gt;&lt;?php endif; ?&gt;&lt;/p&gt;
              &lt;h2&gt;&lt;?php echo htmlencode($record['title']) ?&gt;&lt;/h2&gt;
              &lt;p&gt;&lt;?php echo $record['content']; ?&gt;&lt;/p&gt;
            &lt;/div&gt;    
            &lt;div class="cell small-12 medium-6 image_fiter"&gt;
              &lt;?php foreach ($record['upload'] as $index =&gt; $upload): ?&gt;
              &lt;img src="&lt;?php echo htmlencode($upload['urlPath']) ?&gt;" width="&lt;?php echo $upload['width'] ?&gt;" height="&lt;?php echo $upload['height'] ?&gt;" alt="&lt;?php echo htmlencode($record['title']) ?&gt;"&gt;
              &lt;?php endforeach ?&gt; 
            &lt;/div&gt;
        &lt;/div&gt;    
    &lt;/div&gt;
&lt;/li&gt;
&lt;?php endforeach ?&gt;    
&lt;/ul&gt;              
&lt;!--- End Timeline ---&gt;&lt;?php endif; ?&gt;</code></pre>]]></description>
          <pubDate>Wed, 11 Dec 2024 14:06:14 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2247792#post2247792</guid>
        </item>
                <item>
          <title>Facebook links to my site details page are broken</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2247228#post2247228</link>
          <description><![CDATA[<p>I have a gallery of videos running on a website. There's a list page where you can browse the various videos, and links to the video on the details page to watch. When I click the link to the details page of the video and copy the URL and paste the link into Facebook, the post displays everything fine, but when you click the link the additional code Facebook adds breaks the link and the resulting page displays "Record Not Founbd".</p>
<p>Anyone have any suggestions how to fix this so the links work after Facebook adds their additional tracking code?</p>
<p>I've tried the following with no luck so far:</p>
<pre class="language-markup"><code>I tried CMSB code with a trailing / slash:
&lt;a href="&lt;?php echo $record['_link'] ?&gt;/" title="&lt;?php echo htmlencode($record['title']) ?&gt;"&gt;&lt;?php echo htmlencode($record['title']) ?&gt;&lt;/a&gt;

I tried CMSB code as is:
&lt;a href="&lt;?php echo $record['_link'] ?&gt;" title="&lt;?php echo htmlencode($record['title']) ?&gt;"&gt;&lt;?php echo htmlencode($record['title']) ?&gt;&lt;/a&gt;

I tried querying the record number:
&lt;a href="video-showcase.php?&lt;?php echo $record['num'] ?&gt;" title="&lt;?php echo htmlencode($record['title']) ?&gt;"&gt;&lt;?php echo htmlencode($record['title']) ?&gt;&lt;/a&gt;
</code></pre>
<p>All the options I have tried above have proved fruitless and the link from Facebook to my website continues to get broken by Facebooks additional code added to the links.</p>
<p>Any suggestions are much appreciated. </p>
<p>Mikey</p>]]></description>
          <pubDate>Wed, 29 May 2024 06:36:14 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2247228#post2247228</guid>
        </item>
                <item>
          <title>if statement within an array and record not hidden</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246606#post2246606</link>
          <description><![CDATA[<p>Hey Dave,</p>
<p>That worked great!!! I now have a much more robust search engine.</p>
<p>Thank you so much for the help. </p>
<p>Mikey</p>]]></description>
          <pubDate>Fri, 07 Jul 2023 14:15:04 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246606#post2246606</guid>
        </item>
                <item>
          <title>if statement within an array and record not hidden</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246603#post2246603</link>
          <description><![CDATA[<p>Hey Dave,</p>
<p>One other question. Any suggestions on how to display the labels of a dropdown list instead of the list num?</p>
<p>For example when I use the code below, I get the numbers of the list item selected within the record.</p>
<pre class="language-markup"><code>'homes_for_sale'		=&gt; 'bedrooms',</code></pre>
<p>However, I would like to show the label of the list items selected. So I tried the code below, but it produces zero results.</p>
<pre class="language-markup"><code>'homes_for_sale'		=&gt; 'bedrooms:label',</code></pre>
<p>Thanks, Mikey</p>]]></description>
          <pubDate>Fri, 07 Jul 2023 12:45:19 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246603#post2246603</guid>
        </item>
                <item>
          <title>if statement within an array and record not hidden</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246602#post2246602</link>
          <description><![CDATA[<p>Hey Dave,That worked like a charm! </p>
<p>Thank you.</p>]]></description>
          <pubDate>Fri, 07 Jul 2023 12:41:49 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246602#post2246602</guid>
        </item>
                <item>
          <title>if statement within an array and record not hidden</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246600#post2246600</link>
          <description><![CDATA[<p>Hey Dave,</p>
<p>In CMS Builder for each section I have a checkbox named "Hidden" so some records can be changed to hidden to remove them from the website without the need to erase the record. Below is the full code I am using to get the list of sections.</p>
<pre class="language-markup"><code>&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;
&lt;?php
  
  // load viewer library
  $libraryPath = 'cmsb/lib/viewer_functions.php';
  $dirsToCheck = ['','../','../../','../../../','../../../../'];
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
?&gt;

&lt;!--BEGIN TAG CLOUD--&gt;
&lt;?php // tag cloud
$tagsToCount = array();

$sectionsToField = array(
	'floor_plans'			=&gt; 'title',
	'homes_for_sale'		=&gt; 'title',
	'news'					=&gt; 'title' and NOT hidden,
    'media'                 =&gt; 'name' and NOT hidden,
	//'homes_for_sale'		=&gt; 'bedrooms:label',
	//'homes_for_sale'		=&gt; 'bathrooms:label',
	//'news'				=&gt; 'categories:label',
);

//use additional if joining tags from multiple sections
foreach($sectionsToField as $sectionName =&gt; $fieldName) {

//get records
$records = mysql_select($sectionName);

foreach ($records as $record) {
//turn field into an array of values
$tags = explode("\t", @$record[$fieldName]); // Modified for multiple tags associated with record.

// add tags to the count array
foreach ($tags as $tag) {
$tag = trim($tag);
if (!$tag) { continue; } // skip empty array values

   if (array_key_exists($tag, $tagsToCount)) {
   $tagsToCount[$tag]++; }
   else {
   $tagsToCount[$tag] = 1; 
      }
  }
}
}
//PHP doesn't have a shuffle function built in that maintains keys, but this version does.
function shuffle_assoc($list) { 
  if (!is_array($list)) return $list; 

  $keys = array_keys($list); 
  //shuffle($keys);  // Disable to show largest quantity at the top and smallest at the bottom.
  $random = array(); 
  foreach ($keys as $key) { 
    $random[$key] = $list[$key]; 
  }
  return $random; 
} 
?&gt;

&lt;!-- DISPLAY TAGS --&gt;
&lt;?php $tagsToCount = shuffle_assoc($tagsToCount); ?&gt;
 &lt;?php if ($tagsToCount): ?&gt;
         &lt;?php  $maximumResults = 32;
$resultCount = 0;
?&gt;
 
&lt;?php $totalTagCount = array_sum($tagsToCount); ?&gt;

&lt;?php
$min_size = 13; //smallest font size
$max_size = 22; //largest font size
$minimum_count = min(array_values($tagsToCount));
$maximum_count = max(array_values($tagsToCount));
$spread = $maximum_count - $minimum_count;
if($spread == 0) {
$spread = 1;
}
    arsort($tagsToCount);
            $tagsToCount = array_slice($tagsToCount, 0, 99);
            $tagsToCount = shuffle_assoc($tagsToCount);
foreach ($tagsToCount as $key =&gt; $value): ?&gt;

&lt;?php $size = $min_size + ($value - $minimum_count) * ($max_size - $min_size) / $spread; ?&gt;

&lt;a href="search.php?q=&lt;?php echo $key;?&gt;" class="button small hollow" style="font-size: &lt;?php echo floor($size)?&gt;px;" title='&lt;?php echo $key; ?&gt;'&gt;&lt;?php echo $key; ?&gt;&lt;/a&gt;
&lt;?php if (++$resultCount == $maximumResults) { break;}?&gt;

  &lt;?php endforeach ?&gt;
&lt;?php endif ?&gt;
&lt;div class="clearfix"&gt;&lt;/div&gt;
&lt;!-- END TAG CLOUD --&gt;</code></pre>
<p>Thank you, Mikey</p>]]></description>
          <pubDate>Fri, 07 Jul 2023 11:15:08 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246600#post2246600</guid>
        </item>
                <item>
          <title>if statement within an array and record not hidden</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246598#post2246598</link>
          <description><![CDATA[<p>Anyone have suggestions on how to get an if statement to work within an array, so that only records that are not hidden are shown in the results?</p>
<p>Below is a snippet of code for my search engine's tag cloud showing what I'm trying to accomplish... thought what I have fails to work, but I think you'll get the idea.</p>
<pre class="language-markup"><code>    $sectionsToField = array(
        'news'                =&gt; 'title' and NOT hidden,
        'media'                =&gt; 'name' and NOT hidden,
        'about'                =&gt; 'name',
        'products'            =&gt; 'name',
        'services'            =&gt; 'name',
    );</code></pre>
<p>Thanks Mickey</p>]]></description>
          <pubDate>Thu, 06 Jul 2023 17:29:21 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246598#post2246598</guid>
        </item>
                <item>
          <title>SimpleForum Attachments</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246461#post2246461</link>
          <description><![CDATA[<p>That worked perfectly.</p>
<p>Thank you Dave!!</p>]]></description>
          <pubDate>Mon, 06 Mar 2023 19:17:03 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246461#post2246461</guid>
        </item>
                <item>
          <title>SimpleForum Attachments</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246459#post2246459</link>
          <description><![CDATA[<p>Anyone have any idea how to change "SimpleForum" to open attachments into a new window when clicked?</p>]]></description>
          <pubDate>Mon, 06 Mar 2023 17:23:34 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246459#post2246459</guid>
        </item>
                <item>
          <title>Website form errors </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2246318#post2246318</link>
          <description><![CDATA[<p>Some people getting the following error message when they submit a form on a website I built.</p>
<p style="padding-left:40px;"><strong>Mail Error: No messages were sent, check mail server settings! Email delivery failed for: johndoe@example.com</strong></p>
<p>This issue effects some people, but not all. I have tested the form repeatedly, on multiple devices and browsers. However, I am not able to reproduce the error message.</p>
<p>I am using CMSB V3.55 to power the website, and under "Email Settings" I have the following assigned:</p>
<p style="padding-left:40px;"><strong>How to send mail Use PHP's built-in mail() function (default)</strong></p>
<p>So I'm stumped on what can be causing this.</p>
<p>Anyone have any suggestions to trouble shoot this?</p>
<p>Thanks, Mikey</p>]]></description>
          <pubDate>Mon, 21 Nov 2022 12:33:31 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2246318#post2246318</guid>
        </item>
                <item>
          <title>Outgoing Email access for non-admins</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245941#post2245941</link>
          <description><![CDATA[<p>Hey Daniel,</p>
<p>Their accounts are <span>"By Section"</span> access. </p>
<p>Any other suggestions?</p>]]></description>
          <pubDate>Mon, 25 Apr 2022 17:04:17 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245941#post2245941</guid>
        </item>
                <item>
          <title>Outgoing Email access for non-admins</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245938#post2245938</link>
          <description><![CDATA[<p>Hey Daniel,</p>
<p>I gave that a try, but I get the following message "<span>You don't have permissions to access this menu."</span></p>]]></description>
          <pubDate>Mon, 25 Apr 2022 13:40:41 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245938#post2245938</guid>
        </item>
                <item>
          <title>Outgoing Email access for non-admins</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245932#post2245932</link>
          <description><![CDATA[<p>Is it possible to give non-admins access to the "Outgoing Email" /admin.php?menu=_outgoing_mail section of CMSB?</p>]]></description>
          <pubDate>Mon, 25 Apr 2022 08:01:24 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245932#post2245932</guid>
        </item>
                <item>
          <title>Plugin available? Upload field - checkboxes </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245912#post2245912</link>
          <description><![CDATA[<p>I hired InteractiveTools to built the plugin for me to fit the particular needs for a website I am building. So I would recommend reaching out to InteractiveTools directly and ask them what the cost would be. </p>]]></description>
          <pubDate>Thu, 31 Mar 2022 12:14:30 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245912#post2245912</guid>
        </item>
                <item>
          <title>Upload field - checkboxes </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245884#post2245884</link>
          <description><![CDATA[<p>Hey Codee,</p>
<p>Thanks for the feedback. I ended up hiring Interactive Tools to build me a plugin to accomplish all the task I needed the uploader fields to deliver on a per/image basis. The plugin they created for me works really great and does more than I requested... bringing additional features to the plate such as the ability to activate a WYSIWYG editor on a per/image basis as well.</p>
<p>There are some great suggestions in this thread that I seriously considered, but in the end - there needed to be many possible options available on a per/image basis - all of which the client would determine at the time they would upload their photos. Thus the need for a plugin.</p>
<p>Cheers, Mickey</p>]]></description>
          <pubDate>Thu, 24 Mar 2022 11:32:25 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245884#post2245884</guid>
        </item>
                <item>
          <title>CMSB v3.56 Beta 1 (now free with PHP 8.1 support)</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245860#post2245860</link>
          <description><![CDATA[<p>Howdy Dave &amp; IT Team,</p>
<p>CMS Builder is such a great website building platform. I've used many various CMS solutions over the years - and CMS Builder is hands down my favorite, and my clients love the ease of use. I look forward to exploring the new features and rolling out new sites built on CMSB.</p>
<p>Cheers, Mikey</p>]]></description>
          <pubDate>Wed, 16 Mar 2022 13:06:22 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245860#post2245860</guid>
        </item>
                <item>
          <title>Search join title and subtitle in the titleField of my site search engine</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245822#post2245822</link>
          <description><![CDATA[<p>Thank you Daniel!!</p>]]></description>
          <pubDate>Thu, 10 Feb 2022 17:59:27 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245822#post2245822</guid>
        </item>
                <item>
          <title>Upload field - checkboxes </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245814#post2245814</link>
          <description><![CDATA[<p>Hey Daniel,</p>
<p>Thank you for the feedback. What you recommended is something I considered, but I decided to just hire you guys to build me a plugin for this - which is in development now. : )</p>]]></description>
          <pubDate>Wed, 09 Feb 2022 18:12:04 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245814#post2245814</guid>
        </item>
                <item>
          <title>Tag Cloud and Categories of Records</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245810#post2245810</link>
          <description><![CDATA[<p>Howdy folks,</p>
<p>Below is some code that loads a Tag Cloud that I use to query a site's search engine. In my <strong>news</strong>, <strong>photos</strong>, <strong>videos</strong> and <strong>events</strong> section editors I a <strong>pulldown called</strong> "<strong>categories</strong>" that I can assign a category to each record I create. I'd like to load up all the chosen categories in the tag cloud, but I can't figure out what needs to be done to load up the select for <strong>'categories:label'</strong> in the code below. Any suggestions on how to get this to work?</p>
<pre class="language-markup"><code>$tagsToCount = array();

$sectionsToField = array(
   'news'      =&gt; 'categories:label',
   'photos'    =&gt; 'categories:label',
   'videos'    =&gt; 'categories:label',
   'events'    =&gt; 'categories:label',
);

//use additional if joining tags from multiple sections
foreach($sectionsToField as $sectionName =&gt; $fieldName) {

//get records
$records = mysql_select($sectionName);

foreach ($records as $record) {
//turn field into an array of values
    $tags = explode("\t", @$record[$fieldName]); // Modified for multiple tags associated with record.

// add tags to the count array
foreach ($tags as $tag) {
$tag = trim($tag);
if (!$tag) { continue; } // skip empty array values

   if (array_key_exists($tag, $tagsToCount)) {
   $tagsToCount[$tag]++; }
   else {
   $tagsToCount[$tag] = 1; 
      }
  }
}
}
//PHP doesn't have a shuffle function built in that maintains keys, but this version does.
function shuffle_assoc($list) { 
  if (!is_array($list)) return $list; 

  $keys = array_keys($list); 
  //shuffle($keys);  // Disable to show largest quantity at the top and smallest at the bottom.
  $random = array(); 
  foreach ($keys as $key) { 
    $random[$key] = $list[$key]; 
  }
  return $random; 
} 
?&gt;

&lt;!-- DISPLAY TAGS --&gt;

&lt;?php $tagsToCount = shuffle_assoc($tagsToCount); ?&gt;
 &lt;?php if ($tagsToCount): ?&gt;
         &lt;?php  $maximumResults = 32;
$resultCount = 0;
?&gt;
 
&lt;?php $totalTagCount = array_sum($tagsToCount); ?&gt;

&lt;?php
$min_size = 13; //smallest font size
$max_size = 22; //largest font size
$minimum_count = min(array_values($tagsToCount));
$maximum_count = max(array_values($tagsToCount));
$spread = $maximum_count - $minimum_count;
if($spread == 0) {
$spread = 1;
}
    arsort($tagsToCount);
            $tagsToCount = array_slice($tagsToCount, 0, 99);
            $tagsToCount = shuffle_assoc($tagsToCount);
foreach ($tagsToCount as $key =&gt; $value): ?&gt;

&lt;?php $size = $min_size + ($value - $minimum_count) * ($max_size - $min_size) / $spread; ?&gt;
    &lt;a href="search.php?q=&lt;?php echo $key;?&gt;" class="button small hollow" style="font-size: &lt;?php echo floor($size)?&gt;px;" title='&lt;?php echo $key; ?&gt;'&gt;&lt;?php echo $key; ?&gt;&lt;/a&gt;
&lt;?php if (++$resultCount == $maximumResults) { break;}?&gt;

  &lt;?php endforeach ?&gt;
&lt;?php endif ?&gt;
&lt;div class="clearfix"&gt;&lt;/div&gt;
&lt;!-- END TAG CLOUD --&gt;</code></pre>
<p>Thanks Zicky</p>]]></description>
          <pubDate>Sat, 05 Feb 2022 18:16:31 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245810#post2245810</guid>
        </item>
                <item>
          <title>Search join title and subtitle in the titleField of my site search engine</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245809#post2245809</link>
          <description><![CDATA[<p>I have a news section that has a <strong>title</strong> and <strong>subtitle</strong> for the new articles. I need to return search results for both the title and subtitle combined together.</p>
<p>I am trying to change <strong>'titleField' =&gt; 'title',  </strong>into <strong>'titleField' =&gt; 'title.' '.subtitle,</strong> but what I have here doesn't work. It's been a long day and I'm too exhausted to think on this. Any suggestions on what I have wrong here?</p>
<pre class="language-markup"><code>$searchTables['news'] = array(
 'viewerUrl'       =&gt; 'news-article.php',
 //'titleField'      =&gt; 'title',
 'titleField'      =&gt; 'title.' '.subtitle,
 'summaryField'    =&gt; 'content',
 'searchFields'    =&gt;  array('title','summary','content','keywords','categories'),
 'field1'       =&gt; 'createdDate',
);</code></pre>
<p>Thanks, Zicky</p>]]></description>
          <pubDate>Fri, 04 Feb 2022 20:37:38 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245809#post2245809</guid>
        </item>
                <item>
          <title>Upload field - checkboxes </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245800#post2245800</link>
          <description><![CDATA[<p>Hey Karls,</p>
<p>I thought about it, but ive already used all those fields for other things. thanks for the suggestion though. </p>]]></description>
          <pubDate>Sat, 22 Jan 2022 22:40:37 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245800#post2245800</guid>
        </item>
                <item>
          <title>Google Maps - STYLES not working</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245798#post2245798</link>
          <description><![CDATA[<p>Howdy folks,</p>
<p>I have some code seen below I have used for years. Everything works fine - with the exception of the "var styles" section. The purpose of the "var styles" is to make the maps grayscale by removing the saturation of color from the map. However, this no longer appears to be working and my maps are the default color of Google maps.</p>
<p>I have attached an image showing the color I am trying to achieve. </p>
<p>Any suggestions on how to get this working again?</p>
<p>Thank Zicky</p>
<pre class="language-markup"><code>  &lt;script type="text/javascript"&gt; 
  $(window).load()
        { var styles = [
            {"stylers": [{ "saturation": -100 }]}
        ]; }
    function initialize() { 
      var latitude    = &lt;?php echo floatval(@$maprecord['latitude']); ?&gt;; 
      var longitude   = &lt;?php echo floatval(@$maprecord['longitude']); ?&gt;; 
      var mapCanvasId = 'map_canvas';
      if (latitude) {
        var mapOptions  = { mapTypeId: google.maps.MapTypeId.ROADMAP,
		    scrollwheel: false,
                    mapTypeControl: false,
                    streetViewControl: false,
		    styles: styles
					};
		//var mapOptions  = { mapTypeId: google.maps.MapTypeId.TERRAIN };
		//var mapOptions  = { mapTypeId: google.maps.MapTypeId.HYBRID };
        var map         = new google.maps.Map(document.getElementById(mapCanvasId), mapOptions);
        var latLng      = new google.maps.LatLng(latitude, longitude);
        var marker      = new google.maps.Marker({map: map, position: latLng });

        map.setCenter(latLng);
        map.setZoom(18);
      }
    }
  &lt;/script&gt;</code></pre>
]]></description>
          <pubDate>Sat, 22 Jan 2022 15:22:13 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245798#post2245798</guid>
        </item>
                <item>
          <title>Upload field - checkboxes </title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245795#post2245795</link>
          <description><![CDATA[<p>Howdy folks,</p>
<p>There's been a feature I have long wanted for the "Uploads" field, that would allow me to assign "checkbox" functions to the upload field. I'm hoping someone here may have a solution or suggestion they can share. Please see the attached images for examples of what I am trying to achieve.</p>
<p>Overview: The need for this is primarily related to website slideshows, and the need for me to specify if I want the upload's "title" and "caption" to align left, right or center in the slideshow - on a per-slide basis. For example slide one may have the text aligned left, and the second slide has text aligned center, and the third with text aligned right.</p>
<p>Thanks for any suggestions,</p>
<p>Zicky</p>]]></description>
          <pubDate>Wed, 19 Jan 2022 14:23:39 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245795#post2245795</guid>
        </item>
                <item>
          <title>array_groupBy and show categories labels.</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245485#post2245485</link>
          <description><![CDATA[<p>Thanks Deborah &amp; Steve,</p>
<p>Between your two suggestions I came up with something that works... though I wouldn't say it's clean. Basically your suggestions worked, but the code was still showing categories - even if an available category was not assigned to a document. So I wrote a little comparison to find it there's a match and if YES, then show the category. I then wrapped it in some CSS masonry columns.</p>
<pre class="language-markup"><code>&lt;div class="masonry"&gt;
&lt;?php $documentsGroupedRecords = array_groupBy($documentsRecords, 'categories', true); ?&gt;
&lt;?php foreach ($documentsGroupedRecords as $cats =&gt; $records): ?&gt; 

    &lt;div class="brick"&gt;
        
    &lt;?php foreach (getListOptions('documents', 'categories') as $value =&gt; $label): ?&gt;
        &lt;?php if ($value == $cats): ?&gt;
            &lt;h2&gt;&lt;?php echo $label; ?&gt;&lt;/h2&gt;
        &lt;?php endif; ?&gt;
    &lt;?php endforeach ?&gt;
        
    &lt;?php foreach ($records as $record): ?&gt;
        &lt;?php foreach ($record['document'] as $upload): ?&gt;
            &lt;?php $recordTitle = ucwords(strtolower($record['title'])); ?&gt;

                &lt;?php if($upload = (@$record['document'][0])){
                echo '&lt;h5&gt;&lt;a href="download.php?num='.$record['num'].'" &gt;'.$recordTitle.'&lt;/a&gt;&lt;/h5&gt;'; } ?&gt;
    
        &lt;?php endforeach; ?&gt;
    &lt;?php endforeach; ?&gt;
        
    &lt;/div&gt;
&lt;?php endforeach ?&gt;
&lt;/div&gt;</code></pre>
<p>Here's the CSS</p>
<pre class="language-markup"><code>/* @media screen based on Foundation 6 framework */
/* Small only */
@media screen and (max-width: 39.9375em) {
  .masonry {
    column-count: 1;
    column-gap: 1em;
  }
  .brick {
    display: inline-block;
    padding: 0 0 1em;
    width: 100%;
  }
}
/* Medium only */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
  .masonry {
    column-count: 2;
    column-gap: 1em;
  }
  .brick {
    display: inline-block;
    padding: 0 0 1em;
    width: 100%;
  }
}
/* Large and up */
@media screen and (min-width: 64em) {
  .masonry {
    column-count: 3;
    column-gap: 1em;
  }
  .brick {
    display: inline-block;
    padding: 0 0 1em;
    width: 100%;
  }
}</code></pre>
<p>Thanks,</p>
<p>Zicky</p>]]></description>
          <pubDate>Wed, 14 Apr 2021 12:01:15 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245485#post2245485</guid>
        </item>
              </channel>
    </rss>
  