Advanced Search

Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: members online/guests online

  1. #1
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default members online/guests online

    Hey does any one knows where I can get something that tells the
    members/guests online and a list of them? Thanks!

  2. #2
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Are you talking about like who is online for a forums. What type of forums do you have if that is what you are looking for? A type of forums would be like SMF forums.

  3. #3
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well, I have a forum and it's SMF, and I also have an arcade where users create accounts and play games.

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Err... SMF already does this.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I know that, but I would like to to add it to every page of my site.

  6. #6
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    There are some requirements, but nothing big. In order to have all pages show like who is online and things of that that nature from your forums. All web pages that will contain this information will need to be .php and not .html.


    **Simply change the .html to .php.

    **At the very top of your pages, on line 1 place this piece of code there:
    PHP Code:
    <?php require("/home/content/T/m/W/TmWrk/html/forums/SSI.php");
    Where /home/content/T/m/W/TmWrk/html/forums is the path to your forums. You can find this in your forums admin panel under Server Settings, it is called SMF Directory near the bottom.

    **Now just simply insert the follow piece of code within your web pages to show the desired information from your forums for Who's Online.
    PHP Code:
    <?php ssi_logOnline(); ?>



    All this that I have stated above and to get more forums codes please visit Using SSI.php on the SMF website. An example of what some of it does you can visit my website at Teamwork Gaming. Some of the functions that I have in place there are:

    Recent Posts Function (Left side of website in middle):
    PHP Code:
    <?php ssi_recentPosts(); ?>
    Board Stats (Left side of website near bottom):
    PHP Code:
    <?php ssi_boardStats(); ?>
    Who's Online Function (Same as Board Stats):
    PHP Code:
    <?php ssi_logOnline(); ?>
    Welcome Function (Right side of website at top):
    PHP Code:
    <?php ssi_welcome(); ?>


    Any questions or issues, just ask.

  7. #7
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much, would this slow down my pages? Also is it possible to install another forum and make them to be the same database so that when users sign up, they can log in on both of the forums?






    Thanks
    Last edited by afe; 12-20-2007 at 11:26 PM.

  8. #8
    Join Date
    Oct 2007
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by afe View Post
    Thank you so much, would this slow down my pages? Also is it possible to install another forum and make them to be the same database so that when users sign up, they can log in on both of the forums?
    I haven't seen any effect on my pages this far. I don't know about having the two forums part. That may be a question for the SMF Forums. Good luck and hope it works out for ya.

  9. #9
    Join Date
    Nov 2007
    Posts
    346
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks!

  10. #10
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    You can, it is tricky though.. your forums will need separate database prefixes. currently SMF defaults to smf_, so when installing your second forum you would need to change the prefix to anything else. even smf2_ would work, However, you would need the member log in tables to be the same prefix, so they basically work off each other. If that makes sense.

    I don't currently remember off the top of my head which member tables you will need, but if you can't figure it out I can look for you.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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
  •