A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[ VB.NET ] ID to Username

1.4k views · started by Jah ·
#1
[ VB.NET ] ID to Username
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:


Public Wrapper as new HTTPwrapper
public strHTML as string


strHTML = Wrapper.Get("http://www.gaiaonline.com/profiles/" + TextBox1.Text)

Dim UserNM As String
UserNM = Wrapper.Between(strHTML, "<title>Viewing ", "&")
Label2.Text = "Username :" + UserNM


DOWNLOAD!
#2
Dummy!! wrote:
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:

Public Wrapper as new HTTPwrapper
public strHTML as string

        strHTML = Wrapper.Get("http://www.gaiaonline.com/profiles/" + TextBox1.Text)

Dim UserNM As String
UserNM = Wrapper.Between(strHTML, "<title>Viewing ", "&")
Label2.Text = "Username :" + UserNM


DOWNLOAD!


Dim Username As String
Username = Wrapper.Between(Wrapper.Get("http://www.gaiaonline.com/profiles/" + txtID.Text), "<title>Viewing ", "&")
#3
Chad wrote:
Dim Username As String
Username = Wrapper.Between(Wrapper.Get("http://www.gaiaonline.com/profiles/" + txtID.Text), "<title>Viewing ", "&")


Cool it's shorter :P
In fact you removed the strHTML string :P nice nice
Thanks :)
#4
Or, instead of loading the whole (heavy) profile page, use GSI method #606, which requires entering the user's ID.
#5
Or, instead of loading the whole (heavy) profile page, use GSI method #606, which requires entering the user's ID.


Or you could just use method 102 which allows you to use both user id and username to get either the username or id.
#6
I'm guessing that you assumed The next question .
What is the method 102 ?

---------- Post added at 08:27 PM ---------- Previous post was at 08:26 PM ----------

Or, instead of loading the whole (heavy) profile page, use GSI method #606, which requires entering the user's ID.


That would explain the Lagging.
But still i don't see the method.
#7
Chad wrote:
Or you could just use method 102 which allows you to use both user id and username to get either the username or id.


Can you guys explain better ?

---------- Post added at 01:17 PM ---------- Previous post was at 01:17 PM ----------

Or, instead of loading the whole (heavy) profile page, use GSI method #606, which requires entering the user's ID.


Same goes for you! :P
#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).[/50006]
#9
Where did you guys learn this? :)