of     1   

Bubby4j
#52720622Saturday, August 13, 2011 4:42 PM GMT

I'm working on a project, What would be the best way to convert a roblox UserID to a roblox Username? (Not in roblox, I'm using PHP, so I would get a page on roblox's site) Does anyone know of a roblox page specially made for it? Or will I have to get their entire profile page?
aboy5643a
#52720775Saturday, August 13, 2011 4:45 PM GMT

Mustyoshi wanted this the other way around. Just try finding a snippet of the coding in the profile's page that is universal except for the name. Should work with some string manipulating.. ~Post here if you're Viet Namese, Canadian or Chinese. I'm from these 3 places. - Some confused kid from Language Center ~
Bubby4j
#52720873Saturday, August 13, 2011 4:46 PM GMT

Yeah. I just wish there was a specialised URL, roblox's site pages take forever to load, and doing it 1,263 times won't be fast.
aboy5643a
#52720985Saturday, August 13, 2011 4:48 PM GMT

Oooo yeah... That sucks. I'm sure there's a place where the ID's are kept with the usernames on one page. But I'm sure accessing it would require h4x. ~Post here if you're Viet Namese, Canadian or Chinese. I'm from these 3 places. - Some confused kid from Language Center ~
trappingnoobs
#52721187Saturday, August 13, 2011 4:52 PM GMT

@aboy It's called a database, and yes it would require 'hax' to get into it. @OP Load their profile page and use getElementById.innerHTML to get their name.
aboy5643a
#52721240Saturday, August 13, 2011 4:53 PM GMT

@trapping I know T_T ~Post here if you're Viet Namese, Canadian or Chinese. I'm from these 3 places. - Some confused kid from Language Center ~
gz4
#52723018Saturday, August 13, 2011 5:23 PM GMT

HEAD /User.aspx?username=name And read the Location header
Bubby4j
#52761125Sunday, August 14, 2011 2:39 AM GMT

@gz That would work great for username to userid, but I'm trying to do it the other way around.
eyeontheprizeREBOOT
#52761740Sunday, August 14, 2011 2:48 AM GMT

elucidir
#52762002Sunday, August 14, 2011 2:52 AM GMT

I wrote this a while back: local function getname(id) return game:GetService"InsertService":GetUserSets(id)[1].CreatorName end
elucidir
#52762051Sunday, August 14, 2011 2:53 AM GMT

The names aren't moderated however, so be aware of that.
elucidir
#52763400Sunday, August 14, 2011 3:13 AM GMT

If you want a URI however: /Game/Tools/InsertAsset.ashx?nsets=20&type=user&userid=%d Then just look for the name in CreatorName%s
Bubby4j
#52763799Sunday, August 14, 2011 3:20 AM GMT

@elucider That is great! Thank you!

    of     1