Announcement

Collapse
No announcement yet.

Number of Users Currently Online

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Number of Users Currently Online

    Hi
    I have been asked if its possible to add "Number of Users Online" to Actinic site does anyne have a script/plugin that will do the job on V6 or 7?
    cheers
    Located - Sunny Kent
    A computer once beat me at chess, but it was no match for me at kick boxing.

    #2
    Hi there

    I may be possible to do is, by taking into account how much session file you have on the server which is created/modified around the same time as the server clock. As yet no one i have seen has created such a plugin.

    Maybe having a read of the following could help you or someone on this forum: http://community.actinic.com/showthread.php?t=12630

    Kind Regards
    Nadeem Rasool
    SellerDeck Development

    Comment


      #3
      thanks for pointing me in the right direction Nadeem!

      I did find a post the other week mentioning a script but could not find the actual script the author was posting about.
      Located - Sunny Kent
      A computer once beat me at chess, but it was no match for me at kick boxing.

      Comment


        #4
        http://e-commerce-aberdeen.com/4across/acatalog/ DEMO SITE

        Bottom right hand side of site has a scipt that shows these details although the details are not true like most of these scripts I have seen running on sites.

        You set a number range and it displays a random number between these.

        Click REFRESH to see the numbers change
        Owner of a broken heart

        Comment


          #5
          Thanks for that

          I like that idea Gary ingenius - cheers!
          Located - Sunny Kent
          A computer once beat me at chess, but it was no match for me at kick boxing.

          Comment


            #6
            Would it not be possible to tie the random figure into the server time so it changes number say every hour our half hour...that way you don't get 100 people suddenly arrive or leave each time you navigate to a new section? Just a thought to make it a little more realistic.


            Bikster
            SellerDeck Designs and Responsive Themes

            Comment


              #7
              Using a different Act_Primary in the sections you could split the large site browsers number into people viewing this page.
              Owner of a broken heart

              Comment


                #8
                Good idea. May be better using a CUSTOMVAR in the script and specifying the value in each section otherwise future updating all the various Act_Primary's could get a pain. (been there before with a similar scenario and soon got fed-up)


                Bikster
                SellerDeck Designs and Responsive Themes

                Comment


                  #9
                  I've not time to do this but here's an idea. If your server has PHP then add something like

                  <img src=visitors.php>

                  to your Act_Primary. You don't need to change anything else and your pages stay.html.

                  Now cook up some PHP (visitors.php) that records the current visitors IP, counts the number of others there and then uses the GD library to return that info as a GIF or JPG image.

                  If you don't have, or don't like using, GD then use

                  <SCRIPT LANGUAGE="JavaScript" SRC="jvisitors.php" TYPE="text/javascript"></SCRIPT>

                  and the PHP script jvisitors.php calculates $visitors and simply returns the single line of text

                  echo 'document.write('" + $visitors + '");';
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment

                  Working...
                  X