Tuesday, October 31, 2006

Interprise Suite v1

I've been following Interprise Suite for the last 18 months or so. I was a beta tester for a while, but I grew tired of waiting around for their release (originally scheduled for late 2005). They just unofficially put out their first release. You can get it here: http://www.interprisesolutions.com/Forum/Topic3911-57-5.aspx#bm3978

I haven't really messed with the software yet, but I hope to use it to start a drop shipping business.

Monday, October 23, 2006

Viral Marketing with phpList

I've been messing around a lot with phplist. It is a fullfledged newsletter manager with a double opt-in subscription mechanism, scheduling, RSS, click-tracking, attachments and bounce management. The plan is to create a viral marketing script that uses the PHPList database to control user access to the member areas of the site.

I'm also trying to incorporate the GeoLite City database, so I can capture a users region when they sign up for the newsletter. Since the niche I'm working in is very location oriented, I hope to be able to use PHPList and PHPadsnew to target them with location specific newsletters and banners.

I'm going to try the plan similar to the 15kchallenge. The plan is to offer something for free if they add their email address, and confirm using the link in the welcome email. Then offer something else for free if they sign up 3 friends (and they confirm).

Thursday, October 19, 2006

Amazon API IntelliTXT

I'm sure other people have done this, but I created a script that injects Amazon products (w/ new product previews) into articles similar to the way IntelliTXT works. I use the automatic keyword class from previous posts to find keywords in an article, search the Amazon API with those keywords, and then replace the keywords in the article with the newly created link. It seems to work fairly well. Mouse over the links in this post to see how the Amazon Previews work.


//To use this you'll need to first download tools.inc.php
//which is included with the AWS Book (awsbook.com)
//samples.
//http://sourceforge.net/project/showfiles.php?group_id=88612
//Find tools.inc.php under 'Chapter 4'
//
require_once("tools.inc.php");
define('SUBID', '1A7XKHR5BYD0WPJVQEG2'); // Your subscription id

define('Searchindex','Books');
//define('Searchindex','Music');
//define('Searchindex','DVD');
//define('Searchindex','Toys');
//define('Searchindex','Video Games');
//define('Searchindex','Software');
//define('Searchindex','Software Video Games');
//define('Searchindex','Electronics');
//define('Searchindex','Tools');
//define('Searchindex','Sporting Goods');
//define('Searchindex','Art Supplies');
//define('Searchindex','Kitchen');
//define('Searchindex','Gourmet Food');
//define('Searchindex','Apparel');
//define('Searchindex','PC Hardware');
//define('Searchindex','VHS');

function awsreplace($keyword) {
$request = 'http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&AWSAccessKeyId='.SUBID.'&Operation=ItemSearch&Keywords='.urlencode($keyword).'&SearchIndex='.Searchindex.'&Sort=salesrank';
// Get the response from Amazon
$xml = file_get_contents($request);
// Parse the results
$Result = xmlparser($xml);
$ASIN = $Result['ItemSearchResponse']['Items'][0]['Item'][0]["ASIN"][0];
$url = '<a href="http://www.amazon.com/gp/product/'.$ASIN.'?ie=UTF8&tag=duelcoastweb-20&linkCode=as2&camp=1789&creative=9325&creativeASIN='.$ASIN.'">';
$replacestr = $url . $keyword . '</a>';
if (!isset($Result['ItemSearchResponse']['Items'][0]['Item'][0]["ASIN"][0])) {
$replacestr = $keyword;
}
return $replacestr;
}


I call the function from within my page like this:

foreach ($keyword_array AS $keyword_replace) {
$body = str_ireplace(trim($keyword_replace),awsreplace(trim($keyword_replace)),$body);
}
?>

Saturday, October 14, 2006

AIS Script Finished

I finished my Smarty script. Complete with automatic keywords, SEO URLs, valid xhtml. The speed is great, and there is no need for a database. Just upload the articles, no other configuration needed. I'll be setting up all of the domains I lost when I was hacked over the next few days with the new script.

The only problem I am having with Smarty is with the caching feature. I cannot figure out how to make Smarty see a script with parameters (i.e. smarty.php?a=1) as its own file. Right now it is caching the page as 1 file, regardless of if the parameters are different. If anyone knows how to solve this problem with Smarty, please let me know. Right now, I have cache turned off.

Thursday, October 12, 2006

Smarty, SmArticle

I've been out of the loop for a while, so I just got exposed to Burt's SmArticle tool. I don't own his product, or have ever seen the code... I decided to write my own version of his tool using Smarty Templates. I've wanted to play with Smarty for a while, and since I have no money, I figured creating my own tool would be the way to go. I'm going to mess with the
Automatic Keyword Generator PHP class by Ver Pangonilo (of Limbo fame). I'm just about done the script, I just want to figure out htaccess redirects to make the URLs SEO. I'll post a link to the site once finished. I don't think I'll release the code since Burt's tool should do the job for most people. If you have any suggestions of things I should include in my script let me know and I may share the code with you.

Wednesday, October 11, 2006

What Happened?

My last post was April 10th of this year. A day or two after that post my reseller account was hacked by a Chinese hacking group. They deleted all of my domains as well as all remote backups that I had stored through the hosts remote backup server. Watching my AIS go from around $900/month to $0 in one day was pretty disheartening. I've rebuilt some of the sites, but haven't taken the time to get them all up and running. I've made only $58.25 in adsense since the sites were hacked. Backup your sites to disk ASAP. Having a remote backup server does not completely protect you.

I'm starting to get the AIS bug again, and will be working on a viral marketing script. I'm developing a product, and hopefully will launch in the next month. If anyone has any opensource code that will help with the viral marketing script, please let me know. Also, please let me know if anyone is still reading this. Thanks.