Results 1 to 12 of 12

Thread: [VB6] VBForums - Grab All Online Users

  1. #1

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    [VB6] VBForums - Grab All Online Users

    Hi....

    First of all, thanks to EdgeMeal's Forum Ticker Utility.

    I had used some of his codes without permission(I think, he's not angry at me... ). My program will list all the Users who are online in VBForums.

    BTW, this is a very simple program...! Please post your comments (both positive and negative feedbacks are appreciated... )

    Thanks for reading....
    Attached Files Attached Files
    Last edited by akhileshbc; Feb 18th, 2010 at 09:32 AM. Reason: spelling mistake

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: [VB6] VBForums - Grab All Online Users

    Tried the code and it works as expected! For those who think there is a discrepancy with the forum that is because the forums also counters the numbers of invisible users as well as online users. Whereas akhileshbc's code doesn't. Can you upgrage it to include invisible users too?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: [VB6] VBForums - Grab All Online Users

    Quote Originally Posted by Nightwalker83 View Post
    Tried the code and it works as expected! For those who think there is a discrepancy with the forum that is because the forums also counters the numbers of invisible users as well as online users. Whereas akhileshbc's code doesn't. Can you upgrage it to include invisible users too?
    Thanks for your comment...

    I think the forum won't show it to anyone...! (looks like a security option).

    The working of the above code is,
    download the index/main page and load it(page source) to a string variable. Parse the usernames contained in that string...and display the usernames on a Listbox....

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  4. #4
    Lively Member
    Join Date
    Dec 2008
    Posts
    70

    Re: [VB6] VBForums - Grab All Online Users

    Then use a "get string between" function to get the total users. Google for it

  5. #5

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: [VB6] VBForums - Grab All Online Users

    Quote Originally Posted by thejurm View Post
    Then use a "get string between" function to get the total users. Google for it
    GetString method of ADO..??? But what if the forum is not grabbing the invisible user's names from its database..???
    For example:
    Code:
    SELECT forumUsernames FROM forumUsers WHERE invisbleUsers = FALSE
    Just a thought...! .....

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  6. #6
    Lively Member
    Join Date
    Dec 2008
    Posts
    70

    Re: [VB6] VBForums - Grab All Online Users

    I don't exactly know how you are doing it, but...

    Code:
    Public Function GSB(Main As String, Start As String, Finish As String, Optional Index As Long = 1) As String
        On Error Resume Next
        GSB = Split(Split(Main, Start, Index + 1)(Index), Finish, 2)(0)
    End Function
    Use that will get something of this format:

    Code:
    string = "abc"
    msgbox gsb(string, "a", "c")
    'returns "b"
    If you are using an HTML source for this then you are in good shape

  7. #7

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: [VB6] VBForums - Grab All Online Users

    Quote Originally Posted by thejurm View Post
    I don't exactly know how you are doing it, but...

    Code:
    Public Function GSB(Main As String, Start As String, Finish As String, Optional Index As Long = 1) As String
        On Error Resume Next
        GSB = Split(Split(Main, Start, Index + 1)(Index), Finish, 2)(0)
    End Function
    Use that will get something of this format:

    Code:
    string = "abc"
    msgbox gsb(string, "a", "c")
    'returns "b"
    If you are using an HTML source for this then you are in good shape
    I thought your post was about displaying the Invisible Users...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  8. #8
    Lively Member
    Join Date
    Dec 2008
    Posts
    70

    Re: [VB6] VBForums - Grab All Online Users

    Oh I thought we were talking about getting the correct count

  9. #9
    Member
    Join Date
    Sep 2008
    Location
    Turkey
    Posts
    37

    Re: [VB6] VBForums - Grab All Online Users

    Thanks For Share!!!

  10. #10

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: [VB6] VBForums - Grab All Online Users

    Quote Originally Posted by mustiback View Post
    Thanks For Share!!!
    Welcome....

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  11. #11
    Member
    Join Date
    Dec 2007
    Location
    Brunei Darussalam
    Posts
    50

    Re: [VB6] VBForums - Grab All Online Users

    what if the forums have different colors on the usernames?
    like the viprasys.org? does it have any problems with that?

    can you help me with it?


    @akhileshbc
    your code was amzing

    i will try to study and learn from it
    thanks
    Last edited by eyestrain; Jun 1st, 2010 at 09:34 AM.

  12. #12

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: [VB6] VBForums - Grab All Online Users

    You're welcome...

    If you go through the VB source code and the page source(HTML code) of the index page of your site, you will be able to do the necessary changes all by yourself.

    If you have any questions, feel free to post it...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width