<?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%3Aeriqcook</link>
        <description></description>
        <pubDate>Tue, 28 Apr 2026 22:11:45 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-search.php?k=user%3Aeriqcook&amp;rss=1" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [gkornbluth] How to automatically delete item after date expires?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2215261#post2215261</link>
          <description><![CDATA[Thank you very much everyone. I will give this a try!<br />]]></description>
          <pubDate>Wed, 22 Feb 2012 14:18:25 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2215261#post2215261</guid>
        </item>
                <item>
          <title>How to automatically delete item after date expires?</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2215219#post2215219</link>
          <description><![CDATA[What is the best method for having items automatically delete several days after a date has passed? Trying to figure out for Events page.<br /><br />Thank you...<br />]]></description>
          <pubDate>Wed, 15 Feb 2012 21:29:40 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2215219#post2215219</guid>
        </item>
                <item>
          <title>Re: [efi-revivo] Error uploading</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2211986#post2211986</link>
          <description><![CDATA[I know this is an older thread but I also experienced this error for first time. Only occurred in Firefox (5.0). Disabling the flash uploader fixed issue. <br /><br />Wonder if there's a permanent fix in works for Firefox &amp; flash uploader.<br />]]></description>
          <pubDate>Tue, 28 Jun 2011 00:25:43 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2211986#post2211986</guid>
        </item>
                <item>
          <title>Re: [eriqcook] How to make single link change automatically based on filetype</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2195173#post2195173</link>
          <description><![CDATA[Strange. I typed in a long reply (using the &quot;Quote&quot; button) and it posted your quote with my response missing! [crazy] <br /><br />Anyway, what I said was that I changed the code to match to the correct file type, but if you look at the following page: <br /><br /><a target="_blank" href="http://www.mtrip.org/v2/cmstest.php">http://www.mtrip.org/v2/cmstest.php</a> <br /><br />You'll see it only shows &quot;View Page&quot; (for &quot;non file upload&quot; articles). It's supposed to say &quot;View PDF&quot; if the filetype is a PDF, or &quot;View Page&quot; if there's no file uploaded and just a standard article page.  <br /><br />If you click on the &quot;View Page&quot; link however, it loads the article detail page and displays the file at the very bottom (IF the file exist). Not exactly how I wanted it to work though.  <br /><br />It may have something to do with how I have everything setup on the back side. I don't know. You may need to look at how I have things setup internally to see what's wrong here. <br /><br />Thank you for your help...<br />]]></description>
          <pubDate>Tue, 13 Jan 2009 23:27:50 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2195173#post2195173</guid>
        </item>
                <item>
          <title>Re: [Dave] How to make single link change automatically based on filetype</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2195172#post2195172</link>
          <description><![CDATA[<blockquote><br />Hi Eriq, <br /><br />Try something like this: <br /><br /> <code> &lt;?php if ($upload['extension'] == 'gif'): ?&gt; <br />  &lt;a href=&quot;...&quot;&gt;View Image&lt;/a&gt; <br />&lt;?php elseif ($upload['extension'] == 'pdf'): ?&gt; <br />  &lt;a href=&quot;...&quot;&gt;View PDF&lt;/a&gt; <br />&lt;?php else: ?&gt; <br />  &lt;a href=&quot;...&quot;&gt;View All other files&lt;/a&gt; <br />&lt;?php endif ?&gt; </code><br /><br />Let me know if that works for you or if you run into any problems. </blockquote><br />]]></description>
          <pubDate>Tue, 13 Jan 2009 23:18:13 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2195172#post2195172</guid>
        </item>
                <item>
          <title>Re: [Dave] Notice: Announce your new CMS Builder websites here!</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2195142#post2195142</link>
          <description><![CDATA[I use CMS Builder for TEQMedia.com. TEQ Media is a web design/development co. providing custom web design, e-newsletter design &amp; flash media. Currently we're only using it for our web design portfolio (located at <a target="_blank" href="http://www.teqmedia.com/portfolio/web">http://www.teqmedia.com/portfolio/web</a>), but I will soon have it power our entire website. I am also integrating CMS Builder into two of our client websites as we speak for document libary management &amp; reporting tools. I'll post on these sites very soon once they're launched. <br /><br />Eriq Cook<br />Owner<br />TEQ Media Group<br />(720) 333-3322 <br /><br /><a target="_blank" href="http://www.teqmedia.com"><b>http://www.teqmedia.com</b></a><br />]]></description>
          <pubDate>Mon, 12 Jan 2009 23:14:20 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2195142#post2195142</guid>
        </item>
                <item>
          <title>Re: [ross] How to make single link change automatically based on filetype</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2195139#post2195139</link>
          <description><![CDATA[Thank you for the quick reply. Yes that's exactly what I want to do. Not sure how to code exactly<br />]]></description>
          <pubDate>Mon, 12 Jan 2009 17:46:42 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2195139#post2195139</guid>
        </item>
                <item>
          <title>Single link, filetype or article</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2195120#post2195120</link>
          <description><![CDATA[Sorry to repost this people but I am rephrasing my question in an attempt to make it more clear as to what I need. <br /><br />[font &quot;Verdana&quot;]<font size="2">I would like to show a single link, called &quot;View&quot;, which displays an article by clicking on the link (and opens the article in a web page) if the record is an article, OR displays a file (PDF, Word doc, etc) if the file is an upload type.</font></span> <br /><br />[font &quot;Verdana&quot;]<font size="2">I've been playing around with the code all weekend and just can't figure it out. If you take a look at the following link:</font></span> <br /><br />[url &quot;http://www.interactivetools.com/forum/forum.cgi?url=http%3A%2F%2Fwww.mtrip.org%2Fv2%2Fcmstest.php&quot;][font &quot;Verdana&quot;]<span style="color: #333366"><font size="2">http://www.mtrip.org/v2/cmstest.php</font>[/#333366]</span>[/url][font &quot;Verdana&quot;]<font size="2"> </font></span><br /><br />[font &quot;Verdana&quot;]<font size="2">Notice the two links at the bottom of each record: &quot;View/Download Page&quot; and &quot;View/Download File&quot;? A typical </font></span>[font &quot;Verdana&quot;]<font size="2">record will only be one or the other (article or file upload). Not both. This is the problem: I only want to display ONE link, and depending on the type of record it is (file upload or standard article), load the appropriate viewer (for web page) or just open the file (PDF, Word doc, etc). I don't want to display both links. I just want to system to do the corresponding action based on the type of file it is.</font></span> <br /><br />[font &quot;Verdana&quot;]<font size="2">Is this possible? I think it involves some IF/ELSE coding, but I'm clueless on how to do that. </font></span><br /><br />[font &quot;Verdana&quot;]<font size="2">Here's the code I'm currently using:</font></span> <br /><br />&lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;View Web Page&lt;/a&gt; (if applicable)&lt;br/&gt; <br />&lt;!-- STEP 2a: Display Uploads for field 'file' (Paste this anywhere inside STEP2 to display uploads) --&gt; <br />&lt;!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 --&gt; <br />&lt;?php foreach ($record['file'] as $upload): ?&gt;&lt;br/&gt; <br />&lt;?php else: ?&gt;&lt;a href=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot;&gt;View/Download&lt;br /&gt;&lt;/a&gt; <br />&lt;?php endif ?&gt; <br />&lt;?php endforeach ?&gt; <br /><br />[font &quot;Verdana&quot;]<font size="2">How do I code the page in order to do that? hope I explained it easier.</font></span> <br /><br />[font &quot;Verdana&quot;]<font size="2">Thank you...</font></span><br />]]></description>
          <pubDate>Mon, 12 Jan 2009 03:12:46 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2195120#post2195120</guid>
        </item>
                <item>
          <title>How to make single link change automatically based on filetype</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2195115#post2195115</link>
          <description><![CDATA[Hi everyone, Donna mentioned to ask this question in the web forum so I'm posting it here. Need some quick help on what I think is a simple issue to tackle.  <br /><br />Please take a look at the folowing web page: <br /><br /><a target="_blank" href="http://www.interactivetools.com/forum/forum.cgi?url=http%3A%2F%2Fwww.interactivetools.com%2Fforum%2Fforum.cgi%3Furl%3Dhttp%253A%252F%252Fwww.mtrip.org%252Fv2%252Fcmstest.php">http://www.mtrip.org/v2/cmstest.php</a> <br /><br />In the 4th row of each entry (titled &quot;File&quot;), I want to be able to have a single link that changes automatically based on the type of file it is. In other words, if the entry is a basic article, I want the link to read &quot;View Page&quot;, or if it's a file download (PDF, DOC, XLS, etc), the link would read &quot;View/Download File&quot; (instead of showing both &quot;[url &quot;http://www.interactivetools.com/forum/forum.cgi?url=http%3A%2F%2Fwww.interactivetools.com%2Fforum%2Fforum.cgi%3Furl%3Dhttp%253A%252F%252Fwww.mtrip.org%252Fv2%252Farticles%252FarticleDetail.php%253FLogo-Creative-Brief-2&quot;]<span style="color: #0066cc">View Web Page[/#0066cc][/url]&quot; AND &quot;[url &quot;http://www.interactivetools.com/forum/forum.cgi?url=http%3A%2F%2Fwww.interactivetools.com%2Fforum%2Fforum.cgi%3Furl%3Dhttp%253A%252F%252Fwww.mtrip.org%252Fv2%252FcmsAdmin%252Fuploads%252FLogoCreativeBrief.pdf&quot;]<span style="color: #0066cc">View/Download[/#0066cc][/url]&quot; at the same time). I don't like having to show both text links if only one works. Does that make sense?<br /><br />I think what I want to do is something with an &quot;IF&quot; or &quot;ELSE&quot; statement, but I'm not sure how to code it. Can anyone here provide some example code to acheive the results I need? Here's the code I that's in place now: <br /><br />&lt;a href=&quot;&lt;?php echo $record['_link'] ?&gt;&quot;&gt;View Web Page&lt;/a&gt;&lt;br/&gt; <br />&lt;!-- STEP 2a: Display Uploads for field 'file' (Paste this anywhere inside STEP2 to display uploads) --&gt; <br />&lt;!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 --&gt; <br />&lt;?php foreach ($record['file'] 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 />&lt;?php else: ?&gt; <br />&lt;a href=&quot;&lt;?php echo $upload['urlPath'] ?&gt;&quot;&gt;View/Download&lt;br /&gt; <br />&lt;/a&gt; <br />&lt;?php endif ?&gt; <br />&lt;?php endforeach ?&gt; <br /><br />I really don't care about the the thumbnail references (since I'm not showing thumbnails) but tried removing them and screwed up everything. And I'm not sure how to code if/else statements to generate the results I want. I need help. Need to launch this site by Sunday (tomorrow).<br /><br />Greatly appreciated.<br />]]></description>
          <pubDate>Fri, 09 Jan 2009 19:10:17 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2195115#post2195115</guid>
        </item>
              </channel>
    </rss>
  