<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>engfer(s) &#187; PHP</title>
	<atom:link href="http://www.engfers.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.engfers.com</link>
	<description>» scrumptions blog &#038; code » nothing more, nothing less</description>
	<lastBuildDate>Tue, 06 Oct 2009 21:52:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Removing the Annoying Banner at the Bottom of CRE Loaded Standard</title>
		<link>http://www.engfers.com/2008/11/03/removing-the-annoying-banner-at-the-bottom-of-cre-loaded-standard/</link>
		<comments>http://www.engfers.com/2008/11/03/removing-the-annoying-banner-at-the-bottom-of-cre-loaded-standard/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 20:51:15 +0000</pubDate>
		<dc:creator>engfer</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.engfers.com/?p=789</guid>
		<description><![CDATA[For those of you out there wondering how to remove that annoying banner that the CRE Loaded developers insert at the bottom of the page, I have found your solution. Annoying UPDATE: 2009-01-20: CRE Loaded SUCKS and is way too gimped by their own spam to make you upgrade to the NON-free version. Use Magento [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">
<p style="text-align: center;"><img class="size-full wp-image-810 aligncenter" title="Just say No!" src="http://www.engfers.com/wp-content/uploads/2008/11/cre_no.png" alt="" width="450" height="79" /></p>
<p>For those of you out there wondering how to remove that annoying banner that the CRE Loaded developers insert at the bottom of the page, I have found your solution.<br />
<span id="more-789"></span></p>
<h3 class="hrule"><span style="color: #3366ff;">Annoying</span></h3>
<p><span style="color: #3366ff;"><strong><span style="color: #ff0000;">UPDATE: 2009-01-20: CRE Loaded SUCKS and is way too gimped by their own spam to make you upgrade to the NON-free version. </span></strong></span><span style="color: #ff0000;"><strong>Use <a href="http://www.magentocommerce.com/">Magento</a> instead.</strong></span><span style="color: #3366ff;"><strong></strong><br />
</span></p>
<p>CRE Loaded is a <span style="text-decoration: line-through;">pretty decent</span> piece of <span style="text-decoration: line-through;">open source</span> (not any more) e-commerce software. Well, it&#8217;s<span style="text-decoration: line-through;"> pretty decent</span> (not any more) if you ignore their <strong>MASSIVE</strong> use of global PHP variables.  Nevertheless, it&#8217;s fast and relatively stable.</p>
<p style="text-align: left;">The Standard version is free; however, you need to register yearly for a key for it (dumb). One of the downsides to the free version is that they<strong> forcibly and slyly</strong> include this <strong>really annoying banner</strong> at the bottom of their templates <span style="color: #ff0000;"><strong>(UPDATE: 2009-01-20: among other crappy things that make the software too annoying to use for a free version. Use <a href="http://www.magentocommerce.com/">Magento</a> instead)</strong></span></p>
<p style="text-align: center;"><a href="http://www.engfers.com/wp-content/uploads/2008/11/cre_banner_bad.png"><img class="size-medium wp-image-790 aligncenter" title="Stupid banner at the bottom of the page" src="http://www.engfers.com/wp-content/uploads/2008/11/cre_banner_bad-300x60.png" alt="" width="300" height="60" /></a></p>
<p>Now, the likely first reaction to fix this is to grep through their codebase for some of the text and/or HTML that&#8217;s in that bottom banner.</p>
<p>Well, to our surprise the CRE Loaded developers were <em>a little smarter than that.</em></p>
<h3 class="hrule"><span style="color: #3366ff;">Fetched From Afar</span></h3>
<p>If the text from the banner isn&#8217;t in the codebase and it isn&#8217;t in the database, <strong>where can it be?</strong></p>
<p>Well if you happen to glance in your CRE Loaded install, you&#8217;ll find the following file:</p>
<pre>&lt;cre loaded dir&gt;/includes/application_bottom.php</pre>
<p>Inside that file, you&#8217;ll find the stuff that happens at the end of the request pipeline. You will also see a call to the suspicious method <code>cre_uregisterBasicFunctions()</code>. <em>Needless to say this function <strong>is</strong> the <strong>culprit</strong></em>.</p>
<p>If you search the codebase for cre_uregisterBasicFunctions(), you will find its definition in the file <strong>&lt;cre loaded dir&gt;/includes/template_application_top.php</strong> (talk about a misdirection)</p>
<p>If you stare at method definition for a while, you will see it makes a remote request (via cURL or include) to <strong>http://www.creloaded.com/cre_google.js.html</strong>,  which upon further inspection, contains the following text:</p>
<pre>&lt;div align="center"&gt;
  &lt;table width="700" border="0" align="center" cellpadding="0" cellspacing="0"&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;table width="720" border="0" align="center" cellpadding="2" cellspacing="4"&gt;
          &lt;tr&gt;
            &lt;td colspan="4" class="main"&gt;&lt;div align="center"&gt;This site is a member of the CRE Loaded Open Source &lt;a href="http://www.creloaded.com/" target="_blank"&gt;Ecommerce Software&lt;/a&gt; community&lt;/div&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr valign="top"&gt;
            &lt;td width="25%" height="60" class="main"&gt;&lt;p&gt;&lt;a href="http://www.creloaded.com/" target="_blank"&gt;&lt;u&gt;Ecommerce Shopping Cart&lt;/u&gt;&lt;/a&gt;&lt;br&gt;
               The scalability you demand.&lt;br&gt; The ease of use you want. &lt;br&gt;All the tools you need.&lt;/td&gt;

            &lt;td width="25%" class="main"&gt;&lt;a href="http://www.chainreactionweb.com/" target="_blank"&gt;&lt;u&gt;Shopping Cart Hosting &lt;/u&gt;&lt;/a&gt;&lt;br&gt;
              Host your cart with CRW &lt;br&gt;for the industry&amp;#39;s highest uptime and support. &lt;/td&gt;

            &lt;td width="25%" class="main"&gt;&lt;a href="http://www.creloaded.com/Shopping_Carts/c30/index.html" target="_blank"&gt;&lt;u&gt;FREE Shopping Cart &lt;/u&gt;&lt;/a&gt;&lt;br&gt;
              Want to open a  web store &lt;br&gt;on a budget? Start with our &lt;br&gt;unlimited FREE version. &lt;/td&gt;

            &lt;td width="25%" class="main"&gt;&lt;a href="https://www.crelance.com/" target="_blank"&gt;&lt;u&gt;Freelance Service Website &lt;/u&gt;&lt;/a&gt;&lt;br&gt;
            Need  feature or template work for CRE Webstore? &lt;br&gt;Hire a CRE Lance freelancer.&lt;/td&gt;

          &lt;/tr&gt;
        &lt;/table&gt;
        &lt;div align="center"&gt;&lt;a href="http://www.creloaded.com/welcome_standard/home.php" target="_blank"&gt; &lt;img src="https://www.creloaded.com/cre_google.images/cre_loaded_ecommerce_logo30.gif" alt="CRE Loaded Commercial Open
Source Shopping Cart - opens in new window" width="168" height="30" vspace="3" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
&lt;/div&gt;</pre>
<p><span style="color: #ff0000;"><strong>Those little tricksters!!!</strong></span></p>
<h3 class="hrule"><span style="color: #3366ff;">The Fix</span></h3>
<p>Since this is open source software, we can fix it legally!!!</p>
<p>Just <strong>comment out</strong> the call to cre_uregisterBasicFunctions().</p>
<p>File = <strong>application_bottom.php</strong></p>
<pre>// cre_uregisterBasicFunctions();     // &lt;- COMMENT ME OUT</pre>
<p>Now the banner is gone!</p>
<p><div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-9461422058527053";
google_ad_slot = "5057152483";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.engfers.com/2008/11/03/removing-the-annoying-banner-at-the-bottom-of-cre-loaded-standard/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
