What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP Steam Badge Generator

PHP Steam Badge Generator
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: PHP Steam Badge Generator
In scrape.php edit the pickSteamURL function to check for a valid id and return an error code or redirect to an error page

js code:
private function pickSteamURL($userID) {
//put check in for $userID here
        if (is_numeric($userID)){
            return "http://steamcommunity.com/profiles/" . $userID;
        } else {
            return "http://steamcommunity.com/id/" . $userID;
        }
    }

This post was edited on 03-07-2010 at 02:34 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
03-07-2010 02:33 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP Steam Badge Generator - by Jimbo on 03-06-2010 at 03:56 PM
RE: PHP Steam Badge Generator - by Chancer on 03-07-2010 at 03:05 AM
RE: PHP Steam Badge Generator - by Jimbo on 03-07-2010 at 05:45 AM
RE: PHP Steam Badge Generator - by Spunky on 03-07-2010 at 02:33 PM
RE: PHP Steam Badge Generator - by Jimbo on 03-07-2010 at 03:38 PM
RE: PHP Steam Badge Generator - by Chancer on 03-07-2010 at 10:19 PM
RE: PHP Steam Badge Generator - by Jimbo on 03-07-2010 at 10:34 PM
RE: PHP Steam Badge Generator - by Spunky on 03-07-2010 at 10:55 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On