<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Image gallery - filtering results based on category</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Image-gallery---filtering-results-based-on-category-80754</link>
        <description></description>
        <pubDate>Tue, 11 Aug 2026 13:02:38 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Image-gallery---filtering-results-based-on-category-80754" rel="self" type="application/rss+xml" />

                <item>
          <title>Image gallery - filtering results based on category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239753#post2239753</link>
          <description><![CDATA[<p>Fantastic! I updated the link code for the gallery categories to the below and now it all works perfectly. Thanks for your help :)</p>
<p><code>&lt;?php foreach ($gallery2Records as $record): ?&gt;<br />&lt;li&gt;&lt;a href="gallery_.php?category=&lt;?php echo $record['category'] ?&gt;"&gt;&lt;?php echo $record['category'] ?&gt;&lt;/a&gt;&lt;/li&gt;<br />&lt;?php endforeach ?&gt;</code></p>
]]></description>
          <pubDate>Fri, 11 Nov 2016 19:46:20 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239753#post2239753</guid>
        </item>
                <item>
          <title>Image gallery - filtering results based on category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239750#post2239750</link>
          <description><![CDATA[<p>Thanks for posting your files.</p>
<p>I have two recommendations.</p>
<p>1. On your gallery_.php page, look for </p>
<p><code>'allowSearch' =&gt; false,</code></p>
<p>and change it to:</p>
<p><code>'allowSearch' =&gt; true,</code></p>
<p>That will let you link to gallery_.php with variables in the URL like: gallery_.php?gallery=gallery</p>
<p>2. In your gallery schema, change the "<span>Use this field for option values" for your "Category" drop down to "num" instead of title. This change gets made in CMS Builder (don't just edit your schema).</span></p>
<p><span>That should get you sorted out.</span></p>
<p><span>Let me know how you make out.</span></p>
<p><span>Thanks!</span></p>]]></description>
          <pubDate>Fri, 11 Nov 2016 11:02:18 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239750#post2239750</guid>
        </item>
                <item>
          <title>Image gallery - filtering results based on category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239748#post2239748</link>
          <description><![CDATA[<p>Thanks Ross. Please see below</p>
<p>gallery.php</p>
<p><code>&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br />  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */<br />  <br />  // load viewer library<br />  $libraryPath = 'cms/lib/viewer_functions.php';<br />  $dirsToCheck = array('/home/thth3571/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 'gallery2'<br />  list($gallery2Records, $gallery2MetaData) = getRecords(array(<br />    'tableName'   =&gt; 'gallery2',<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));<br /><br />?&gt;<br /><br /><br />&lt;!doctype html&gt;<br />&lt;html lang="en"&gt;<br />&lt;head&gt;<br /><br /> &lt;meta charset="utf-8"&gt;<br /> &lt;!--[if IE]&gt;&lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;&lt;![endif]--&gt;<br /> &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /&gt;<br /> &lt;title&gt;Home&lt;/title&gt;<br /> &lt;meta name="description" content="Startups template"&gt;<br /> &lt;meta name="keywords" content="Startups template"&gt;<br /> &lt;link rel="shortcut icon" href="assets/img/favicon.ico"&gt;<br /> &lt;link rel="apple-touch-icon" href="assets/img/apple-touch-icon.jpg"&gt;<br /> &lt;link rel="apple-touch-icon" sizes="72x72" href="assets/img/apple-touch-icon-72x72.jpg"&gt;<br /> &lt;link rel="apple-touch-icon" sizes="114x114" href="assets/img/apple-touch-icon-114x114.jpg"&gt;<br />    <br />    <br />&lt;!-- Magnific Popup core CSS file --&gt;<br />&lt;link rel="stylesheet" href="<a href="http://www.thenelunefoundation.org/new/assets/magnific-popup/magnific-popup.css" rel="nofollow">http://www.thenelunefoundation.org/new/assets/magnific-popup/magnific-popup.css</a>"&gt;<br /><br />&lt;!-- jQuery 1.7.2+ or Zepto.js 1.0+ --&gt;<br />&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;<br /><br />&lt;!-- Magnific Popup core JS file --&gt;<br />&lt;script src="<a href="http://www.thenelunefoundation.org/new/assets/magnific-popup/jquery.magnific-popup.js" rel="nofollow">http://www.thenelunefoundation.org/new/assets/magnific-popup/jquery.magnific-popup.js</a>"&gt;&lt;/script&gt;    <br />    <br />    <br /> &lt;link rel="stylesheet" type="text/css" href="assets/css/custom-animations.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="assets/css/lib/font-awesome.min.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="assets/css/style.css" /&gt;<br /><br /> &lt;!--[if lt IE 9]&gt;<br /> &lt;script src="assets/js/html5shiv.js"&gt;&lt;/script&gt;<br /> &lt;script src="assets/js/respond.min.js"&gt;&lt;/script&gt;<br /> &lt;![endif]--&gt;<br />&lt;/head&gt;<br /><br />&lt;body id="blog-page" class="products-page"&gt;<br /> &lt;!-- Preloader --&gt;<br /> &lt;div class="preloader-mask"&gt;<br /> &lt;div class="preloader"&gt;&lt;div class="spin base_clr_brd"&gt;&lt;div class="clip left"&gt;&lt;div class="circle"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="gap"&gt;&lt;div class="circle"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="clip right"&gt;&lt;div class="circle"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;<br /> &lt;/div&gt;<br /><br /> &lt;!-- Header --&gt;<br /> &lt;header&gt;<br /> &lt;nav class="navigation navigation-header relative-header background-header"&gt;<br /> &lt;div class="container"&gt;<br /> &lt;div class="navigation-brand"&gt;<br /> &lt;div class="brand-logo"&gt;<br /> &lt;a href="index.html" class="logo"&gt;&lt;/a&gt;&lt;a href="index.html" class="logo logo-alt"&gt;&lt;/a&gt;<br /> &lt;/div&gt;<br /> &lt;/div&gt;<br /> &lt;button class="navigation-toggle"&gt;<br /> &lt;span class="icon-bar"&gt;&lt;/span&gt;<br /> &lt;span class="icon-bar"&gt;&lt;/span&gt;<br /> &lt;span class="icon-bar"&gt;&lt;/span&gt;<br /> &lt;/button&gt; &lt;div class="navigation-navbar collapsed"&gt;<br /> &lt;ul class="navigation-bar navigation-bar-left"&gt;<br /> &lt;li&gt;&lt;a href="#about"&gt;About&lt;/a&gt;&lt;/li&gt;<br /> &lt;li&gt;&lt;a href="#projects"&gt;Projects&lt;/a&gt;&lt;/li&gt;<br /> &lt;li&gt;&lt;a href="#sponsors"&gt;Sponsors&lt;/a&gt;&lt;/li&gt;<br />                        &lt;li&gt;&lt;a href="news.php"&gt;News&lt;/a&gt;&lt;/li&gt;<br />                        &lt;li&gt;&lt;a href="events.php"&gt;Events&lt;/a&gt;&lt;/li&gt;<br />                        &lt;li&gt;&lt;a href="gallery.php"&gt;Gallery&lt;/a&gt;&lt;/li&gt;<br />                        &lt;li&gt;&lt;a href="contact.php"&gt;Contact&lt;/a&gt;&lt;/li&gt; <br /> &lt;/ul&gt;<br /> &lt;ul class="navigation-bar navigation-bar-right"&gt;<br /> &lt;li&gt;&lt;a href="howtohelp.php"&gt;How to help&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class="featured"&gt;&lt;a class="btn btn-sm btn-outline" href="donate.php"&gt;Donate&lt;/a&gt;&lt;/li&gt;<br /> &lt;/ul&gt;<br /> &lt;/div&gt;<br /> &lt;/div&gt;<br /> &lt;/nav&gt;<br /> &lt;/header&gt;<br /><br /><br />    &lt;div class="container"&gt;<br /><br /> &lt;h3 class="highlight"&gt;GALLERY&lt;/h2&gt;<br /> &lt;p class="post-text"&gt;&lt;br&gt;<br />Pictures from our recent charity events&lt;br&gt;<br /> &lt;/p&gt;<br />                <br />                <br />&lt;?php foreach ($gallery2Records as $record): ?&gt;<br />&lt;li&gt;&lt;a href="&lt;?php echo $record['_link'] ?&gt;"&gt;&lt;?php echo $record['category'] ?&gt;&lt;/a&gt;&lt;/li&gt;<br />&lt;?php endforeach ?&gt;<br /><br />&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;<br />                <br />                <br />                &lt;/div&gt;     <br />        <br />        <br />        <br />        <br />        <br /><br /><br /><br /><br /><br /> &lt;/div&gt;<br />&lt;/div&gt;<br /><br /><br /><br /><br /> &lt;footer id="footer" class="footer light-text"&gt;<br /> &lt;div class="container"&gt;<br /> &lt;div class="footer-content row"&gt;<br /> &lt;div class="col-sm-3 col-xs-12"&gt;<br />                 <br /> &lt;ul class="list-unstyled"&gt;<br />&lt;p&gt;The NELUNE Foundation&lt;br&gt;<br />PO Box 1033,&lt;br&gt;<br />Spit Junction 2088 NSW&lt;/p&gt;<br />&lt;p&gt;&lt;strong&gt;Media Enquiries:&lt;/strong&gt;&lt;br&gt;<br />Marketing Manager&lt;br&gt;<br />NELUNE Foundation&lt;br&gt;<br />&lt;a href="mailto:info@thenelunefoundation.org"&gt;info@thenelunefoundation.org&lt;/a&gt;&lt;br&gt;<br />02 8082 8199&lt;br&gt;&lt;/p&gt;<br /><br />&lt;div class="social-wrap"&gt;<br />&lt;ul class="list-inline socials"&gt;<br /> &lt;li&gt;&lt;a href="<a href="https://www.facebook.com/nelunefoundation/" rel="nofollow">https://www.facebook.com/nelunefoundation/</a>"&gt;&lt;span class="icon icon-socialmedia-08"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br /> &lt;li&gt;&lt;a href="<a href="http://twitter.com/NeluneR" rel="nofollow">http://twitter.com/NeluneR</a>"&gt;&lt;span class="icon icon-socialmedia-07"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br /> &lt;li&gt;&lt;a href="<a href="http://www.youtube.com/channel/UCVutWJqVU8Jw0-U7MZOiAQg?feature=watch" rel="nofollow">http://www.youtube.com/channel/UCVutWJqVU8Jw0-U7MZOiAQg?feature=watch</a>"&gt;&lt;span class="icon icon-socialmedia-29"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />&lt;/ul&gt;<br />&lt;/div&gt;<br />          <br />                <br />                <br /><br /> &lt;/div&gt;<br /><br />&lt;!--<br />&lt;div class="col-sm-4 col-xs-12 border"&gt;<br />&lt;a href="#about"&gt;About&lt;/a&gt;&lt;br&gt;<br />&lt;a href="howtohelp.php"&gt;How to help&lt;/a&gt;&lt;br&gt;<br />&lt;a href="donate.php"&gt;Donate&lt;/a&gt;&lt;br&gt;<br />&lt;a href="#projects"&gt;Projects&lt;/a&gt;&lt;br&gt;<br />&lt;a href="#sponsors"&gt;Sponsors&lt;/a&gt;&lt;br&gt;<br />&lt;a href="news.php"&gt;News&lt;/a&gt;&lt;br&gt;<br />&lt;a href="events.php"&gt;Events&lt;/a&gt;&lt;br&gt;<br />&lt;a href="gallery.php"&gt;Gallery&lt;/a&gt;&lt;br&gt;<br />&lt;a href="contact.php"&gt;Contact&lt;/a&gt;&lt;br&gt;<br />&lt;/div&gt;<br /><br />                <br />&lt;div class="col-sm-3 col-xs-12"&gt;<br />&lt;/div&gt;<br />--&gt; <br />                <br />                <br /> &lt;/div&gt;<br /> &lt;/div&gt;<br />        <br />        <br /> &lt;div class="copyright"&gt;© &lt;script type="text/javascript"&gt;<br />  document.write(new Date().getFullYear());<br />&lt;/script&gt; The NELUNE Foundation. All rights reserved&lt;/div&gt;<br /> &lt;/footer&gt;<br /><br /> &lt;div class="back-to-top"&gt;&lt;i class="fa fa-angle-up fa-3x"&gt;&lt;/i&gt;&lt;/div&gt;<br /><br /> &lt;!--[if lt IE 9]&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery-1.11.3.min.js?ver=1"&gt;&lt;/script&gt;<br /> &lt;![endif]--&gt;<br /> &lt;!--[if (gte IE 9) | (!IE)]&gt;&lt;!--&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery-2.1.4.min.js?ver=1"&gt;&lt;/script&gt;<br /> &lt;!--&lt;![endif]--&gt;<br /><br /> &lt;script type="text/javascript" src="assets/js/bootstrap.min.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.flexslider-min.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.appear.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.plugin.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.countdown.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.waypoints.min.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.validate.min.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/toastr.min.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/startuply.js"&gt;&lt;/script&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /></code></p>
<p>gallery_.php</p>
<p><code>&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br />  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */<br />  <br />  // load viewer library<br />  $libraryPath = 'cms/lib/viewer_functions.php';<br />  $dirsToCheck = array('/home/thth3571/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 'gallery2'<br />  list($gallery2Records, $gallery2MetaData) = getRecords(array(<br />    'tableName'   =&gt; 'gallery2',<br />    'loadUploads' =&gt; true,<br />    'allowSearch' =&gt; false,<br />  ));<br /><br />?&gt;<br /><br />&lt;!doctype html&gt;<br />&lt;html lang="en"&gt;<br />&lt;head&gt;<br /><br /> &lt;meta charset="utf-8"&gt;<br /> &lt;!--[if IE]&gt;&lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;&lt;![endif]--&gt;<br /> &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /&gt;<br /> &lt;title&gt;Home&lt;/title&gt;<br /> &lt;meta name="description" content="Startups template"&gt;<br /> &lt;meta name="keywords" content="Startups template"&gt;<br /> &lt;link rel="shortcut icon" href="assets/img/favicon.ico"&gt;<br /> &lt;link rel="apple-touch-icon" href="assets/img/apple-touch-icon.jpg"&gt;<br /> &lt;link rel="apple-touch-icon" sizes="72x72" href="assets/img/apple-touch-icon-72x72.jpg"&gt;<br /> &lt;link rel="apple-touch-icon" sizes="114x114" href="assets/img/apple-touch-icon-114x114.jpg"&gt;<br />    <br />    <br />&lt;!-- Magnific Popup core CSS file --&gt;<br />&lt;link rel="stylesheet" href="<a href="http://www.thenelunefoundation.org/new/assets/magnific-popup/magnific-popup.css" rel="nofollow">http://www.thenelunefoundation.org/new/assets/magnific-popup/magnific-popup.css</a>"&gt;<br /><br />&lt;!-- jQuery 1.7.2+ or Zepto.js 1.0+ --&gt;<br />&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;<br /><br />&lt;!-- Magnific Popup core JS file --&gt;<br />&lt;script src="<a href="http://www.thenelunefoundation.org/new/assets/magnific-popup/jquery.magnific-popup.js" rel="nofollow">http://www.thenelunefoundation.org/new/assets/magnific-popup/jquery.magnific-popup.js</a>"&gt;&lt;/script&gt;    <br />    <br />    <br /> &lt;link rel="stylesheet" type="text/css" href="assets/css/custom-animations.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="assets/css/lib/font-awesome.min.css" /&gt;<br /> &lt;link rel="stylesheet" type="text/css" href="assets/css/style.css" /&gt;<br /><br /> &lt;!--[if lt IE 9]&gt;<br /> &lt;script src="assets/js/html5shiv.js"&gt;&lt;/script&gt;<br /> &lt;script src="assets/js/respond.min.js"&gt;&lt;/script&gt;<br /> &lt;![endif]--&gt;<br />&lt;/head&gt;<br /><br />&lt;body id="blog-page" class="products-page"&gt;<br /> &lt;!-- Preloader --&gt;<br /> &lt;div class="preloader-mask"&gt;<br /> &lt;div class="preloader"&gt;&lt;div class="spin base_clr_brd"&gt;&lt;div class="clip left"&gt;&lt;div class="circle"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="gap"&gt;&lt;div class="circle"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="clip right"&gt;&lt;div class="circle"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;<br /> &lt;/div&gt;<br /><br /> &lt;!-- Header --&gt;<br /> &lt;header&gt;<br /> &lt;nav class="navigation navigation-header relative-header background-header"&gt;<br /> &lt;div class="container"&gt;<br /> &lt;div class="navigation-brand"&gt;<br /> &lt;div class="brand-logo"&gt;<br /> &lt;a href="index.html" class="logo"&gt;&lt;/a&gt;&lt;a href="index.html" class="logo logo-alt"&gt;&lt;/a&gt;<br /> &lt;/div&gt;<br /> &lt;/div&gt;<br /> &lt;button class="navigation-toggle"&gt;<br /> &lt;span class="icon-bar"&gt;&lt;/span&gt;<br /> &lt;span class="icon-bar"&gt;&lt;/span&gt;<br /> &lt;span class="icon-bar"&gt;&lt;/span&gt;<br /> &lt;/button&gt; &lt;div class="navigation-navbar collapsed"&gt;<br /> &lt;ul class="navigation-bar navigation-bar-left"&gt;<br /> &lt;li&gt;&lt;a href="#about"&gt;About&lt;/a&gt;&lt;/li&gt;<br /> &lt;li&gt;&lt;a href="#projects"&gt;Projects&lt;/a&gt;&lt;/li&gt;<br /> &lt;li&gt;&lt;a href="#sponsors"&gt;Sponsors&lt;/a&gt;&lt;/li&gt;<br />                        &lt;li&gt;&lt;a href="news.php"&gt;News&lt;/a&gt;&lt;/li&gt;<br />                        &lt;li&gt;&lt;a href="events.php"&gt;Events&lt;/a&gt;&lt;/li&gt;<br />                        &lt;li&gt;&lt;a href="gallery.php"&gt;Gallery&lt;/a&gt;&lt;/li&gt;<br />                        &lt;li&gt;&lt;a href="contact.php"&gt;Contact&lt;/a&gt;&lt;/li&gt; <br /> &lt;/ul&gt;<br /> &lt;ul class="navigation-bar navigation-bar-right"&gt;<br /> &lt;li&gt;&lt;a href="howtohelp.php"&gt;How to help&lt;/a&gt;&lt;/li&gt;<br /> &lt;li class="featured"&gt;&lt;a class="btn btn-sm btn-outline" href="donate.php"&gt;Donate&lt;/a&gt;&lt;/li&gt;<br /> &lt;/ul&gt;<br /> &lt;/div&gt;<br /> &lt;/div&gt;<br /> &lt;/nav&gt;<br /> &lt;/header&gt;<br /><br /><br />    &lt;div class="container"&gt;<br /> &lt;h3 class="highlight"&gt;GALLERY&lt;/h3&gt;                <br />&lt;br&gt;<br /><br /> &lt;div class="product-list row list-view"&gt;<br /><br />&lt;?php foreach ($gallery2Records as $record): ?&gt;<br />&lt;div class="product col-md-12"&gt;<br /> &lt;div class="product-inner"&gt;<br />                <br />&lt;div class="product-image-wrapper"&gt;<br />&lt;h5 class="nomargin"&gt;&lt;?php echo htmlencode($record['category']) ?&gt; - &lt;?php echo htmlencode($record['subcategory']) ?&gt;&lt;/h5&gt;<br />&lt;p class="gallery_desc"&gt;Date: &lt;?php echo date("D, M jS, Y g:i:s a", strtotime($record['date'])) ?&gt;&lt;br/&gt;<br />Location: &lt;?php echo htmlencode($record['location']) ?&gt;&lt;br/&gt;<br />Photographer credit: &lt;?php echo htmlencode($record['photographer_credit']) ?&gt;&lt;br&gt;&lt;br&gt;<br />&lt;?php echo htmlencode($record['comments']) ?&gt;&lt;/p&gt;<br />&lt;/div&gt;  <br />   <br />&lt;div class="product-category"&gt;<br />&lt;div class="gallery"&gt;<br />&lt;?php foreach ($record['photos'] as $index =&gt; $upload): ?&gt;<br />&lt;span class="recent-posts-item-image"&gt;<br />&lt;a href="&lt;?php echo $upload['urlPath'] ?&gt;" title="&lt;?php echo htmlencode($record['photographer_credit']) ?&gt;"&gt;&lt;img src="&lt;?php echo $upload['urlPath'] ?&gt;" height="100" /&gt;&lt;/a&gt;<br />&lt;/span&gt;<br />&lt;?php endforeach ?&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />      <br />       &lt;script type="text/javascript"&gt;<br />$('.gallery').each(function() { // the containers for all your galleries<br />    $(this).magnificPopup({<br />        delegate: 'a', // the selector for gallery item<br />        type: 'image',<br />        gallery: {<br />          enabled:true<br />        }<br />    });<br />});<br />    &lt;/script&gt;<br /><br /><br /><br /> &lt;/div&gt;<br />                &lt;/div&gt;<br />&lt;?php endforeach ?&gt;<br /><br /><br /><br /><br />            <br />             <br /><br /><br /> &lt;/div&gt;<br />                <br />                <br />                &lt;/div&gt;     <br />        <br />        <br />        <br />        <br />        <br /><br /><br /><br /><br /><br /> &lt;/div&gt;<br />&lt;/div&gt;<br /><br /><br /><br /><br /> &lt;footer id="footer" class="footer light-text"&gt;<br /> &lt;div class="container"&gt;<br /> &lt;div class="footer-content row"&gt;<br /> &lt;div class="col-sm-3 col-xs-12"&gt;<br />                 <br /> &lt;ul class="list-unstyled"&gt;<br />&lt;p&gt;The NELUNE Foundation&lt;br&gt;<br />PO Box 1033,&lt;br&gt;<br />Spit Junction 2088 NSW&lt;/p&gt;<br />&lt;p&gt;&lt;strong&gt;Media Enquiries:&lt;/strong&gt;&lt;br&gt;<br />Marketing Manager&lt;br&gt;<br />NELUNE Foundation&lt;br&gt;<br />&lt;a href="mailto:info@thenelunefoundation.org"&gt;info@thenelunefoundation.org&lt;/a&gt;&lt;br&gt;<br />02 8082 8199&lt;br&gt;&lt;/p&gt;<br /><br />&lt;div class="social-wrap"&gt;<br />&lt;ul class="list-inline socials"&gt;<br /> &lt;li&gt;&lt;a href="<a href="https://www.facebook.com/nelunefoundation/" rel="nofollow">https://www.facebook.com/nelunefoundation/</a>"&gt;&lt;span class="icon icon-socialmedia-08"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br /> &lt;li&gt;&lt;a href="<a href="http://twitter.com/NeluneR" rel="nofollow">http://twitter.com/NeluneR</a>"&gt;&lt;span class="icon icon-socialmedia-07"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br /> &lt;li&gt;&lt;a href="<a href="http://www.youtube.com/channel/UCVutWJqVU8Jw0-U7MZOiAQg?feature=watch" rel="nofollow">http://www.youtube.com/channel/UCVutWJqVU8Jw0-U7MZOiAQg?feature=watch</a>"&gt;&lt;span class="icon icon-socialmedia-29"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />&lt;/ul&gt;<br />&lt;/div&gt;<br />          <br />                <br />                <br /><br /> &lt;/div&gt;<br /><br />&lt;!--<br />&lt;div class="col-sm-4 col-xs-12 border"&gt;<br />&lt;a href="#about"&gt;About&lt;/a&gt;&lt;br&gt;<br />&lt;a href="howtohelp.php"&gt;How to help&lt;/a&gt;&lt;br&gt;<br />&lt;a href="donate.php"&gt;Donate&lt;/a&gt;&lt;br&gt;<br />&lt;a href="#projects"&gt;Projects&lt;/a&gt;&lt;br&gt;<br />&lt;a href="#sponsors"&gt;Sponsors&lt;/a&gt;&lt;br&gt;<br />&lt;a href="news.php"&gt;News&lt;/a&gt;&lt;br&gt;<br />&lt;a href="events.php"&gt;Events&lt;/a&gt;&lt;br&gt;<br />&lt;a href="gallery.php"&gt;Gallery&lt;/a&gt;&lt;br&gt;<br />&lt;a href="contact.php"&gt;Contact&lt;/a&gt;&lt;br&gt;<br />&lt;/div&gt;<br /><br />                <br />&lt;div class="col-sm-3 col-xs-12"&gt;<br />&lt;/div&gt;<br />--&gt; <br />                <br />                <br /> &lt;/div&gt;<br /> &lt;/div&gt;<br />        <br />        <br /> &lt;div class="copyright"&gt;© &lt;script type="text/javascript"&gt;<br />  document.write(new Date().getFullYear());<br />&lt;/script&gt; The NELUNE Foundation. All rights reserved&lt;/div&gt;<br /> &lt;/footer&gt;<br /><br /> &lt;div class="back-to-top"&gt;&lt;i class="fa fa-angle-up fa-3x"&gt;&lt;/i&gt;&lt;/div&gt;<br /><br /> &lt;!--[if lt IE 9]&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery-1.11.3.min.js?ver=1"&gt;&lt;/script&gt;<br /> &lt;![endif]--&gt;<br /> &lt;!--[if (gte IE 9) | (!IE)]&gt;&lt;!--&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery-2.1.4.min.js?ver=1"&gt;&lt;/script&gt;<br /> &lt;!--&lt;![endif]--&gt;<br /><br /> &lt;script type="text/javascript" src="assets/js/bootstrap.min.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.flexslider-min.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.appear.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.plugin.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.countdown.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.waypoints.min.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/jquery.validate.min.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/toastr.min.js"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript" src="assets/js/startuply.js"&gt;&lt;/script&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /></code></p>


<p>Gallery categories schema</p>
<p><code>&lt;?php /* This is a PHP data file */ if (!@$LOADSTRUCT) { die("This is not a program file."); }<br />return array (<br />  '_detailPage' =&gt; '',<br />  '_disableAdd' =&gt; '0',<br />  '_disableErase' =&gt; '0',<br />  '_disableView' =&gt; '1',<br />  '_filenameFields' =&gt; 'title',<br />  '_hideRecordsFromDisabledAccounts' =&gt; '0',<br />  '_listPage' =&gt; '',<br />  '_maxRecords' =&gt; '',<br />  '_maxRecordsPerUser' =&gt; '',<br />  '_tableName' =&gt; 'gallery_categories',<br />  'listPageFields' =&gt; 'dragSortOrder, title',<br />  'listPageOrder' =&gt; 'dragSortOrder DESC',<br />  'listPageSearchFields' =&gt; '_all_',<br />  'menuName' =&gt; 'Gallery categories',<br />  'menuOrder' =&gt; 1478666474,<br />  'menuType' =&gt; 'multi',<br />  'num' =&gt; array(<br />    'order' =&gt; '1',<br />    'type' =&gt; 'none',<br />    'label' =&gt; 'Record Number',<br />    'isSystemField' =&gt; '1',<br />  ),<br />  'createdDate' =&gt; array(<br />    'order' =&gt; '2',<br />    'type' =&gt; 'none',<br />    'label' =&gt; 'Created',<br />    'isSystemField' =&gt; '1',<br />  ),<br />  'createdByUserNum' =&gt; array(<br />    'order' =&gt; '3',<br />    'type' =&gt; 'none',<br />    'label' =&gt; 'Created By',<br />    'isSystemField' =&gt; '1',<br />  ),<br />  'updatedDate' =&gt; array(<br />    'order' =&gt; '4',<br />    'type' =&gt; 'none',<br />    'label' =&gt; 'Last Updated',<br />    'isSystemField' =&gt; '1',<br />  ),<br />  'updatedByUserNum' =&gt; array(<br />    'order' =&gt; '5',<br />    'type' =&gt; 'none',<br />    'label' =&gt; 'Last Updated By',<br />    'isSystemField' =&gt; '1',<br />  ),<br />  'dragSortOrder' =&gt; array(<br />    'order' =&gt; '6',<br />    'label' =&gt; 'Order',<br />    'type' =&gt; 'none',<br />  ),<br />  'title' =&gt; array(<br />    'order' =&gt; '7',<br />    'label' =&gt; 'Title',<br />    'type' =&gt; 'textfield',<br />    'defaultValue' =&gt; '',<br />    'description' =&gt; '',<br />    'fieldWidth' =&gt; '',<br />    'isPasswordField' =&gt; '0',<br />    'isRequired' =&gt; '1',<br />    'isUnique' =&gt; '0',<br />    'minLength' =&gt; '',<br />    'maxLength' =&gt; '',<br />    'charsetRule' =&gt; '',<br />    'charset' =&gt; '',<br />  ),<br />);<br />?&gt;</code></p>


<p>Gallery schema</p>
<p><code>&lt;?php /* This is a PHP data file */ if (!@$LOADSTRUCT) { die("This is not a program file."); }<br />return array (<br />  '_detailPage' =&gt; '/new/gallery_.php',<br />  '_disableAdd' =&gt; '0',<br />  '_disableErase' =&gt; '0',<br />  '_disableModify' =&gt; '0',<br />  '_disablePreview' =&gt; '0',<br />  '_disableView' =&gt; '1',<br />  '_filenameFields' =&gt; 'category, subcategory',<br />  '_hideRecordsFromDisabledAccounts' =&gt; '0',<br />  '_indent' =&gt; '0',<br />  '_listPage' =&gt; '',<br />  '_maxRecords' =&gt; '',<br />  '_maxRecordsPerUser' =&gt; '',<br />  '_perPageDefault' =&gt; '25',<br />  '_previewPage' =&gt; '',<br />  '_requiredPlugins' =&gt; '',<br />  '_tableName' =&gt; 'gallery2',<br />  'listPageFields' =&gt; 'dragSortOrder, Category, subcategory',<br />  'listPageOrder' =&gt; 'dragSortOrder DESC',<br />  'listPageSearchFields' =&gt; '_all_',<br />  'menuHidden' =&gt; '0',<br />  'menuName' =&gt; 'Gallery',<br />  'menuOrder' =&gt; '0000000020',<br />  'menuType' =&gt; 'multi',<br />  'num' =&gt; array(<br />    'order' =&gt; 1,<br />    'type' =&gt; 'none',<br />    'label' =&gt; 'Record Number',<br />    'isSystemField' =&gt; '1',<br />  ),<br />  'createdDate' =&gt; array(<br />    'order' =&gt; 2,<br />    'type' =&gt; 'none',<br />    'label' =&gt; 'Created',<br />    'isSystemField' =&gt; '1',<br />  ),<br />  'createdByUserNum' =&gt; array(<br />    'order' =&gt; 3,<br />    'type' =&gt; 'none',<br />    'label' =&gt; 'Created By',<br />    'isSystemField' =&gt; '1',<br />  ),<br />  'updatedDate' =&gt; array(<br />    'order' =&gt; 4,<br />    'type' =&gt; 'none',<br />    'label' =&gt; 'Last Updated',<br />    'isSystemField' =&gt; '1',<br />  ),<br />  'updatedByUserNum' =&gt; array(<br />    'order' =&gt; 5,<br />    'type' =&gt; 'none',<br />    'label' =&gt; 'Last Updated By',<br />    'isSystemField' =&gt; '1',<br />  ),<br />  'category' =&gt; array(<br />    'order' =&gt; '6',<br />    'label' =&gt; 'Category',<br />    'type' =&gt; 'list',<br />    'defaultValue' =&gt; '',<br />    'fieldPrefix' =&gt; '',<br />    'description' =&gt; '',<br />    'isRequired' =&gt; '0',<br />    'isUnique' =&gt; '0',<br />    'listType' =&gt; 'pulldown',<br />    'optionsType' =&gt; 'table',<br />    'optionsTablename' =&gt; 'gallery_categories',<br />    'optionsValueField' =&gt; 'title',<br />    'optionsLabelField' =&gt; 'title',<br />  ),<br />  'dragSortOrder' =&gt; array(<br />    'order' =&gt; 7,<br />    'label' =&gt; 'Order',<br />    'type' =&gt; 'none',<br />  ),<br />  'subcategory' =&gt; array(<br />    'order' =&gt; '8',<br />    'label' =&gt; 'Sub category',<br />    'type' =&gt; 'textfield',<br />    'defaultValue' =&gt; '',<br />    'fieldPrefix' =&gt; '',<br />    'description' =&gt; '',<br />    'fieldWidth' =&gt; '',<br />    'isPasswordField' =&gt; '0',<br />    'isRequired' =&gt; '1',<br />    'isUnique' =&gt; '0',<br />    'minLength' =&gt; '',<br />    'maxLength' =&gt; '',<br />    'charsetRule' =&gt; '',<br />    'charset' =&gt; '',<br />  ),<br />  'date' =&gt; array(<br />    'order' =&gt; 9,<br />    'label' =&gt; 'Date',<br />    'type' =&gt; 'date',<br />    'fieldPrefix' =&gt; '',<br />    'description' =&gt; '',<br />    'isRequired' =&gt; '0',<br />    'isUnique' =&gt; '0',<br />    'defaultDate' =&gt; '',<br />    'defaultDateString' =&gt; '2016-01-01 00:00:00',<br />    'showTime' =&gt; '0',<br />    'showSeconds' =&gt; '0',<br />    'use24HourFormat' =&gt; '0',<br />    'yearRangeStart' =&gt; '',<br />    'yearRangeEnd' =&gt; '',<br />  ),<br />  'location' =&gt; array(<br />    'order' =&gt; 10,<br />    'label' =&gt; 'Location',<br />    'type' =&gt; 'textfield',<br />    'defaultValue' =&gt; '',<br />    'fieldPrefix' =&gt; '',<br />    'description' =&gt; '',<br />    'fieldWidth' =&gt; '',<br />    'isPasswordField' =&gt; '0',<br />    'isRequired' =&gt; '0',<br />    'isUnique' =&gt; '0',<br />    'minLength' =&gt; '',<br />    'maxLength' =&gt; '',<br />    'charsetRule' =&gt; '',<br />    'charset' =&gt; '',<br />  ),<br />  'photographer_credit' =&gt; array(<br />    'order' =&gt; 11,<br />    'label' =&gt; 'Photographer credit',<br />    'type' =&gt; 'textfield',<br />    'defaultValue' =&gt; '',<br />    'fieldPrefix' =&gt; '',<br />    'description' =&gt; '',<br />    'fieldWidth' =&gt; '',<br />    'isPasswordField' =&gt; '0',<br />    'isRequired' =&gt; '0',<br />    'isUnique' =&gt; '0',<br />    'minLength' =&gt; '',<br />    'maxLength' =&gt; '',<br />    'charsetRule' =&gt; '',<br />    'charset' =&gt; '',<br />  ),<br />  'comments' =&gt; array(<br />    'order' =&gt; 12,<br />    'label' =&gt; 'Comments',<br />    'type' =&gt; 'textbox',<br />    'defaultContent' =&gt; '',<br />    'fieldPrefix' =&gt; '',<br />    'description' =&gt; '',<br />    'isRequired' =&gt; '0',<br />    'isUnique' =&gt; '0',<br />    'minLength' =&gt; '',<br />    'maxLength' =&gt; '',<br />    'fieldHeight' =&gt; '',<br />    'autoFormat' =&gt; '1',<br />  ),<br />  'photos' =&gt; array(<br />    'order' =&gt; 13,<br />    'label' =&gt; 'Photos',<br />    'type' =&gt; 'upload',<br />    'fieldPrefix' =&gt; '',<br />    'description' =&gt; '',<br />    'isRequired' =&gt; '0',<br />    'allowedExtensions' =&gt; 'gif,jpg,png,wmv,mov,swf,pdf',<br />    'checkMaxUploadSize' =&gt; '1',<br />    'maxUploadSizeKB' =&gt; '5120',<br />    'checkMaxUploads' =&gt; '1',<br />    'maxUploads' =&gt; '25',<br />    'resizeOversizedImages' =&gt; '1',<br />    'maxImageHeight' =&gt; '800',<br />    'maxImageWidth' =&gt; '600',<br />    'createThumbnails' =&gt; '1',<br />    'maxThumbnailHeight' =&gt; '150',<br />    'maxThumbnailWidth' =&gt; '150',<br />    'createThumbnails2' =&gt; '0',<br />    'maxThumbnailHeight2' =&gt; '150',<br />    'maxThumbnailWidth2' =&gt; '150',<br />    'createThumbnails3' =&gt; '0',<br />    'maxThumbnailHeight3' =&gt; '150',<br />    'maxThumbnailWidth3' =&gt; '150',<br />    'createThumbnails4' =&gt; '0',<br />    'maxThumbnailHeight4' =&gt; '150',<br />    'maxThumbnailWidth4' =&gt; '150',<br />    'useCustomUploadDir' =&gt; '0',<br />    'customUploadDir' =&gt; '',<br />    'customUploadUrl' =&gt; '',<br />    'infoField1' =&gt; '',<br />    'infoField2' =&gt; '',<br />    'infoField3' =&gt; '',<br />    'infoField4' =&gt; '',<br />    'infoField5' =&gt; '',<br />  ),<br />);<br />?&gt;</code></p>
]]></description>
          <pubDate>Thu, 10 Nov 2016 15:29:35 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239748#post2239748</guid>
        </item>
                <item>
          <title>Image gallery - filtering results based on category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239742#post2239742</link>
          <description><![CDATA[<p>Hi there.</p>
<p>Thanks for posting</p>
<p>Could you post a copy of both your pages (not just a link to them) so I can review the code?</p>
<p>Also, if you know how, could you post a copy of the schema files for your two sections. They will be in /data/schemas/.  Having the schemas gives me more options on narrowing everything down. The schemas aren't required though so if it doesn't work to post them, don't worry; I can still work with just the pages.</p>
<p>Thanks!</p>]]></description>
          <pubDate>Thu, 10 Nov 2016 12:53:54 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239742#post2239742</guid>
        </item>
                <item>
          <title>Image gallery - filtering results based on category</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2239739#post2239739</link>
          <description><![CDATA[<p>I am trying to create an image gallery that has a main category, and a list of sub items underneath each e.g.<br /><br />The Lilac Ball<br />- 2016<br />- 2015<br /><br />News and Media<br />- Something<br />- Something else</p>
<p>On the gallery page, I want to list the main categories only, and then when you click on that link you will see the items under it eg</p>
<p>&gt;&gt; on main gallery page<br /><br />The Lilac Ball<br />News and Media<br /><br />&gt;&gt; Once you have clicked on one of the above, The Lilac Ball for example you'd see:<br /><br />2016<br />2015</p>
<p><br />I've created 2 sections in CMBS. Gallery categories (the main category) and Gallery.<br /><br />GC is a list of category names that I am pulling into a dropdown field in the Gallery section. This is so the website owner can add new categories later themselves.<br /><br />I have created a gallery page that lists the gallery categories (using the gallery section, not the GC section) and then added the link. I also created a list page for the gallery section to list all the items. It is currently not working though and is listing all of the items from every category no matter what you click on.</p>
<p>Can anyone give me a heads up to the code I'm missing? I thought I could append something like category_keyword=The%20Lilac%20Ball to the URL but that didn't work either. Ideally it would be done dynamically in the page because I'd like the site owner to be able to add new categories without me having to make updates for them</p>
<p>Here are my pages so far:<br /><a href="http://www.thenelunefoundation.org/new/gallery.php" rel="nofollow">http://www.thenelunefoundation.org/new/gallery.php</a><br /><a href="http://www.thenelunefoundation.org/new/gallery_.php" rel="nofollow">http://www.thenelunefoundation.org/new/gallery_.php</a></p>
<p>If the title on gallery_.php could also update to whatever category you had clicked on, that would be awesome but if it's too tricky it's no biggy</p>]]></description>
          <pubDate>Wed, 09 Nov 2016 19:45:56 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2239739#post2239739</guid>
        </item>
              </channel>
    </rss>
  