SMFHacks.com
Modifications/Themes => Modifications Talk => Modification Showcase => Topic started by: stormlrd on June 04, 2007, 10:08:18 am
-
http://www.tinyportalmedia.com/main/index.php?action=links
Once i get the pagerank code sorted I'll get the modifications to hacks and see what he thinks ;)
hope you enjoy.
-
nice upgrade to the links mod.
-
thanks bro
-
That is awesome glad you got the alexa and pagerank built in now.
-
lol, well i cheated but it does work. I do have the alogrithm and whatnot for setting it up ourselves but cant get it work yet.
-
Yeah I noticed the cheats but looks good.
Alexa is pay for use I think .20 cents per 1000 queries.
-
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/
-
Hmm. That works when I use Alexa I use their API to grab the direct Alexa rank and that does cost a small fee.
-
hmm ok
-
so when will this be re-packaged and available?
-
Thats up to Hacks, it still needs some tweaking on the pagerank script so that its not bouncing off another site but all in all should take to long.
-
Hmm. That works when I use Alexa I use their API to grab the direct Alexa rank and that does cost a small fee.
Strange.
In my directories, I display the Traffic Rank for the site that one performs a "details" on. All, I did here was do some variable manipulation -- because you can have your own Alexa box on your own site, and it doesn't cost. So I thought, "Hey. I'll just use the same code that someone would use on their own site, but substitute the domain for a variable that changes depending up on the site being detailed."
And it works!
-
That might be the better way to go then the alexa api since this way is free and the results are real time and I would not have to update the cached data every 24 hours.
-
is it possible implementing something like "new entrys" or "updatet entrys"
so everyone can see with one or two clicks what has changed since last visit
Similar to "show unread" in SMF-Forum
-
Link example on first post is 404 - is this still going?
-
fixed link but page itself still undergoing link updating. We changed domain name.
-
Cool , stormlrd
Could you share us your link us code ?
The alexa and google page rank doesn't work as i using the default link mod.
Could you tell me what should i change then they will work as yours?
i do appreciate for your help :-X
-
That's frikkin awesome!
-
i still need to update some things than yea i'll release it ya'll
-
Looking forward to the release earlier.
:D
Regards
Me