Our blog
CRELoaded Remove Google Ads –
If you install the free version of CRELoaded, you will see that they have sneaked some Google adverts onto the bottom of your site.
Above the adverts will be the text
This site is a member of the CRE Loaded Open Source Ecommerce Software community
Bit of an underhand tactic but I suppose you have to try to make cash where you can these days...
I could go onto a big rant about how they are trying to make cash by simply repackaging software which was always meant to be given away freely and without hitches, including both osCommerce and the multitude of contributions they have added on there. I'm not going to though. CRELoaded is a good product and these guys are keeping the osCommerce platform as a viable modern open source ecommerce platform.
Anyway - cut to the chase - to get rid of these annoying adverts all you have to do is open up
includes/javascript/cart_links.js.php
It should look like this:
and replace the entire contents with
-
<?php if ($cart_links == 'close'){$cart_link1= 'dothis';} else if ($cart_links == 'close') {$paymentclose = 'true';}
-
/*
-
if ( strstr(basename($_SERVER['SCRIPT_FILENAME']),'popup_') != basename($_SERVER['SCRIPT_FILENAME'] ) ) {@include('http://www.creloaded.com/cre_google.js');}
-
*/
-
?>
That's it.
More Reading:
10 Comments
|
CRELoaded 6.3 Remove Google Ads - The above post clearly explains how to remove the hidden Google Ads from an Open Source installation of osCommerce CRELoaded 6.2. The following is my solution to the CRELoaded 6.3 Google Adds. Before: PHP:
After: PHP:
Please note where I have commented out certain portions of the code. (edited by admin for clarity) |
|
Thanks for that E Lantz |
|
rajah December 21st, 2008 |
E.Lantz, you're awesome! Thanks for your contribution. Ive been searching for the past two days and many people are searching for this solution. Glad I came across this post! Thanks again. |
|
Thanks for the tutorial, was looking everywhere for the v6.3 guide. Very informative |
|
just for clarification there I would personally recommend commenting out the whole block for performance reasons |
|
Please Correct it Replace function cre_uregisterBasicFunctions(){$ch = curl_init();$timeout = 5;curl_setopt ($ch, CURLOPT_URL, 'http://www.creloaded.com/cre_google.js.html');curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$file_contents = curl_exec($ch);curl_close($ch);echo $file_contents;} With function cre_uregisterBasicFunctions(){$ch = curl_init();$timeout = 5;curl_setopt /*($ch, CURLOPT_URL, 'http://www.creloaded.com/cre_google.js.html')*/;curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$file_contents = curl_exec($ch);curl_close($ch);echo $file_contents;} |
|
Mircea June 10th, 2010 |
Simpler and better solution, |
|
Thanks A LOT !!!! I have been looking for the solution for so many hrs Thanks again .... |
|
Anantha.KN October 15th, 2010 |
Thank you for the help |
|
Key2 February 23rd, 2011 |
Thanks E Lantz |
RSS Feed
E.Lantz
December 14th, 2008