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:
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. RE: PHP Steam Badge Generator
quote:
Originally posted by Chancer
quote:
Originally posted by Spunky
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;
        }
    }

But what if any user sets his ID to a number code?
Yes, that is a limitation at the moment, and I have absolutely no clue how I would resolve that.
03-07-2010 10:34 PM
Profile E-Mail 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