This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Online users in admin cp


avatar
error 232
From: -
Online users in admin cp

How to put number of visitors in admin cp?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Online users in admin cp
avatar
Editor
0
From: -
Sorry typo Winking Face. You need to remove the code.
1 Re: Online users in admin cp
avatar
OP 232
From: -
Removed or remove code?
1 Re: Online users in admin cp
avatar
Editor
0
From: -
Removed the following code:

                    if( $admin_count == $admin_all )

{
( $rotate == "contentalt" ) ? $rotate = "contentclosealt" : $rotate = "contentclose" ;
}


and add before $html -> makemenufooter();:

               $results = $database -> dbquery( "SELECT online_user FROM " . DB_PREFIX . "esselbach_ct_online" ); 

echo "<div class=\"contentclose\"><strong>" . $database -> dbrows( $results ) . " users online</strong></div>";
1 Re: Online users in admin cp
avatar
OP 232
From: -
Do you have code for 2.1?
1 Re: Online users in admin cp
avatar
135
From: -
Nice addition to the CADMIN.

Thanks,
1 Re: Online users in admin cp
avatar
Editor
0
From: -
The following should work. Open /cadmin/online/menu_online.php in an editor and add before:

            $html -> makemenufooter();


the following:

          $results = $database -> dbquery( "SELECT online_user FROM " . DB_PREFIX . "esselbach_ct_online" );

echo "<div class=\"contentalt\"><strong>" . $database -> dbrows( $results ) . " users online</strong></div>";

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.