I used Chris's HttpWrapper it's in Releases.
You need A:
Textbox
2 labels
1 Button
Lable 2 will be the one that shows you the Username
and Label 1 will just be on top of the textbox Saying " UserID: "
anyways here is the code:
Code:Public Wrapper as new HTTPwrapper public strHTML as stringDOWNLOAD!Code:strHTML = Wrapper.Get("http://www.gaiaonline.com/profiles/" + TextBox1.Text) Dim UserNM As String UserNM = Wrapper.Between(strHTML, "<title>Viewing ", "&") Label2.Text = "Username :" + UserNM
Results 1 to 9 of 9
Thread: [ VB.NET ] ID to Username
- 13 Sep. 2011 06:45pm #1
[ VB.NET ] ID to Username
- 14 Sep. 2011 01:33am #2
- 14 Sep. 2011 03:54pm #3
- 18 Sep. 2011 05:16pm #4
Or, instead of loading the whole (heavy) profile page, use GSI method #606, which requires entering the user's ID.
- 19 Sep. 2011 08:08pm #5
- 19 Sep. 2011 08:27pm #6
- 13 Nov. 2011 01:17pm #7
- 13 Nov. 2011 04:17pm #8
GSI methods used by Gaia are something like:
http://w w w . gaia online .c o m/chat/gsi/index.php?&v=json&m=[["method number",["parameter 1","parameter 2",...]]]
Method numbers are integers between 1 and 10000 (I guess), and parameters are ... specific parameters used by the specific method that gives a certain information about a part of the site.
Example:
http://www.gaiaonline.com/chat/gsi/index.php?v=json&m=[[102,[50006]]] (GSI method #102) => It gives informations about a user using his used ID (the parameter, which is in our case: 50006).
- 13 Nov. 2011 10:40pm #9