Burts AIS, osCommerce & More Blog
New URL: www.osworld.biz

Monday, January 09, 2006

Niche Creator Hack

If you're using Niche Creator (I know a few people have bought it due to my recommendation), then you need to make a few hacks to the code in order to give better results... Hack 1 Open up index.php and find:

//check against bad words file
$badwords = file("$badwordsfile");
$badwords = trim($badwords);
if (stristr(implode(' ',file($badwordsfile)),"$k")) {
    $k = $default_keyword;
Change this to:
// check against badwords file
// copyright © http://osworld.blogspot.com
$badwords = file($badwordsfile);
for ($i=0, $n=sizeof($badwords); $i<$n; $i++) {
    if (is_null($badwords[$i]) === FALSE) {
        if ($k == trim($badwords[$i])) {
            $k = $default_keyword;
What this will do is search the exclude file on a word by word basis. You can now also sanitize the exclude.txt file by removing all double occurences of a word... If you are not using Niche Creator to build your AIS sites, then this hack is not that much use to you ;) More hacks coming soon.

New URL: www.osworld.biz - thanks!

<< Home

View Latest Posts

To View Newer Posts - Click Here!