can you guys tell me please where i should paste this code?

Discussion in 'PHP' started by etc, Apr 8, 2010.

  1. #1
    etc, Apr 8, 2010 IP
  2. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #2
    On your template, where you want to see "There are X visitors online"
     
    nabil_kadimi, Apr 8, 2010 IP
  3. code

    code Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    okay.. you can save the function in your Subs-Auth.php file.. the function repo for user related functions. Now the last line with the echo.. you need to paste / adjust in the main template file so that $random_number is showing the user count in the position you want it displayed.
    FYI : as you can see with most modern forum software, the usernames which are online are also displayed alongside the user count. so by manipulating the count and a register member wont be able to figure out anyway, where do these random members come from.. Good luck anyway..
     
    code, Apr 8, 2010 IP