Go back
Site idea - To include real time stats on external

Site idea - To include real time stats on external

General

Clock
Vote Up
Vote Down


It'd be great if I could include some real time stats on my blog
(http://www.starport.net - shameless plug *hehe*) about my games
in progress or my current player stats.

The concept is similar to http://www.blogrolling.com/ - It'd be a small
bit of php that could be cut-n-pasted from RHP into a homepage.

It'll put extra load on the servers but I recon it'll generate more
people comming back to the site. Specially after there's a few
thousand chess enthusiasts with the RHP stats on their pages.

Anyhow - Excellent site, Im really enjoying it. :-)

r

Clock
Vote Up
Vote Down

Im a victim of long subject truncation - Oh well, It was supposed to
read

Site idea - To include real time stats on external web pages :-)

r

Clock
Vote Up
Vote Down

I could do this - in fact it might not be a bad idea if other people want
the same thing.

How would you include the stat's on your page though? In an iframe?

Let me know what you want and how you want it, and I will do my best.

-Russ

Clock
Vote Up
Vote Down

Hey Russ,

Yep - Once the template code is available everyone could use it.

At blogrolling.com (drawing from their implementation heavily) they
seem to have a number of mathods for doing this - Javascript & PHP
are probably the most widely used.

Once you've signed up with them you click this 'get code' button which
generates a few bits of html that can be copied & pasted into a web
page.

The Javascript looks like this :-

<script language="javascript" type="text/javascript"
src="http://rpc.blogrolling.com/display.php?
r=xxxxxxxxxxxxxxxxxx"></script>

The PHP looks like this :-

<?
//replace the value of $url with your own link from the code
generator
$url = "http://rpc.blogrolling.com/display_raw.php?
r=xxxxxxxxxxxxxxxxxx";
if($my_blogroll = @fopen("$url", "r&quot😉){
while(! feof($my_blogroll)){
$blogroll = fgets($my_blogroll, 255);
echo "$blogroll";
}
}else{
echo "ERROR: $url is currently inaccessable";
}

?>

What to return - How about something like
http://www.redhotpawn.com/core/playerinfo.php?userid=xxxx but just
the stats info (no title, no joining date, no graphics & comments on
the bottom stripped & no html header 🙂 .. ) - I think the classes are
good, they can be redefined in a local stylesheet.

How does that sound ?

r

Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More.