SMFHacks.com

Modifications/Themes => Modifications Talk => Modification Showcase => Topic started by: stormlrd on June 04, 2007, 10:08:18 am

Title: Link Page
Post 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.
Title: Re: Link Page
Post by: Jump1979man on June 04, 2007, 12:45:51 pm
nice upgrade to the links mod.
Title: Re: Link Page
Post by: stormlrd on June 04, 2007, 12:48:36 pm
thanks bro
Title: Re: Link Page
Post by: SMFHacks on June 04, 2007, 07:04:45 pm
That is awesome glad you got the alexa and pagerank built in now.
Title: Re: Link Page
Post by: stormlrd on June 04, 2007, 09:04:07 pm
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.
Title: Re: Link Page
Post by: SMFHacks on June 04, 2007, 09:38:27 pm
Yeah I noticed the cheats but looks good.

Alexa is pay for use I think .20 cents per 1000 queries.
Title: Re: Link Page
Post by: stormlrd on June 05, 2007, 08:28:27 am
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:

Code: [Select]
$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/
Title: Re: Link Page
Post by: SMFHacks on June 05, 2007, 06:45:29 pm
Hmm. That works when I use Alexa I use their API to grab the direct Alexa rank and that does cost a small fee.
Title: Re: Link Page
Post by: stormlrd on June 05, 2007, 06:51:23 pm
hmm ok
Title: Re: Link Page
Post by: Jump1979man on June 05, 2007, 10:32:05 pm
so when will this be re-packaged and available?
Title: Re: Link Page
Post by: stormlrd on June 05, 2007, 11:46:20 pm
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.
Title: Re: Link Page
Post by: Nite on June 10, 2007, 07:28:48 pm
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!
Title: Re: Link Page
Post by: SMFHacks on June 10, 2007, 07:40:01 pm
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.
Title: Re: Link Page
Post by: ltdeta on June 22, 2007, 01:57:55 am
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

Title: Re: Link Page
Post by: catchpen on October 13, 2007, 10:31:27 pm
Link example on first post is 404 - is this still going?
Title: Re: Link Page
Post by: stormlrd on October 14, 2007, 05:04:15 am
fixed link but page itself still undergoing link updating. We changed domain name.
Title: Re: Link Page
Post by: sasawawa on October 29, 2007, 04:34:46 pm
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
Title: Re: Link Page
Post by: catchpen on October 29, 2007, 10:06:46 pm
That's frikkin awesome!
Title: Re: Link Page
Post by: stormlrd on October 30, 2007, 03:14:08 am
i still need to update some things than yea i'll release it ya'll
Title: Re: Link Page
Post by: sasawawa on October 30, 2007, 07:34:32 am

Looking forward to the release earlier.

 :D


Regards


Me