2011-07-08, 08:42 AM
2011-07-08, 08:44 AM
no, not really :o
At the moment I do this in vb.net :
are there better ways to do this? I found this on google, never used xml before.
EDIT :
I now use this :
The only thing I don't receive is the usertitle ?
At the moment I do this in vb.net :
Dim UserInfo As XmlTextReader = New XmlTextReader("http://mysite.com/userinfo.php?uid=1")
While (UserInfo.Read())
Dim type = UserInfo.NodeType
If (type = XmlNodeType.Element) Then
If (UserInfo.Name = "username") Then
Label1.Visible = True
Label1.Text = UserInfo.ReadInnerXml.ToString()
End If
End If
End While
it Gives me 'SergeMorel', but it lags...are there better ways to do this? I found this on google, never used xml before.
EDIT :
I now use this :
Dim UserInfo As XmlTextReader = New XmlTextReader("http://www.sergemorel.co.cc/userinfo.php?uid=1")
While (UserInfo.Read())
Dim type = UserInfo.NodeType
If (type = XmlNodeType.Element) Then
If (UserInfo.Name = "uid") Then
Label1.Text = UserInfo.ReadInnerXml.ToString()
End If
If (UserInfo.Name = "username") Then
Label2.Text = UserInfo.ReadInnerXml.ToString()
End If
If (UserInfo.Name = "usertitle") Then
Label3.Text = UserInfo.ReadInnerXml.ToString()
End If
If (UserInfo.Name = "postcount") Then
Label4.Text = UserInfo.ReadInnerXml.ToString()
End If
If (UserInfo.Name = "usergroup") Then
Label5.Text = UserInfo.ReadInnerXml.ToString()
End If
End If
End While
Works good, I put it in a backgroundworker & goes pretty fast now.The only thing I don't receive is the usertitle ?
2011-07-08, 09:12 AM
I'd guess it's because you've got HTML in your usertitle, though I'm not 100% sure.
2011-07-08, 09:20 AM
Well , usertitle doesn't matter, you changed usergroup to be a name, that's sweet. I use that 
So can you make the other things working too now or are some of them not possible ?

So can you make the other things working too now or are some of them not possible ?
2011-07-08, 09:25 AM
I'm just doing it now, but I'm struggling a little with the online status as the function doesn't seem to be working. The rest is done though.
2011-07-08, 09:33 AM
That's the status I mean The 'online (viewing...)'
2011-07-08, 09:38 AM
Yeah, I know. It just isn't working correctly right now 

2011-07-08, 09:42 AM
oh ok.
Can you give the other things already?
Can you give the other things already?
2011-07-08, 09:44 AM
Ok, I've got it sorted. The only issue is that the html link tag exists - I'm just going to remove that, then I'm done.
2011-07-08, 09:46 AM
I already removed the usertitle in mine (the one that didn't show up), because it's buggy & I don't really need it :p