Forum connect?
welcome to Game-Tuts.com - Register
Results 1 to 5 of 5

Thread: Forum connect?

  1. #1
    Formerly ELB PRO
    Join Date
    Sep 2010
    Location
    Everywhere
    Age
    16
    Posts
    493
    Thanks
    63

    Default Forum connect?

    Ok so I added forumconnect.php to my public_html and added the .dll as a reference to my program and it wont work for some reason. This is the code im using.
    Code:
    Dim forumLogin As New ForumConnect.Login("http://www.*********.com/forumconnect.php")
            If forumLogin.Verify(TextBoxX1.Text, TextBoxX2.Text) Then
                Me.Text = ("********** [Public B3TA]" + "Logged in as " & forumLogin.Username & " usergroup: " & forumLogin.Usergroup)
            Else
                MsgBox("Wrong User or Pass!", MsgBoxStyle.Exclamation, "Error!")
            End If
    Its the one oscar supplied but it never works any help?

    Edit: btw im using mybb 1.6
    Fast, simple, lightweight and FREE image capture and upload!
    Check out pixldrop.com today!

  2. #2
    Modio Tool Developer

    Join Date
    Mar 2010
    Location
    UK
    Age
    20
    Posts
    1,817
    Thanks
    426
    Gamertag
    MrJoshuaT

    Default Re: Forum connect?

    I have never worked with mybb before but your syntax is incorrect

    this:
    Code:
    If forumLogin.Verify(TextBoxX1.Text, TextBoxX2.Text) Then
    


    should be:
    Code:
    If forumLogin.Verify(TextBoxX1.Text, TextBoxX2.Text) = true Then
    


    Server / Desktop / Mobile Device developer. I use a Mac . Typos are my speciality.

    Taylor Gang or die.

    Prison Break is the best TV show ever.

    If you require quick help, and are able to fit the query in 140 characters, tweet at me @Joshua_M_Turner
    I'll do my best in 140 characters to help you :)

  3. #3
    ಠ_ಠ


    Join Date
    Nov 2009
    Location
    East Coast USA
    Posts
    1,660
    Thanks
    352
    Gamertag
    th3 d1rty hippe

    Default Re: Forum connect?

    It needs to be the newer DLL if you are using the older one. Check out his blog in his signature for it.

    @Josh

    That should work what he is doing. Because if you put in a boolean value for the if then without checking what it equals it will always check if it is true. Thats fine. In C# this is what I do.

    Code:
    bool IsConnectedToNetwork { get; set; }
    if (IsConnectedToNetwork)
    {
    //do work here.
    }
    Last edited by Matt; 12-02-2010 at 07:37 PM.
    I see you read my signature.

  4. #4
    Formerly ELB PRO
    Join Date
    Sep 2010
    Location
    Everywhere
    Age
    16
    Posts
    493
    Thanks
    63

    Default Re: Forum connect?

    Quote Originally Posted by MATTtheSEAHAWK View Post
    It needs to be the newer DLL if you are using the older one. Check out his blog in his signature for it.

    @Josh

    That should work what he is doing. Because if you put in a boolean value for the if then without checking what it equals it will always check if it is true. Thats fine. In C# this is what I do.

    Code:
    bool IsConnectedToNetwork { get; set; }
    if (IsConnectedToNetwork)
    {
    //do work here.
    }
    I got the .dll from his website but idk ill try fixing im just studying for tests atm
    Fast, simple, lightweight and FREE image capture and upload!
    Check out pixldrop.com today!

  5. #5
    Shenanigans


    Join Date
    May 2009
    Location
    Local host
    Age
    20
    Posts
    3,451
    Thanks
    1996

    Default Re: Forum connect?

    Quote Originally Posted by JoshuaT View Post
    I have never worked with mybb before but your syntax is incorrect

    this:
    Code:
    If forumLogin.Verify(TextBoxX1.Text, TextBoxX2.Text) Then
    


    should be:
    Code:
    If forumLogin.Verify(TextBoxX1.Text, TextBoxX2.Text) = true Then
    


    Errrr and JoshuaT is wrong again. The default value for a boolean statement is always true so you just added unnecessary code.


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
visit GameTuts on these social networking sites