Announcement

Collapse
No announcement yet.

[Release v2] Who's Online

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Release v2] Who's Online

    UPDATE: v0.2.2 has been released, fixing the problem of session hashes not always being removed and replaced correctly in the URLs of where people are. It also attempts to fix the problem of members appearing on the list twice, however don't hold your breath on this one.
    To upgrade, just reupload online.php to your server.
    --------------------------------
    Old update: v0.2.1 has been released. If you already have this hack installed and working you DO NOT NEED TO UPGRADE! The only change is I adjusted the instructions to account for an error in the order I had them in. THERE IS NO CHANGE TO THE HACK ITSELF. If you have not gotten this installed and working yet, please download the zip file (online021.zip) and work from that one.
    --------------------------------
    Old Update: You can now see where guests are on your board. To upgrade, simply download the new zip file, and read the UPGRADE INSTRUCTIONS in the online.txt file.
    --------------------------------
    Old Update: I fixed a small bug that was making one long string out of the URL To upgrade, just replace online.php on your server.
    --------------------------------
    Old Update: I added the missing mysql.php file.
    --------------------------------

    This has been requested many, many times. It produces a page that displays who's online and where they are. You can link to it from anywhere on your board, or make it just for Admins and Moderators (instructions for that included).

    Hack version: v0.2.2

    For version: vB2 RC2

    Files needed: online.php

    Files to edit: admin/sessions.php, possibly admin/index.php and mod/index.php

    Templates to edit/create: online, online_userbits, online_guestbits, possibly forumhome_loggedinusers

    Instructions are included in the zip file.

    Feedback wanted.
    Please do not PM or IM me about this hack. Please post it in this thread. Thanks!
    Last edited by tubedogg; Thu 26th Jul '01, 10:53pm.

  • #2
    i'll let you know how it goes soon
    :: Always Back Up Forum Database + Attachments BEFORE upgrading !
    :: Nginx SPDY SSL - World Flags Demo [video results]
    :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

    Comment


    • #3
      tubedogg
      i'm getting this message when going to cp after making changes in sessions.php

      There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

      An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

      We apologise for any inconvenience.
      You're my Prince of Peace
      And I will live my life for You

      Comment


      • #4
        View the source of the page and copy and paste the error here, or copy and paste the email you got from it, please.

        Comment


        • #5
          I took a quick glance at your work and I don't see where you told anyone to create the location field in the session table

          Comment


          • #6
            I think I need to go smack my head against a wall for a while.

            Wow. I cannot believe I forgot that. The file is right here, waiting for inclusion.

            OK let's back up a step. Anyone who has already done so, please redownload the zip file and make sure you run the mysql.php file included. (See the instructions for more on what do to.)



            Thank you, Freddie!
            Last edited by tubedogg; Sun 6th May '01, 10:54pm.

            Comment


            • #7
              now its working but when i go to online.php in location field i get this url:

              http://127.0.0.1/vb2rc2/upload/vb2rc2uploadindex.php

              it should be

              http://127.0.0.1/vb2rc2/upload/vb2rc2/upload/index.php
              Last edited by nuno; Sun 6th May '01, 11:36pm.
              You're my Prince of Peace
              And I will live my life for You

              Comment


              • #8
                nuno, do me a favor and try something. In online.php, find
                Code:
                		$location=str_replace("/","",$location);
                and replace it with
                Code:
                		if (strrpos($location,"/")!==false) {
                			$num = strrpos($location,"/");
                			$location = substr_replace($location,"/",$num,1);
                		}
                and tell me if that fixes it.

                Comment


                • #9
                  fixed Kevin
                  thank you so much
                  You're my Prince of Peace
                  And I will live my life for You

                  Comment


                  • #10
                    Kevin its not showing Guests location
                    And i need to refresh page to see my location when viewing who's online, if i dont refresh page i get that i'm seeing Board Main page
                    Last edited by nuno; Mon 7th May '01, 12:19am.
                    You're my Prince of Peace
                    And I will live my life for You

                    Comment


                    • #11
                      I hadn't thought about guests...I suppose I could include them. Let me do a little work on it and I'll post the results.

                      Comment


                      • #12
                        Originally posted by nuno
                        And i need to refresh page to see my location when viewing who's online, if i dont refresh page i get that i'm seeing Board Main page
                        That I can't fix. It's the same as when you first surf in, you don't always appear as being online on the list on the front page. In this case it's because your location is updated at the same time the page is prepared, or slightly after (by a few milliseconds). If that's the worst problem the script presents, I think we're doing pretty good, eh?

                        Comment


                        • #13
                          That I can't fix

                          ok, np.
                          Could you please fix it for Guests?
                          thank you
                          You're my Prince of Peace
                          And I will live my life for You

                          Comment


                          • #14
                            I updated the zip file above with v0.2.0. You can now see what guests are doing on your board as well.

                            Comment


                            • #15
                              Done
                              Thank you Kevin
                              You're my Prince of Peace
                              And I will live my life for You

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X