Results 1 to 15 of 69
Page 1 of 5
FirstFirst 1 2 3 ... LastLast

Thread: [Release v2 beta 3] Who's online on non-vB page (with usernames)

  1. #1
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647

    Updated to v0.0.2

    LAST UPDATED: 3.24.01 10:40 PM Eastern

    Hack version: 0.0.2

    Changes since last version: New option to display either usernames or a total number of registered members.

    For version: 2.0.0 beta 3 (possibly beta 1 and beta 2 also, but it's untested on those versions).

    Files needed: online.php (see zip file attached below).

    Files to edit: Possibly online.php (see instructions below).

    Possible file locations: Anywhere, as long as the relative path to config.php is correct (see instructions below).

    Instructions
    1] Download the zip file online002.zip below. It has online.php in it; unzip this file to a location on your hard drive.
    2] Open online.php in Notepad (Windows) or Simpletext (Mac) or another ASCII text editor (EditPlus, UltraEdit, TextPad, etc. Dreamweaver, FrontPage, and other HTML editors are not ASCII text editors and will in all likelyhood screw the file up.)
    3] Check the path to config.php in the $path variable (in the CONFIG section). Figure out where you're gonna put the file online.php, and then edit the path accordingly. For example, if you put it in your document root (e.g. yoursite.com/) and your board files are in a directory called forum, your path is "forum/admin" (no quotes, no trailing slash).
    4] If you want usernames of registered members displayed, then leave the $usernames option alone. If you want a number instead of a list of names, set this to "off" (no quotes).
    5] Edit the second-to-last line (the "echo" line). Change it to say what you want. The list of registered members is $regmemberson and the number of guests is $guestson - you can use these anywhere in that line.
    6] Save the file and upload it your server.
    7] You can include it on another page one of two basic ways:
    First, by a PHP include:
    Code:
    <? include("online.php"); ?>
    The file that you are going to be including online.php in must then have a .php, .php3, .phtml or other extension that makes your web server recognize it as a file to be parsed as PHP.
    Secondly, by an SSI include:
    Code:
    <!--#include file="online.php"-->
    The file that you are going to be including online.php in must then have a .shtml, .shtm or other extension that makes your web server recognize it as a file to be server-parsed.

    Instructions are also included in the zip file (online002.txt) and brief notes are in the online.php file itself.

    FEEDBACK WANTED! Likes/dislikes/modification requests all gladly accepted!
    Last edited by tubedogg; Mon 26th Mar '01 at 3:37am.
     

  2. #2
    Member Blue2000 is on a distinguished road
    Join Date
    Feb 2001
    Posts
    87
    your the man dude

    this is pop and just what i was looking for
     

  3. #3
    Member DeMoN is on a distinguished road
    Join Date
    Mar 2001
    Location
    Birmingham, UK
    Age
    22
    Posts
    97
    hey thanx ure gr8! now time for bdays to work
    <My signature here>
     

  4. #4
    Senior Member Joshs has disabled reputation Joshs's Avatar
    Join Date
    Jan 2001
    Location
    hytekhosting.com
    Posts
    1,024
    Okay sorry for asking this, I am not that knowledgeable when it comes to things like this...

    Okay... I have http://tech.hytekcomputer.com/online.php working and everything. Now how can I integrate that into http://tech.hytekcomputer.com on the main page so it shows that? If it helps, I am using Front Page 2000 to edit the site...

    Thanks in advance!
     

  5. #5
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    You must "include" it as described in the instructions above. I would *not* use FrontPage to do it as it will probably screw up the code. Open your page in notepad, find where you want to include it, and put the code in that way. Your page must have an extension of .php or .shtml for it to work, and depending on the extension depends on how you include it.
     

  6. #6
    Senior Member Robert Basil is on a distinguished road Robert Basil's Avatar
    Join Date
    Sep 2000
    Location
    Chandler, AZ 85225
    Age
    43
    Posts
    231
    tubedogg,

    Great hack! It's the first one I have seen that does not require visitors to visit the forum first before they can see the "online" usercount.

    I am trying to change the above hack so instad of showing the usernames of the "Members" it will only show a count of the members online (like the "Guests" count for this hack).

    I am trying to figure out where VB get's the $numberregistered variable from but cannot find it in any of the php files.

    Any hints?
    Robert Basil
    Professional forum administrator.
    VB.com Member #1,157 (September, 2000)
    VB.org Member #404 (October, 2001)
     

  7. #7
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    vB gets the $numberregistered from index.php.

    <snipped info about how to change hack - see EDIT below>

    EDIT: I revised the hack (updated to version 0.0.2) to allow you to choose whether to show usernames or a number, so the code that was in this post is now standard-issue. See the first post in this thread.
    Last edited by tubedogg; Sat 24th Mar '01 at 11:58pm.
     

  8. #8
    Senior Member RobAC has disabled reputation
    Join Date
    Jan 2001
    Posts
    1,296
    Nice job tubedogg. I implemented this hack on to my homepage and will be updating it to the new release from yesterday. Thanks.
    Rob
     

  9. #9
    Senior Member jojo85 is on a distinguished road
    Join Date
    Jan 2001
    Location
    FRANCE
    Age
    24
    Posts
    916
    Wiil update it on
    www.ishparentsboards.com
    Best Regards,
    Geoffrey 'G3oW0RK' BALDET.
     

  10. #10
    Member DroppedAtBirth has disabled reputation DroppedAtBirth's Avatar
    Join Date
    Mar 2001
    Location
    Olathe, KS
    Age
    33
    Posts
    59
    I am trying to use your online script thru a template. But the template doesn't seem to pickup the variables from the page. How do I make the template see the variables?
    ~~~~~~~~~~~~~~~~~~~~
    Robert Ward
    ~~~~~~~~~~~~~~~~~~~~
     

  11. #11
    New Member badmeetsevil is on a distinguished road
    Join Date
    May 2001
    Location
    Orlando, Florida. (UCF)
    Age
    32
    Posts
    20
    I seem to be getting "oops1"... what is that, and how do I fix it?
     

  12. #12
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    It can't complete the first query for some reason.

    Try replacing
    Code:
    $db=mysql_connect($servername,$dbusername,$dbpassword);
    mysql_select_db($dbname);
    with
    Code:
    $db=mysql_connect($servername,$dbusername,$dbpassword) or die("can't connect");
    mysql_select_db($dbname) or die("can't get db");
    and tell me if you still get the same error or a different error.
     

  13. #13
    New Member badmeetsevil is on a distinguished road
    Join Date
    May 2001
    Location
    Orlando, Florida. (UCF)
    Age
    32
    Posts
    20
    Yes.. I'm still getting the same error message.. "oops1".
     

  14. #14
    New Member badmeetsevil is on a distinguished road
    Join Date
    May 2001
    Location
    Orlando, Florida. (UCF)
    Age
    32
    Posts
    20
    I'm also not running on VB 2.. but, it should work, shouldn't it?
     

  15. #15
    Senior Member tubedogg has disabled reputation tubedogg's Avatar
    Join Date
    Feb 2001
    Location
    Medina, OH
    Age
    28
    Posts
    13,647
    You must be running vB2 of some variety (beta 1, 2, 3, 4, or 5, or RC1, 2, or 3). It will not work with v1.1.x. Sorry.
     

Page 1 of 5
FirstFirst 1 2 3 ... LastLast

Similar Threads

  1. *s next to usernames in the online list
    By djnoz in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 2
    Last Post: Wed 11th Jun '03, 5:40pm
  2. [Release v2] Who's Online
    By tubedogg in forum Releases: Version 2.x
    Replies: 191
    Last Post: Fri 27th Jul '01, 2:50am
  3. Is there a full page version of Who's online available?
    By kesha1 in forum vBulletin 2 Suggestions and Feedback
    Replies: 5
    Last Post: Mon 14th May '01, 6:47am
  4. Upgraded hosts' forum to beta 3 - not showing beta 3 ?
    By eva2000 in forum Pre beta 4.1 bugs
    Replies: 16
    Last Post: Thu 22nd Mar '01, 1:54pm
  5. Replies: 1
    Last Post: Wed 21st Mar '01, 1:16pm

Bookmarks

Posting Permissions

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