“;
$sentance_display .= ““.$word.” “;
}
else {
$total = $total+$word_data[$word]['title'];
$sentance_display .= ““.$word.” “;

if($word_data[$word]['title_diff']>0) { $disp_data = $word_data[$word]['title_perc'].”% more links than the average.”;}
else { $disp_data = $word_data[$word]['title_perc'].”% less links than the average”; }

$table_display .= ”

“;
}
}
}
else {
$title_value = ‘Your Title’;
}
echo ‘Enter a title and the tool will breakdown the words and display the effect they had on the link accumulation of popular Digg stories. Or you can check a specific keyword’s effect with the keyword tool. This tool has also been released as an API and a WordPress plugin.

‘;
if($title) {
$average = $total/$count;
$title_diff = $average-299;
$title_perc = ($title_diff/299)*100;

if($title_perc>20) {
$title_class = ‘Very Good’;
$title_color = ‘cc3300′;
}
elseif($title_perc>0) {
$title_class = ‘Good’;
$title_color = ‘ff9933′;
}
elseif($title_perc>-20) {
$title_class = ‘Bad’;
$title_color = ’339900′;
}
else {
$title_class = ‘Very Bad’;
$title_color = ’006699′;
}

if($title_perc>0) {
$l_disp = “more”;
}
else {
$l_disp = “less”;
}
echo ““.$sentance_display.”
“;
echo “

LAF Title Check

//$word = '';
ini_set('allow_url_fopen', 'On');
ini_set('allow_url_include', 'On');

function laf1($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']>20) {
$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']>-20) {
$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($desc_perc, 2);

if($return['desc_perc']>20) {
$return['desc_class'] = ‘Very Good’;
}
elseif($return['desc_perc']>0) {
$return['desc_class'] = ‘Good’;
}
elseif($return['desc_perc']>-20) {
$return['desc_class'] = ‘Bad’;
}
else {
$return['desc_class'] = ‘Very Bad’;
}

return $return;
}

function clean($word) {
$word = strtolower($word);
$word = str_replace(‘.’, ”, $word);
$word = str_replace(‘,’, ”, $word);
$word = str_replace(‘”‘, ”, $word);
$word = str_replace(‘.’, ”, $word);
$word = str_replace(‘:’, ”, $word);
$word = str_replace(‘;’, ”, $word);
return $word;
}

if($_GET['title']) {
$title = $_GET['title'];
$title_value = $title;
$words = split(” “, $title);
$count= count($words);
foreach($words as $word) {
$word = clean($word);
$word_data[$word] = laf1($word);
if($word_data[$word]['title_diff']==-299) {
$table_display .= ”

No Data Available on $word.
$word     “.$word_data[$word]['title_class'].”   “.$disp_data.” 
“.$table_display.”


This title has a “.$title_class.” overall effect of “.round($title_perc, 2).”% “.$l_disp.” links than the average.
“;

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);

echo ““;
echo “

“;
}
?>







View Comments to “LAF Title Check”

  1. Teasas Tips Says:

    Thank you Dan, I am so glad I found this article through Mixx! I wrote today about drilling down keywords using Wordtracker…and reading your article link attraction factors:getting dugg and going viral taught me something else I can do to enhance my blog. Thank you.

  2. Robert de Bock Says:

    This tool is great! Will try to write better titles using this tool in the future. Thanks for your great effort.

  3. Troy Says:

    This is an amazing tool, reminds me of the software Glyphius that I read about on Copyblogger a while ago, but it’s entirely free. Definitely will bookmark this and use it often!

  4. Melissa Says:

    Great tool, thanks.

  5. SEO Diva Says:

    I love this tool! I put a link to it in my latest blog post for my readers. Thank you for making it available.

  6. Not John Chow Says:

    This is fun! I wonder if the tool could be enhanced to look at word combonations or short common phrases?

    Useful though!

  7. Web Site Marketing Colorado Says:

    The timing of this tool is absolutely perfect! I am just preparing a press release for prweb as I came across this tool and I personally feel it is doing wonders for my headline!

  8. Alison Says:

    I’ll admit, I was skeptical, but I like it. Very interesting to play with. We’ll see how the story plays though. Thanks Dannee.

  9. Cyndee Haydon Says:

    Thanks for the tool – the SEO Diva gave it big praise so I came to check it out myself.

  10. Abu Fathimah Says:

    Great tools … maybe if you tell me how add it to popular stories at technorati or stumbleupon .. it make be great ..

    or directly based on google popularity .. :D

  11. Digg and Del.icio.us tools/resource compedium | Online PR and social media consultancy - Liberate Media Says:

    [...] to create a good Digg title? Check out this tool from Dan [...]

  12. Tom Says:

    It doesn’t work

  13. » Ultimate Social Media Resource List | Utah Search Engine Optimization | Utah SEO Consultant Says:

    [...] Link Attraction Factor Title Check [...]

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.

Recently Popular Posts

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