<?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%3Abuttermilk</link>
        <description></description>
        <pubDate>Tue, 28 Apr 2026 04:06:43 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3Abuttermilk&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>custom upload directories</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234503#post2234503</link>
          <description><![CDATA[<p>Well, after leaving the problem and coming back to it, I was surprised to find it working. I'm not sure what happened, but it's uploading properly now. These are the upload directories that worked:</p>
<p>/home/[user]/public_html/images/residential/<br />/images/residential/</p>
<p>Craig, I've had the same flash uploader problems you've experienced. That is, I cannot use the flash uploader when on Firefox (I get a message asking me to disable it).</p>
<p>Best,</p>
<p>Ian</p>]]></description>
          <pubDate>Tue, 22 Jul 2014 05:06:13 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234503#post2234503</guid>
        </item>
                <item>
          <title>custom upload directories</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2234475#post2234475</link>
          <description><![CDATA[<p>Hello all,</p>
<p>I can't seem to get custom upload directories working on version 2.62. I never had this issue with previous versions, so maybe something has changed that I've missed.</p>
<p>My Website Root Directory is "/home/studioz/public_html" and I'm trying to upload images to  the<strong> /images/</strong> directory in the root folder.</p>
<p>My custom upload folder setting in the section editor is set like this:</p>
<p>directory path: <strong>/home/studioz/public_html/images/</strong><br />folder url: <strong>/images/</strong></p>
<p>I'm getting two kinds of errors. One tells me to turn off flash uploader, the other is that nothing actually uploads and the image preview is an empty image box.</p>
<p>Am I making a common mistake here? These settings worked on previous versions (unless I'm on crazy pills here). Somebody please set me straight.</p>
<p>Ian</p>
]]></description>
          <pubDate>Wed, 16 Jul 2014 21:13:38 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2234475#post2234475</guid>
        </item>
                <item>
          <title>subnav loop: calculate if last entry</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2218842#post2218842</link>
          <description><![CDATA[Thanks for this list! It's very handy.<br /><br />Ian]]></description>
          <pubDate>Tue, 18 Dec 2012 11:48:24 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2218842#post2218842</guid>
        </item>
                <item>
          <title>subnav loop: calculate if last entry</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2218821#post2218821</link>
          <description><![CDATA[Thanks for taking the time to help me out, Tim.  I've never used the &quot;last-child&quot; css selector.<br /><br />I ended up including the following in my css for anybody else who's interested:<br /><br />++++++++++++++++++++++++<br />.pipe {<br />	color:#999;	<br />}<br /><br />.pipe:last-child {<br />	display:none;	<br />}<br /><br />+++++++++++++++++<br /><br />And this is the revised php code:<br /><br />+++++++++++++++++<br />           	&lt;?php foreach ($rootsRecords as $listRecord): ?&gt;<br />      		<br />		&lt;?php $isSelected = ($listRecord['num'] == $detailRecord['num']); ?&gt;<br />      		<br />		&lt;?php if ($isSelected):?&gt;         	<br />                &lt;div class=&quot;selected&quot;&gt;&lt;?php echo ($listRecord['name']) ?&gt;&lt;/div&gt; &lt;span class=&quot;pipe&quot;&gt;|&lt;/span&gt;<br />                <br />                &lt;?php else: ?&gt;<br />                &lt;a href=&quot;&lt;?php echo htmlencode($listRecord['_link']) ?&gt;&quot;&gt;&lt;?php echo htmlencode($listRecord['name']) ?&gt;&lt;/a&gt; &lt;span class=&quot;pipe&quot;&gt;|&lt;/span&gt;<br />                <br />                &lt;?php endif; ?&gt;<br />            <br />		&lt;?php endforeach ?&gt;<br /><br />    		&lt;?php if (!$rootsRecords): ?&gt;<br />      		No records were found!&lt;br/&gt;&lt;br/&gt;<br />    		&lt;?php endif ?&gt;<br /><br />++++++++++++++++++++++++++++++++<br /><br />I'm still checking to see if this is the proper way to do it, but it does seem to work on the browsers I have installed (as far as I can tell).<br /><br />Best,<br /><br />Ian]]></description>
          <pubDate>Sun, 16 Dec 2012 14:46:06 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2218821#post2218821</guid>
        </item>
                <item>
          <title>subnav loop: calculate if last entry</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2218813#post2218813</link>
          <description><![CDATA[Hello all,<br /><br />The following is code that is more or less working on a combo page. It loops through a &quot;category&quot; section to display subnavigation:<br />            <br />+++++++++++++++++++++++++++<br />&lt;div class=&quot;subnav&quot;&gt; <br />			<br />           	&lt;?php foreach ($rootsRecords as $listRecord): ?&gt;<br />      		<br />		&lt;?php $isSelected = ($listRecord['num'] == $detailRecord['num']); ?&gt;<br />      		<br />				&lt;?php if ($isSelected):?&gt;         	<br />                                      &lt;div class=&quot;selected&quot;&gt;&lt;?php echo ($listRecord['name']) ?&gt;&lt;/div&gt; |<br />                <br />                                &lt;?php else: ?&gt;<br />                                &lt;a href=&quot;&lt;?php echo htmlencode($listRecord['_link']) ?&gt;&quot;&gt;&lt;?php echo htmlencode($listRecord['name']) ?&gt;&lt;/a&gt; |<br />                <br />                                &lt;?php endif; ?&gt;<br />            <br />	        &lt;?php endforeach ?&gt;<br /><br />    		&lt;?php if (!$rootsRecords): ?&gt;<br />      		No records were found!&lt;br/&gt;&lt;br/&gt;<br />    		&lt;?php endif ?&gt;<br />            <br /><br />&lt;!--ends subnav--&gt;<br />&lt;/div&gt;<br />++++++++++++++++++++++<br /><br />The results are here: http://imagineotherwise.ca/roots.php?Cherokee-Fires-2<br /><br />You can see the following is displayed:<br /><br />&quot;A Brief Biography | Cherokee Fires | Places I've Called Home | Advocacy and Activism | My Coat of Arms | &quot;<br /><br />My problem is that I'd like to not have the pipe character &quot;|&quot; displayed after the final entry (&quot;My Coat of Arms&quot;). All entries are on the same category level. I know I probably need to nest another &quot;if&quot; statement in there that asks &quot;is this the last entry in this section,&quot; but I just can't figure out how to do this. Any help would be much appreciated!<br /><br />Thanks,<br /><br />Ian]]></description>
          <pubDate>Sat, 15 Dec 2012 15:45:04 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2218813#post2218813</guid>
        </item>
                <item>
          <title>error after changing admin name and email</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2214951#post2214951</link>
          <description><![CDATA[Hello all,<br /><br />Hope somebody can eliminate a concern for me.<br /><br />Is it possible to get database errors after changing the name associated with the admin account and its email, or do they not have any bearing on the link to the database?  I have an unexplained error (attached) that appeared after I did just this (though it could be purely coincidental).  <br /><br />Of course, it could also be a server issue as suggested by the message.<br /><br />Related question: since I have ftp access, can I manually edit some config file back to what it was to see if this fixes anything?  Where would I find this?<br /><br />Thanks is advance!<br /><br />Ian]]></description>
          <pubDate>Mon, 30 Jan 2012 19:21:07 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2214951#post2214951</guid>
        </item>
                <item>
          <title>user accounts and category editors</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2213447#post2213447</link>
          <description><![CDATA[Hello all,<br />I'm trying to set up specific access levels in the &quot;user accounts&quot; section of my site.  Thing is, I've noticed that in all the category editors the only choices I have are &quot;none&quot; and &quot;Editor&quot;; that is, I can't see any &quot;Author&quot; or &quot;Viewer&quot; choices in the pulldown.<br /><br />edit: I'm using the &quot;by section&quot; setting.<br /><br />Ian<br />]]></description>
          <pubDate>Sat, 08 Oct 2011 09:46:13 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2213447#post2213447</guid>
        </item>
                <item>
          <title>Re: [buttermilk] Using anchor tags within content</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2213216#post2213216</link>
          <description><![CDATA[<b>EDIT: [solved]<br />Strike what I wrote below.  I'm a complete idiot.  This whole time I was looking in the image insert dialogue thinking this is where the new parameters would appear, when in reality (and quite obviously in retrospect) they appear in the link dialogue.<br /><br />I'm attaching my wysiwyg.php file for anybody who comes across this in the future.  You'll find this file here:<br />/cmsAdmin/lib/<br /><br />I'm sorry for wasting everybody's time.</b><br /><br /><i>Yargh.  No luck.  I'm wondering if anybody who has managed to get this to work could post their wysiwyg.php file?  I must be missing something simple and obvious: there's no way this is that difficult.<br /><br />I throw myself on the kindness of the forum!<br /><br />Ian</i><br />]]></description>
          <pubDate>Fri, 16 Sep 2011 13:54:13 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2213216#post2213216</guid>
        </item>
                <item>
          <title>Re: [robin] Using anchor tags within content</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2213122#post2213122</link>
          <description><![CDATA[Thanks, Robin.  I've reserved a couple hours tomorrow in a last effort to overcome this issue.<br /><br />Ian<br />]]></description>
          <pubDate>Mon, 12 Sep 2011 17:05:56 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2213122#post2213122</guid>
        </item>
                <item>
          <title>Re: [ross] explorer 8 error inserting wysiwyg image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2213121#post2213121</link>
          <description><![CDATA[You know, it's not such a big deal for me.  I thought I'd fix it if there was some quick patch or something, but I've got more important fish to fry, such as the advlinks issue which I'll wrestle with again tomorrow.<br /><br />Ian<br />]]></description>
          <pubDate>Mon, 12 Sep 2011 17:04:29 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2213121#post2213121</guid>
        </item>
                <item>
          <title>Re: [robin] Using anchor tags within content</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2213119#post2213119</link>
          <description><![CDATA[Hi Robin,<br /><br />Do you mean the zip file one Dave attached to his post above?<br /><br />Ian<br />]]></description>
          <pubDate>Mon, 12 Sep 2011 16:53:02 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2213119#post2213119</guid>
        </item>
                <item>
          <title>tinyMCE and advlink</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2213047#post2213047</link>
          <description><![CDATA[In a nutshell, I simply cannot get the advlink plugin to work on the wysiwyg fields.  Has anybody had any success in doing this?<br /><br />I've uploaded the advlink plugin folder to the /public_html/cmsAdmin/3rdParty/tiny_mce/plugins folder and edited my wysiwyg.php file to include the advlink plugin in the two stipulated spots as recommended by what I could find on the forum.  I've tweaked for hours but I'm at the end of my rope: the advanced field will not show up.<br /><br />If anybody can offer any help when you have a spare moment I would greatly appreciate it. <br /><br />I've attached my wysiwyg.php file.<br />]]></description>
          <pubDate>Tue, 06 Sep 2011 17:29:54 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2213047#post2213047</guid>
        </item>
                <item>
          <title>Re: [Jason] explorer 8 error inserting wysiwyg image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2213021#post2213021</link>
          <description><![CDATA[Hi Jason,<br /><br />Yeah, it happens on all my cmsbuilder installations through many versions right up to 2.07.  They're all with the same hosting company, so I'm wondering if that might be the source of the problem.  <br /><br />While hardly panicking, since I think it's far more important for the actual site to be working with explorer 8 rather than the back end, I was wondering if any other cmsbuilder users had experienced this same error (just in case it was something I was doing).  If it's something that can be easily fixed it'd be worth it for me.<br /><br />Ian<br />]]></description>
          <pubDate>Fri, 02 Sep 2011 13:26:36 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2213021#post2213021</guid>
        </item>
                <item>
          <title>Re: [Jason] explorer 8 error inserting wysiwyg image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2213018#post2213018</link>
          <description><![CDATA[It works exactly as it should on every other browser I currently have (chrome, safari, firefox, explorer 7).  I thought it might be unique to my installation of explorer 8, but I tired it on my home computer with the same result.  I have yet to install explorer 9.<br /><br />I never actually get to the point where I'm prompted to browse for a file to upload.  That is, no file dialogue comes up at all.<br /><br />This is the error I get on the current site I&quot;m working on:<br />Webpage error details<br /><br />User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; AskTB5.6)<br />Timestamp: Fri, 2 Sep 2011 17:53:26 UTC<br /><br /><br />Message: 'undefined' is null or not an object<br />Line: 231<br />Char: 6902<br />Code: 0<br />URI: http://74.52.72.36/~jocotoco/cmsAdmin/admin.php?menu=about_us&amp;action=edit&amp;num=2<br /><br /><br /><br />Ian<br />]]></description>
          <pubDate>Fri, 02 Sep 2011 12:50:28 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2213018#post2213018</guid>
        </item>
                <item>
          <title>explorer 8 error inserting wysiwyg image</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2213010#post2213010</link>
          <description><![CDATA[Does anybody else get an error in Explorer 8 (but not 7) when trying to insert an image in a wysiwyg?<br /><br />I tried it on the official tinymce page (<a target="_blank" href="http://www.tinymce.com/tryit/full.php">http://www.tinymce.com/tryit/full.php</a>) and got the same error.<br />----------------------<br />Webpage error details<br /><br />User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)<br />Timestamp: Fri, 2 Sep 2011 00:53:57 UTC<br /><br /><br />Message: 'undefined' is null or not an object<br />Line: 223<br />Char: 49218<br />Code: 0<br />URI: http://www.tinymce.com/js/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php?js=1&amp;plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,imagemanager,filemanager&amp;themes=advanced&amp;languages=en&amp;diskcache=true&amp;src=false<br /><br />----------------<br /><br />I get a similar problem on my own cmsbuilder built pages.<br /><br />Ian<br />]]></description>
          <pubDate>Thu, 01 Sep 2011 19:56:57 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2213010#post2213010</guid>
        </item>
                <item>
          <title>Re: [Dave] Using anchor tags within content</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2213009#post2213009</link>
          <description><![CDATA[Hi Dave,<br />Would this still apply for version 2.07 of cms builder?  I'm trying to do the same thing but those instructions haven't changed the image dialogue in tinyMCE for me.  I tried it with what I thought was a newer version of the plugin, but still no joy.<br /><br />Ian<br />]]></description>
          <pubDate>Thu, 01 Sep 2011 16:36:24 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2213009#post2213009</guid>
        </item>
                <item>
          <title>Re: [Jason] finding last child entry in category menu with 2 levels</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2212727#post2212727</link>
          <description><![CDATA[Ah!  I'm sure that will come in handy in the future.<br /><br />Works perfectly.  Thanks, Jason!<br /><br />Ian<br />]]></description>
          <pubDate>Mon, 15 Aug 2011 18:21:15 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2212727#post2212727</guid>
        </item>
                <item>
          <title>Re: [Jason] finding last child entry in category menu with 2 levels</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2212725#post2212725</link>
          <description><![CDATA[Hmm...<br /><br />I gave that a shot but it didn't work out.  Below that code I tried a simple if statement that I've used successfully before just to make sure the foreach loop was working.  Then, below that, I used the standard list viewer.  The latter two worked for me as expected, but I couldn't the _isLastChild working.<br /><br />my sql code was: <br /><br /><code>&lt;?php<br />  <br /><br />  // load viewer library<br />  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';<br />  $dirsToCheck = array('/home/jocotoco/public_html/','','../','../../','../../../');<br />  foreach ($dirsToCheck as $dir) { if (@include_once(&quot;$dir$libraryPath&quot;)) { break; }}<br />  if (!function_exists('getRecords')) { die(&quot;Couldn't load viewer library, check filepath in sourcecode.&quot;); }<br /><br />  // load records<br />  list($speciesRecords, $speciesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'species',<br />  ));<br /><br />?&gt;</code><br /><br />The php in the order described above is below:<br /><br /><code>&lt;h1&gt;Species - List Page Viewer&lt;/h1&gt;<br />***********************<br />&lt;br /&gt;<br />&lt;br /&gt;<br /><br />   <br />&lt;?php foreach ($speciesRecords as $category): ?&gt; <br />  &lt;?php if ($category['_isLastChild']): ?&gt; <br />        last child <br />  &lt;?php else: ?&gt; <br />        NOT the last child <br />  &lt;?php endif ?&gt; <br />&lt;?php endforeach?&gt; <br />   <br />&lt;br /&gt;<br />&lt;br /&gt;<br />*******************<br />&lt;br /&gt;<br />&lt;br /&gt;<br /><br /><br /><br />&lt;br /&gt;<br />&lt;br /&gt;<br /><br />	<br />&lt;?php foreach ($speciesRecords as $category): ?&gt; <br />  &lt;?php if ($category['depth'] == 0): ?&gt;<br />        This is 0 depth&lt;br /&gt;<br /><br />  &lt;?php else: ?&gt; <br />       	NO &lt;br /&gt;<br /><br />  &lt;?php endif ?&gt; <br />&lt;?php endforeach?&gt;	<br />&lt;br /&gt;<br />&lt;br /&gt;<br /><br />*****************************<br />&lt;br /&gt;<br />&lt;br /&gt;<br /><br /><br /><br /><br />&lt;br /&gt;<br />&lt;br /&gt;<br /><br /><br /><br /><br /><br /><br />    &lt;?php foreach ($speciesRecords as $record): ?&gt;<br /><br />      Parent Category: &lt;?php echo $record['parentNum'] ?&gt;&lt;br/&gt;<br />      &lt;h2&gt;&lt;?php echo $record['name'] ?&gt;&lt;/h2&gt;<br />      Content: &lt;?php echo $record['content'] ?&gt;&lt;br/&gt;<br /><br />      &lt;hr/&gt;<br />    &lt;?php endforeach ?&gt;</code><br /><br />I tried tweaking it sundry ways, but no joy.<br /><br />Oh here's the output I was getting: <br /><a target="_blank" href="http://74.52.72.36/~jocotoco/species_test3.php">http://74.52.72.36/~jocotoco/species_test3.php</a><br /><br />Ian<br /><br />p.s. I've attached a screenshot of the section I'm working with.  (the &quot;last&quot; entries are only there because I came up with some code that would insert content based on their presence.  It's kind of a hack solution, hence the question.)<br />]]></description>
          <pubDate>Mon, 15 Aug 2011 17:18:01 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2212725#post2212725</guid>
        </item>
                <item>
          <title>finding last child entry in category menu with 2 levels</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2212704#post2212704</link>
          <description><![CDATA[Hi All,<br /><br />I was wondering if anybody knows how to get php to find out if an entry in a foreach loop is the last child of the parent entry.  So, if I had 3 level 0 entries and each had 4 or 5 child entries (depth 1), how could I vary the output for the final entry in each main record?<br /><br />I imagine an &quot;if&quot; statement would work here, but I'm not really sure how to structure it.<br /><br />Any help is appreciated!<br /><br />Ian<br />]]></description>
          <pubDate>Sat, 13 Aug 2011 11:36:00 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2212704#post2212704</guid>
        </item>
                <item>
          <title>Re: [Jason] category menu type detail viewer</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2212574#post2212574</link>
          <description><![CDATA[YES!!! That did it!  Jason, thank you so much for your patience in helping me with that.  Not only does it work, but I feel as though I've learned a bunch of valuable code blocks along the way.<br /><br />You guys rock.com<br /><br />Best,<br /><br />Ian<br />]]></description>
          <pubDate>Fri, 05 Aug 2011 18:13:28 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2212574#post2212574</guid>
        </item>
                <item>
          <title>Re: [Jason] category menu type detail viewer</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2212554#post2212554</link>
          <description><![CDATA[It's so close I can taste it!  <br /><br />After a bit of trial and error I included an if statement to prevent the &quot;overview&quot; section from showing up (the 0 depth entry).  This means my secondary navigation now looks like this:<br /><br /><code>&lt;div class=&quot;navigation_secondary&quot;&gt;   <br /> <br />        &lt;?php if ($parent): ?&gt; <br />         <br />         &lt;div style=&quot;display:inline; margin-right:5px;&quot;&gt;<br />            <br />			&lt;?php if ($parent['depth'] == 1): ?&gt;  <br />                   <br />         		&lt;a href = &quot;&lt;?php $parent['_link'];?&gt;&quot;&gt;&lt;?php echo $parent['name'] ?&gt;&lt;/a&gt;<br />			<br />			&lt;?php endif ?&gt;<br />         <br />         &lt;/div&gt;<br />            <br />       &lt;?php endif ?&gt; <br /> <br />      <br />     &lt;?php if ($showRootCategory): ?&gt; <br />       &lt;div style=&quot;display:inline; margin-right:5px;&quot;&gt;&lt;?php echo $reservesRecord['name'] ?&gt;&lt;/div&gt; <br />     &lt;?php endif ?&gt; <br />  <br />	&lt;?php foreach ($navigationRecords as $record): ?&gt; <br />	   <br />	  &lt;?php if (!$showRootCategory &amp;&amp; $reservesRecord['num'] == $record['num']): ?&gt; <br />	    &lt;div style=&quot;display:inline; margin-right:5px;&quot;&gt;&lt;?php echo $record['name'] ?&gt;&lt;/div&gt; <br />	  &lt;?php else: ?&gt; <br />            &lt;div style=&quot;display:inline; margin-right:5px;&quot;&gt;&lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['name'] ?&gt;&lt;/a&gt;&lt;/div&gt; <br />	  &lt;?php endif ?&gt; <br />                     	   <br />        &lt;?php endforeach ?&gt;   <br />&lt;/div&gt;</code><br /><br />So now the link is showing up exactly as I wanted, but it doesn't link to the right place.  Argh!<br /><br />So if you start here:<br /><a target="_blank" href="http://74.52.72.36/~jocotoco/reservesDetail.php?overview-Tapichalaca-2">http://74.52.72.36/~jocotoco/reservesDetail.php?overview-Tapichalaca-2</a><br /><br />and navigate to the subsections, the first &quot;Tapichalaca&quot; button remains, just as I need it to, but it doesn't point to the right place.  It should point here:<br /><a target="_blank" href="http://74.52.72.36/~jocotoco/reservesDetail.php?overview-Tapichalaca-2">http://74.52.72.36/~jocotoco/reservesDetail.php?overview-Tapichalaca-2</a><br />Instead, it points here:<br /><a target="_blank" href="http://74.52.72.36/~jocotoco/reservesDetail.php?overview-tapichalaca-Tapichalaca-subsection-1-12">http://74.52.72.36/~jocotoco/reservesDetail.php?overview-tapichalaca-Tapichalaca-subsection-1-12</a><br /><br />This must be something to do with this code: &lt;a href = &quot;&lt;?php $parent['_link'];?&gt;&quot;&gt;  If I understand correctly that link should go to the parent of the subsection, but for some reason it doesn't.  [crazy]<br /><br />Ian<br /><br />[/url]<br />]]></description>
          <pubDate>Thu, 04 Aug 2011 16:16:42 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2212554#post2212554</guid>
        </item>
                <item>
          <title>Re: [Jason] category menu type detail viewer</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2212528#post2212528</link>
          <description><![CDATA[Ah, that's a useful function!<br /><br />I switched up that code a bit and I'm really close! [:)] The only remaining problem is that the parent entry isn't visible in the subsections.  Please, is there any way to include it?<br /><br />You can see that when one clicks into the sub-sections of &quot;Tapichalaca,&quot; the &quot;Tapichalaca&quot; link vanishes.  I'd really like the user to be able to click back to that initial page.  Is this possible?<br /><br /><a target="_blank" href="<br />http://74.52.72.36/~jocotoco/reservesDetail.php?overview-tapichalaca-2<br />"><br />http://74.52.72.36/~jocotoco/reservesDetail.php?overview-tapichalaca-2<br /></a><br /><br />Thanks for you patience, Jason.<br /><br />header:<br /><br /><code>&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br />  <br /><br />  // load viewer library<br />  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';<br />  $dirsToCheck = array('/home/jocotoco/public_html/','','../','../../','../../../');<br />  foreach ($dirsToCheck as $dir) { if (@include_once(&quot;$dir$libraryPath&quot;)) { break; }}<br />  if (!function_exists('getRecords')) { die(&quot;Couldn't load viewer library, check filepath in sourcecode.&quot;); }<br /><br />  // load records<br />  list($reservesRecords, $reservesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'reserves',<br />    'where'       =&gt; whereRecordNumberInUrl(1),<br /><br />  ));<br />  $reservesRecord = @$reservesRecords[0]; // get first record<br /><br />  // show error message if no matching record is found<br />  if (!$reservesRecord) {<br />    header(&quot;HTTP/1.0 404 Not Found&quot;);<br />    print &quot;Record not found!&quot;;<br />    exit;<br />  }<br /><br />// get sub categories  <br />  list($navigationRecords, $selectedRecord) = getCategories(array(  <br />    'tableName'        =&gt;   'reserves',  <br />    'rootCategoryNum'  =&gt;   $reservesRecord['num'],     <br />  )); <br /> <br /> $showRootCategory = true; <br />  <br />  if (!$navigationRecords) { // if there are no sub categories, revert to one level higher <br />    list($navigationRecords, $selectedRecord) = getCategories(array(  <br />      'tableName'        =&gt;   'reserves',  <br />      'rootCategoryNum'  =&gt;   $reservesRecord['parentNum'],     <br />    )); <br />     <br />    $showRootCategory = false; <br />  }<br /><br />?&gt;</code><br /><br />PHP:<br /><br /><code>&lt;div class=&quot;navigation_secondary&quot;&gt;   <br />      <br />     &lt;?php if ($showRootCategory): ?&gt; <br />       &lt;div style=&quot;display:inline; margin-right:5px;&quot;&gt;&lt;?php echo $reservesRecord['name'] ?&gt;&lt;/div&gt; <br />     &lt;?php endif ?&gt; <br />  <br />	&lt;?php foreach ($navigationRecords as $record): ?&gt; <br />	   <br />	  &lt;?php if (!$showRootCategory &amp;&amp; $reservesRecord['num'] == $record['num']): ?&gt; <br />	    &lt;div style=&quot;display:inline; margin-right:5px;&quot;&gt;&lt;?php echo $record['name'] ?&gt;&lt;/div&gt; <br />	  &lt;?php else: ?&gt; <br />            &lt;div style=&quot;display:inline; margin-right:5px;&quot;&gt;&lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['name'] ?&gt;&lt;/a&gt;&lt;/div&gt; <br />	  &lt;?php endif ?&gt; <br />                     	   <br />        &lt;?php endforeach ?&gt;   <br />&lt;/div&gt;</code><br /><br />Ian<br /><br />p.s. I've added a screenshot of the category menu in question.<br />]]></description>
          <pubDate>Wed, 03 Aug 2011 13:59:06 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2212528#post2212528</guid>
        </item>
                <item>
          <title>Re: [buttermilk] category menu type detail viewer</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2212522#post2212522</link>
          <description><![CDATA[Sorry, here's the new php:<br /><br /><code>    &lt;div class=&quot;navigation_secondary&quot;&gt;<br />    	 <br />		 <br />    <br />	&lt;?php foreach ($navigationRecords as $record): ?&gt; <br />    <br /><br /><br />		&lt;?php if ($reservesRecord['num'] != $record['num']): ?&gt;  <br />			                     <br />          <br />			&lt;div style=&quot;display:inline; margin-right:5px;&quot;&gt;&lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['name'] ?&gt;&lt;/a&gt;&lt;/div&gt;<br />	<br />   <br />		&lt;?php else: ?&gt;<br />           	<br />			 &lt;div style=&quot;display:inline; margin-right:5px;&quot;&gt;&lt;?php echo $record['name'] ?&gt;&lt;/div&gt;<br />                     	<br />     	&lt;?php endif ?&gt; 	<br />     <br />    &lt;?php endforeach ?&gt;<br />    <br />    &lt;/div&gt;</code><br />]]></description>
          <pubDate>Wed, 03 Aug 2011 12:34:44 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2212522#post2212522</guid>
        </item>
                <item>
          <title>Re: [Jason] category menu type detail viewer</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2212521#post2212521</link>
          <description><![CDATA[Hi Jason,<br /><br />Thanks for helping me out!<br /><br />That does indeed post the 3rd level links there.<br /><br />A couple questions:<br /><br />1. In the interests of learning, what exactly does that 'rootCategoryNum' do? How does that work?<br /><br />2. I'd really like the second level depth link to be visible too.  So, for instance, on this page (http://74.52.72.36/~jocotoco/reservesDetail.php?overview-tapichalaca-2) I'd like &quot;tapichalaca&quot; (depth 1) to be in front of the subsequent links.<br /><br />3. When I click through to the subsections that your modification made appear, the links all disappear.  Looking at the code, I can't understand why that is!<br />(http://74.52.72.36/~jocotoco/reservesDetail.php?overview-tapichalaca-Tapichalaca-subsection-2-13)<br /><br />Ian<br />]]></description>
          <pubDate>Wed, 03 Aug 2011 12:33:19 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2212521#post2212521</guid>
        </item>
                <item>
          <title>category menu type detail viewer</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2212510#post2212510</link>
          <description><![CDATA[Hello All,<br /><br />I've got something that I'm pretty sure isn't too complicated, but I'm stumped.<br /><br />My category menu is three levels deep: there is one &quot;overview&quot; section that is at depth &quot;0&quot; The main reserves.php list viewer  displays the content of this overview along with links across the top for all records of depth &quot;1&quot;.  These links take the user to reservesDetail.php and display the information of all the depth &quot;1&quot; records.  So far so good.<br />You can see the above here: http://74.52.72.36/~jocotoco/reserves.php<br /><br />My problem is that on the reservesDetail.php page I'd like to have links across the top of the page to the associated depth &quot;2&quot; records.  That is, it would look like the reserves.php page but with the third level links.<br />I'm almost there, I think: http://74.52.72.36/~jocotoco/reservesDetail.php?overview-tapichalaca-2<br /><br />The header at the top of the reservesDetail.php page is as follows:<br /><br /><br /><br /><br /><code>&lt;?php header('Content-type: text/html; charset=utf-8'); ?&gt;<br />&lt;?php<br />  <br /><br />  // load viewer library<br />  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';<br />  $dirsToCheck = array('/home/jocotoco/public_html/','','../','../../','../../../');<br />  foreach ($dirsToCheck as $dir) { if (@include_once(&quot;$dir$libraryPath&quot;)) { break; }}<br />  if (!function_exists('getRecords')) { die(&quot;Couldn't load viewer library, check filepath in sourcecode.&quot;); }<br /><br />  // load records<br />  list($reservesRecords, $reservesMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'reserves',<br />    'where'       =&gt; whereRecordNumberInUrl(1),<br /><br />  ));<br />  $reservesRecord = @$reservesRecords[0]; // get first record<br /><br />  // show error message if no matching record is found<br />  if (!$reservesRecord) {<br />    header(&quot;HTTP/1.0 404 Not Found&quot;);<br />    print &quot;Record not found!&quot;;<br />    exit;<br />  }<br /><br />?&gt;</code><br /><br />The php of the reservesDetail.php page is this:<br /><br /><br /><code>&lt;div class=&quot;content_main&quot;&gt;<br /><br />	&lt;h3 style=&quot;margin:0px;&quot;&gt;&lt;?php echo $reservesRecord['name'] ?&gt;&lt;/h3&gt;<br />	<br />    &lt;div class=&quot;navigation_secondary&quot;&gt;<br />    	 <br />		 <br />    <br />	&lt;?php foreach ($reservesRecords as $record): ?&gt;	<br />    <br /><br /><br />		&lt;?php if ($reservesRecord['num'] != $record['num']): ?&gt;  <br />			                     <br />          <br />			&lt;div style=&quot;display:inline; margin-right:5px;&quot;&gt;&lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;&lt;?php echo $record['name'] ?&gt;&lt;/a&gt;&lt;/div&gt;<br />	<br />   <br />		&lt;?php else: ?&gt;<br />           	<br />			 &lt;div style=&quot;display:inline; margin-right:5px;&quot;&gt;&lt;?php echo $record['name'] ?&gt;&lt;/div&gt;<br />                     	<br />     	&lt;?php endif ?&gt; 	<br />     <br />    &lt;?php endforeach ?&gt;<br />    <br />    &lt;/div&gt;<br /><br />	<br />  &lt;!-- STEP2: Display Records (Paste this where you want your records to be listed) --&gt;<br /><br />      Record Number: &lt;?php echo $reservesRecord['num'] ?&gt;&lt;br/&gt;<br />      Parent Category: &lt;?php echo $reservesRecord['parentNum'] ?&gt;&lt;br/&gt;<br />      Name: &lt;?php echo $reservesRecord['name'] ?&gt;&lt;br/&gt;<br />      Content: &lt;?php echo $reservesRecord['content'] ?&gt;&lt;br/&gt;<br />      &lt;!-- _link : &lt;a href=&quot;&lt;?php echo $reservesRecord['_link'] ?&gt;&quot;&gt;&lt;?php echo $reservesRecord['_link'] ?&gt;&lt;/a&gt;&lt;br/&gt; --&gt;<br /><br /><br />      &lt;!-- STEP 2a: Display Uploads for field 'images' (Paste this anywhere inside STEP2 to display uploads) --&gt;<br />        <br />        &lt;?php foreach ($reservesRecord['images'] as $upload): ?&gt;<br />          &lt;?php if ($upload['hasThumbnail']): ?&gt;<br />            &lt;img src=&quot;&lt;?php echo $upload['thumbUrlPath'] ?&gt;&quot; width=&quot;&lt;?php echo $upload['thumbWidth'] ?&gt;&quot; height=&quot;&lt;?php echo $upload['thumbHeight'] ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;br/&gt;<br /><br />          &lt;?php elseif ($upload['isImage']): ?&gt;<br />            &lt;img src=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot; width=&quot;&lt;?php echo $upload['width'] ?&gt;&quot; height=&quot;&lt;?php echo $upload['height'] ?&gt;&quot; alt=&quot;&quot; /&gt;&lt;br/&gt;<br /><br />          &lt;?php else: ?&gt;<br />            &lt;a href=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot;&gt;Download &lt;?php echo $upload['filename'] ?&gt;&lt;/a&gt;&lt;br/&gt;<br /><br />          &lt;?php endif ?&gt;<br />        &lt;?php endforeach ?&gt;<br />      &lt;!-- STEP2a: /Display Uploads --&gt;<br /><br /><br />      &lt;hr/&gt;<br />    &lt;?php if (!$reservesRecord): ?&gt;<br />      No record found!&lt;br/&gt;&lt;br/&gt;<br />    &lt;?php endif ?&gt;<br />  &lt;!-- /STEP2: Display Records --&gt;<br /><br />  &lt;a href=&quot;&lt;?php echo $reservesMetaData['_listPage']; ?&gt;&quot;&gt;&amp;lt;&amp;lt; Back to OVERVIEW&lt;/a&gt; - <br />  &lt;a href=&quot;mailto:?subject=&lt;?php echo urlencode(thisPageUrl()) ?&gt;&quot;&gt;Email this Page&lt;/a&gt;<br /><br />  &lt;/div&gt;</code><br /><br />Any help would be greatly appreciated.<br /><br />Ian<br />]]></description>
          <pubDate>Wed, 03 Aug 2011 09:50:04 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2212510#post2212510</guid>
        </item>
              </channel>
    </rss>
  