Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Group php script
#21
Alright, I'll add that just now Smile I take it you know how to format a UNIX timestamp in vb.net. If not, I can format it PHP side instead.
#22
no, not really :o
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 ?
#23
I'd guess it's because you've got HTML in your usertitle, though I'm not 100% sure.
#24
Well , usertitle doesn't matter, you changed usergroup to be a name, that's sweet. I use that Smile

So can you make the other things working too now or are some of them not possible ?
#25
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.
#26
[Image: onlineornot.png]
That's the status I mean The 'online (viewing...)'
#27
Yeah, I know. It just isn't working correctly right now Wink
#28
oh ok.
Can you give the other things already?
#29
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.
#30
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


Forum Jump:


Users browsing this thread: 1 Guest(s)