Shoutbox

PHP Coder Needed - Custom Sig? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: PHP Coder Needed - Custom Sig? (/showthread.php?tid=74317)

PHP Coder Needed - Custom Sig? by prashker on 05-11-2007 at 10:55 PM

See my 2 sigs at the bottom of this post :p?

Anyway to code a php code that can merge them both into a custom signature I can make in Photoshop :p?

I suppose you will fetch the StepMania Data From
http://stepmaniaonline.com/index.php?mod=Stepmani...e&player=sonicsamz

and Xbox 360 from
http://live.xbox.com/en-US/profile/profile.aspx?p...GamerTag=SonicSamZ

If anybody is interested in helping a fellow jew, reply to thread (a) <3.


RE: PHP Coder Needed - Custom Sig? by vikke on 05-11-2007 at 10:58 PM

You would be able to parse the StepMania data, but not the Xbox 360 as it requires log in.

I will take a look at it tomorrow.


RE: PHP Coder Needed - Custom Sig? by MeEtc on 05-11-2007 at 11:00 PM

yup, as per MSN


RE: PHP Coder Needed - Custom Sig? by prashker on 05-11-2007 at 11:02 PM

quote:
Originally posted by vikke

You would be able to parse the StepMania data, but not the Xbox 360 as it requires log in.

I will take a look at it tomorrow.

http://www.glop.org/gamercard/ < Then how does this site do it :p?

Actually. I got a source code of a site that does it :P.

http://www.liveinsanantonio.net/Xbox_GC_Script.zip
RE: PHP Coder Needed - Custom Sig? by Lou on 05-11-2007 at 11:06 PM

Working on it: http://www.dotlou.com/stuff/sam_sig/

Edit: This is loads harder than I thought. I'm still working on it though.

Edit2: I'm currently connected to like 3 php irc channels, but everybody seems to be avoiding to help people whose questions involve any kind of thinking, so this could be a while.

The link above currently only outputs the first image :S


RE: PHP Coder Needed - Custom Sig? by prashker on 05-12-2007 at 03:52 AM

Well dotLou, there is still MeEtc and vikke who can use powers ;o.

lets see what they got :p.


RE: PHP Coder Needed - Custom Sig? by vikke on 05-12-2007 at 08:51 AM

For Stepmania Online, you can just use the cURL library for PHP. And then do like this:

code:
<?
function getHTML($url) {
   $curl = curl_init();
   
   curl_setopt($curl, CURLOPT_URL, $url);
   curl_setopt($curl, CURLOPT_HEADER, 0);
   curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($curl, CURLOPT_TIMEOUT,120);
   $HTML = curl_exec($curl);
   curl_close($curlHandle);
   return $HTML;
  }
$HTML = getHTML(”http://stepmaniaonline.com/index.php?mod=Stepmania+Online&player=sonicsamz”);
// Parse the HTML here.
?>

To get rank, search for "<FONT SIZE=+2><B>Rank " and then read until "</B>" appears.
To get last game name search for "<I><FONT SIZE=+3>" and read until "</FONT>".

Edit: Fixed code.
RE: PHP Coder Needed - Custom Sig? by hmaster on 05-12-2007 at 10:54 AM

quote:
Originally posted by vikke
code:
getURL(”http://stepmaniaonline.com/index.php?mod=Stepmania+Online&player=sonicsamz”);


should be
code:
getHTML(”http://stepmaniaonline.com/index.php?mod=Stepmania+Online&player=sonicsamz”);

:)

RE: RE: PHP Coder Needed - Custom Sig? by vikke on 05-12-2007 at 10:56 AM

quote:
Originally posted by hmaster
quote:
Originally posted by vikke
code:
getURL(”http://stepmaniaonline.com/index.php?mod=Stepmania+Online&player=sonicsamz”);


should be
code:
getHTML(”http://stepmaniaonline.com/index.php?mod=Stepmania+Online&player=sonicsamz”);

:)


Yeah. I wrote that very fast.

Thanks.
RE: PHP Coder Needed - Custom Sig? by hmaster on 05-12-2007 at 11:27 AM

quote:
Originally posted by vikke
Yeah. I wrote that very fast.

Thanks.

code:
curl_close($curlHandle);

should be

code:
curl_close($curl);

:)
RE: PHP Coder Needed - Custom Sig? by John Anderton on 05-12-2007 at 01:19 PM

quote:
Originally posted by SonicSam
If anybody is interested in helping a fellow jew, reply to thread (A) <3.
Ok so I'm not a jew. So I'm not allowed to help you? :cry:

One more thing. Firefox just informed me that the word "jew" is not in its dictionary. Suggestions are sew, few, mew, dew and new. :sad:
RE: PHP Coder Needed - Custom Sig? by prashker on 05-12-2007 at 03:53 PM

quote:
Originally posted by John Anderton
Ok so I'm not a jew. So I'm not allowed to help you?

If you can, it's good :p.

FireFox's dictionary sucks :p.