27, May 2012

a pagerank script - webmaster forum

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

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



« on: Dec 22, 2005, 04: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?


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



« Reply #1 on: Dec 22, 2005, 10: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 or twitter

Last blog : Butterfly Marketing 2.0
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #2 on: Dec 22, 2005, 05:53:35 pm »

that only cleans up the url, doesnt show pagerank ?


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



« Reply #3 on: Dec 22, 2005, 09: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #4 on: Dec 22, 2005, 09: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: 5799
46391 credits
Members referred : 3



« Reply #5 on: Dec 22, 2005, 10: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 or twitter

Last blog : Butterfly Marketing 2.0
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #6 on: Dec 22, 2005, 10: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


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



« Reply #7 on: Dec 23, 2005, 08:10:32 am »

ya nikolas, this works great! thanks man! Smiley


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



« Reply #8 on: Dec 23, 2005, 08: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 or twitter

Last blog : Butterfly Marketing 2.0
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



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

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


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, 05: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....

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?
May 27, 2012, 09:48:35 pm





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: 62.814
Total Topics: 11.028
Total Members: 21.451
Tutorials : 58
Resources : 929
Designs : 395
Latest Member: sobbin

104 Guests, 2 Users online :

11 users online today:




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