Link Attraction Factors Keyword Tool

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 “




“;
?>

View Comments to “Link Attraction Factors Keyword Tool”

  1. Mike Says:

    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

  2. Wil Reynolds Says:

    Love the tool, thank you!

  3. Mercury Thread Says:

    Nice piece of kit – don’t suppose you could make the source code Open Source could you :)

  4. Keyword tools Says:

    How good are tools like clickadequalizer or keywordelite?

  5. webholder Says:

    nice tool. many thanks.

  6. KyNam Doan Says:

    Thanks Dan. I’ll definitely be using this tool

  7. Carlos Abler Says:

    Interesting. “Obama” had two “bad” effects.

  8. IR Says:

    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

  9. Tom Says:

    Doesn’t seem to work for me either, wish it did its a nice idea.

  10. 45 Ways to Power Up Your Blog Says:

    [...] Hillary Clinton: 89.58 (29.96%) more links than the average. [...]

Leave a Reply

blog comments powered by Disqus

Get my 22 page report full of scientifically proven ways to get more ReTweets by subscribing to my blog via email.

the social media marketing book

Key Posts

Recent Posts

Topics

Blogroll

Copyright © 2010 by Dan Zarrella, social media marketing and viral marketing consultant. All rights reserved. site map

DanZarrella.com, Social & Viral Marketing Scientist