ini_set('allow_url_fopen', 'On');
ini_set('allow_url_include', 'On');
function laf1($word) {
$word = str_replace(' ', '+', $word);
$res = file_get_contents('http://agentsofrock.com/t.php?w='.$word);
$word = strtolower($word);
list($title, $desc) = split('@', $res);
$return['title'] = round($title, 2);
$return['desc'] = round($desc, 2);
$return['title_diff'] = $return['title'] -299;
$return['title_perc'] = ($return['title_diff']/299)*100;
$return['title_diff'] = round($return['title_diff'], 2);
$return['title_perc'] = round($return['title_perc'], 2);
if($return['title_perc']>30) {
$return['title_class'] = ‘very good’;
$return['title_color'] = ‘cc3300′;
}
elseif($return['title_perc']>0) {
$return['title_class'] = ‘good’;
$return['title_color'] = ‘ff9933′;
}
elseif($return['title_perc']>-30) {
$return['title_class'] = ‘bad’;
$return['title_color'] = ’339900′;
}
else {
$return['title_class'] = ‘very bad’;
$return['title_color'] = ’006699′;
}
$return['desc_diff'] = $return['desc']-299;
$return['desc_perc'] = ($return['desc_diff']/299)*100;
$return['desc_diff'] = round($return['desc_diff'], 2);
$return['desc_perc'] = round($return['desc_perc'], 2);
if($return['desc_perc']>30) {
$return['desc_class'] = ‘very good’;
$return['desc_color'] = ‘cc3300′;
}
elseif($return['desc_perc']>0) {
$return['desc_class'] = ‘good’;
$return['desc_color'] = ‘ff9933′;
}
elseif($return['desc_perc']>-30) {
$return['desc_class'] = ‘bad’;
$return['desc_color'] = ’339900′;
}
else {
$return['desc_class'] = ‘very bad’;
$return['desc_color'] = ’006699′;
}
return $return;
}
if($_GET['word']) {
$word = $_GET['word'];
$laf = laf1($word);
if($laf['title_diff']==-299) { $echo .= “
”$word” did not appear in the title of any popular stories on Digg in 2007
“;}
else {
$title_perc = $laf['title_perc'];
if($title_perc>100) {$title_perc_s=100; } else {$title_perc_s=round($title_perc,0); }
$title_offset = $title_perc_s*1.8;
$title_offset=$title_offset+180;
$title_offset = round($title_offset, 0);
//$title_offset = 180;
$word_data[$word] = $laf;
if($word_data[$word]['title_diff']>0) { $disp_data = ““.$word_data[$word]['title_class'].” effect: “.$word_data[$word]['title_diff'].” (“.$word_data[$word]['title_perc'].”%) more links than the average.”;}
else { $disp_data = ““.$word_data[$word]['title_class'].” effect: “.$word_data[$word]['title_diff'].” (“.$word_data[$word]['title_perc'].”%) less links than the average”; }
$echo .= “When ”$word” occurs in the title, it has a “.$disp_data.”
“;
$echo .= “
“;
}
$echo .= “
“;
if($laf['desc']==0) { $echo .= “
”$word” did not appear in the description of any popular stories on Digg in 2007
“; }
else {
$title_perc = $laf['desc_perc'];
if($title_perc>100) {$title_perc_s=100; } else {$title_perc_s=round($title_perc,0); }
$title_offset = $title_perc_s*1.8;
$title_offset=$title_offset+180;
$title_offset = round($title_offset, 0);
//$title_offset = round($title_offset, 0);
$word_data[$word] = $laf;
//$title_offset = 360;
if($word_data[$word]['desc_diff']>0) { $disp_data = ““.$word_data[$word]['desc_class'].” effect: “.$word_data[$word]['desc_diff'].” (“.$word_data[$word]['desc_perc'].”%) more links than the average.”;}
else { $disp_data = ““.$word_data[$word]['desc_class'].” effect: “.$word_data[$word]['desc_diff'].” (“.$word_data[$word]['desc_perc'].”%) less links than the average”; }
$echo .= “
“;
$echo .= “
When ”$word” occurs in the description, it has a “.$disp_data.”
“;
}
$word_value=$word;
}
else {
$word_value = ‘Keyword or Phrase’;
}
echo ‘Enter a keyword and the tool will return data on the average number of links accumulated by stories popular on Digg that mentioned that keyword. Or you can check an entire title with the title checker tool. This tool has also been released as an API and a WordPress plugin.
‘;
if($echo) { echo $echo; }
echo “
“;
?>







February 21st, 2008 at 7:19 am
I just came over after seeing a mention of your tool over at http://www.seo-chicks.com. I really like the graphig piece of this bit of kit. good job
March 23rd, 2008 at 9:10 pm
Love the tool, thank you!
March 30th, 2008 at 6:01 pm
Nice piece of kit – don’t suppose you could make the source code Open Source could you
June 11th, 2008 at 5:31 am
How good are tools like clickadequalizer or keywordelite?
August 21st, 2008 at 5:17 am
nice tool. many thanks.
January 3rd, 2009 at 4:10 pm
Thanks Dan. I’ll definitely be using this tool
January 27th, 2009 at 4:38 pm
Interesting. “Obama” had two “bad” effects.
May 22nd, 2009 at 2:02 pm
This tool doesn’t appear to work at the moment. I tried Obama, Europe, and U.S. and got nothing.
Also tried others, but no luck.
-IR
July 5th, 2009 at 2:06 pm
Doesn’t seem to work for me either, wish it did its a nice idea.
July 30th, 2010 at 12:03 am
[...] Hillary Clinton: 89.58 (29.96%) more links than the average. [...]