9, January 2009

a pagerank script - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: a pagerank script
« previous next »
Pages: [1] Print

Author Topic: a pagerank script  (Read 1275 times)
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« on: Dec 22, 2005, 05:27:56 AM »

i need a script that can show a small page rank indicator for multiple websites in my links directory, 1 indicator for each site, and accurate. i like the small ones like the topsites pagerank uses. heres an example of how links appear on their own:

Code:
<?php
echo "<a href=".data['weblink_url'].">".data['weblink_name']"</a>";
?>


something like that anyway.. but the only one we should use is the actual url. and we might have to use some lines of code to take away the leading "http://" and trailing "/"

any ideas?

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8357
43129 credits
Members referred : 3



« Reply #1 on: Dec 22, 2005, 11:57:08 AM »

Here you are :

Code:
<?php
$clean_url 
parse_url $data['weblink_url'] );
$clean_url $clean_url'host' ];

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Monetizing Old Posts
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #2 on: Dec 22, 2005, 06:53:35 PM »

that only cleans up the url, doesnt show pagerank ?

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8357
43129 credits
Members referred : 3



« Reply #3 on: Dec 22, 2005, 10:46:53 PM »

Ok here you are :

Code:
<?php
$clean_url 
parse_url $data['weblink_url'] );
$clean_url $clean_url'host' ];
echo 
'<a href="http://pagerank.thetopsites.net/"><img src="http://pagerank.thetopsites.net/r.php?url='.$clean_url.'" border="0" alt="Free PageRank Meter for '.$clean_url.'" /></a>';

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Monetizing Old Posts
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #4 on: Dec 22, 2005, 10:59:53 PM »

So what is 'accurate pagerank' anyways, all the webpages that let you check your pagerank show one of my sites as pagerank 7  Cool but the IE google plugin shows it as PR4...(hmmm maybe I shouldn't have told anyone this... Grin)


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8357
43129 credits
Members referred : 3



« Reply #5 on: Dec 22, 2005, 11:04:01 PM »

That's propably because of the google datacenter that the exact site is using.

Also I've noticed that recently Google wants to dissallow those automatic queries, so I suppose that this can affect this too.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Monetizing Old Posts
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #6 on: Dec 22, 2005, 11:24:24 PM »

k i cant check that right now Nik, ill check when i get home from work.. looks like it will work tho

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #7 on: Dec 23, 2005, 09:10:32 AM »

ya nikolas, this works great! thanks man! Smiley

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8357
43129 credits
Members referred : 3



« Reply #8 on: Dec 23, 2005, 09:16:34 AM »

ya nikolas, this works great! thanks man! Smiley

You are welcome. Just don't forget to keep at least one link back to pagerank.thetopsites.net from each page that you have images, because otherwise you will be automatically be banned from the script.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Monetizing Old Posts
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #9 on: Dec 23, 2005, 10:10:23 AM »

i didnt edit code, i respect your hard work man. each image should have the link built in

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #10 on: Dec 23, 2005, 06:09:17 PM »

That's propably because of the google datacenter that the exact site is using.

Also I've noticed that recently Google wants to dissallow those automatic queries, so I suppose that this can affect this too.

I just noticed that the google toolbar also shows my page with pagerank 7 now so I guess my change from PR4 to PR7 has been propagated to all google servers now. I have no idea why I got upgraded, google has probably changed their PR algorithm and I might be downgraded again after all websites have been processed by the new algorithm. I'm just going to enjoy my PR7 for as  long as it lasts Grin


Last blog : Are You Stumbling Yet?
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=1044
Tags : google pagerank internet explorer topsites Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: a pagerank script
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jan 09, 2009, 03:50:47 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 38.657
Total Topics: 7.772
Total Members: 4.659
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: sardiniasarena

15 Guests, 5 Users online :

16 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2009 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.