Bans Cloaking Problem | Fix Your Bans Store

Posted: | Author: | Filed under: Build A Niche Store | Tags: , | 1 Comment »

Build A Niche Store owners have become aware of a problem with the cloaked URLS on their sites and it has been found that good old Epn have made changes to the RSS feed without notification to their affiliates (one more reason to go to Amazon!)

Fortunately, king of the BANS store problem solvers, Tao Schenks has managed to produce a fix and here it is.

In index.php, you need to find this block of code:

if(($siteType == “US”) && ($cloak == “1″)){
$front->sid = str_replace(“%2B”, “+”, $front->sid);
$link[$counter] = str_replace(“http://rover.ebay.com/rover/1/711-53200-19255-0/1?”, “”.URL_PATH.”/item/”, $link[$counter]);
$link[$counter] = str_replace(“&mpre=http%3A%2F%2Fcgi.ebay.com%2F”, “”, $link[$counter]);
$link[$counter] = str_replace(“QQcmdZViewItemQQssPageNameZRSS%3AB%3ASRCH%3AUS%3A101″, “”, $link[$counter]);
$link[$counter] = str_replace(“campid=”.CJID.”", “”, $link[$counter]);
$link[$counter] = str_replace(“&customid=”.$front->sid.”", “”, $link[$counter]);
$link[$counter] = str_replace(“&toolid=10005″, “”, $link[$counter]);
}

Replace it with this:

if(($siteType == “US”) && ($cloak == “1″)){
$itempos = strpos($link[$counter],”item=”);
$cloakeditem = substr($link[$counter],$itempos+5,12);
$cloakedtitle = preg_replace(“/[^a-zA-Z0-9\s]/”, “”, $title[$counter]);
$link[$counter] = URL_PATH.’/item/’.str_replace(” “,”-”,$cloakedtitle).”_W0QQitemZ”.$cloakeditem;
}

This change also needs to be done in the FrontControl.php file which you will find in the cont folder.

If you use this free fix then buy the man a coffee by using tao.schencks@btinternet.com at paypal.

Related posts:

  1. Build A Niche Store Alternatives
  2. Build A Niche Store – RIP

One Comment on “Bans Cloaking Problem | Fix Your Bans Store”

  1. 1 Tao said at 9:05 am on March 3rd, 2010:

    Thanks dude!

    Just came across your blog and have added it to my RSS reader!


Leave a Reply