Yeah I noticed the cheats but looks good.
Alexa is pay for use I think .20 cents per 1000 queries.
hmm i dont know bro i have an account with them and i dont get charged for it. your promoting alexia so as far as i know there is no charge.
http://www.alexa.com/site/site_stats/signup but i didnt use the graph from here the graph is simply this:
$idlink = $row['ID_LINK'];
$dbresult5 = db_query("SELECT url FROM {$db_prefix}links WHERE ID_LINK = $idlink ", __FILE__, __LINE__);
$row5 = mysql_fetch_assoc($dbresult5);
$targeturl = $row5['url'];
mysql_free_result($dbresult5);
$replacement = '';
$pattern = 'http://';
$pattern2 = 'www.';
$targeturl = strtolower($targeturl);
$targeturl = eregi_replace($pattern, $replacement, $targeturl);
$targeturl = eregi_replace($pattern2, $replacement, $targeturl);
if(!empty($modSettings['smflinks_disp_alexa'])){
//echo '<p class="smalltext"><b><em>' . $txt['smflinks_alexa'] . ':</em></b> ' . $row['alexa'] . '</p>';
echo '</div><h5 class="caption">WebSite Alexa Ranking Details</h5><table width="100%"><td align="center" valign="middle">';
echo '<!-- Alexa Graph Widget from http://www.alexa.com/site/site_stats/signup -->
<img border="0" src="http://traffic.alexa.com/graph?w=250&h=175&r=6m&z=&y=r&u=www.'.$targeturl.'&u=">
<!-- end Alexa Graph Widget -->';
you can adjust width and height in the src url path if you want it larger or smaller
and the page rank code is from here:
http://www.googleprr.com/