4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: apaunganhote on October 13, 2009, 08:54:55 AM

Title: Who is online at every page ?
Post by: apaunganhote 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,
Title: Re: Who is online at every page ?
Post by: V@no on October 13, 2009, 03:09:06 PM
in includes/sessions.php find:
if (defined("GET_USER_ONLINE") && ($config['display_whosonline'] == 1 || $user_info['user_level'] == ADMIN)) {


insert above:
if (!defined("GET_USER_ONLINE")) define("GET_USER_ONLINE", 1);
Title: Re: Who is online at every page ?
Post by: apaunganhote 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'] == 1 || $user_info['user_level'] == ADMIN)) {


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

Title: Re: Who is online at every page ?
Post by: V@no on October 14, 2009, 02:37:18 AM
that's my bad, sorry, fixed above
Title: Re: Who is online at every page ?
Post by: apaunganhote on October 14, 2009, 03:31:43 AM
that's my bad, sorry, fixed above

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