Author Topic: Who is online at every page ?  (Read 5178 times)

0 Members and 1 Guest are viewing this topic.

Offline apaunganhote

  • Newbie
  • *
  • Posts: 22
    • View Profile
Who is online at every page ?
« on: October 13, 2009, 08:54:55 AM »
Hello,

I tried to put {whos_online} at other pages, but it doesn't show me nothing. Seems like, I need to change something in .php file. Can anyone please tell me how to get who is online at every pages ? Thanks so much.

With Regards,

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Who is online at every page ?
« Reply #1 on: October 13, 2009, 03:09:06 PM »
in includes/sessions.php find:
if (defined("GET_USER_ONLINE") && ($config['display_whosonline'] == || $user_info['user_level'] == ADMIN)) {


insert above:
if (!defined("GET_USER_ONLINE")) define("GET_USER_ONLINE"1);
« Last Edit: October 14, 2009, 02:36:56 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline apaunganhote

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Who is online at every page ?
« Reply #2 on: October 14, 2009, 01:55:48 AM »
Hi V@no,

Thank you for your help. But when i add it, I got this error

Warning: define() expects at least 2 parameters, 1 given in C:\wamp\www\4images\includes\sessions.php on line 434

Thanks.


in includes/sessions.php find:
if (defined("GET_USER_ONLINE") && ($config['display_whosonline'] == || $user_info['user_level'] == ADMIN)) {


insert above:
if (!defined("GET_USER_ONLINE")) define("GET_USER_ONLINE");


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Who is online at every page ?
« Reply #3 on: October 14, 2009, 02:37:18 AM »
that's my bad, sorry, fixed above
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline apaunganhote

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Who is online at every page ?
« Reply #4 on: October 14, 2009, 03:31:43 AM »
that's my bad, sorry, fixed above

Thanks V@no, working perfect ! Thank you so much :)