Contentteller Community Forums  

Go Back   Contentteller Community Forums > Contentteller > General Questions

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-19-2009, 12:49 AM
Customer
 
Join Date: Aug 2008
Posts: 229
Default Online users in admin cp

How to put number of visitors in admin cp?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 06-19-2009, 01:24 PM
Administrator
 
Join Date: Jul 2008
Posts: 831
Default

The following should work. Open /cadmin/online/menu_online.php in an editor and add before:

PHP Code:
        $html -> makemenufooter(); 
the following:

PHP Code:
        $results $database -> dbquery"SELECT online_user FROM " DB_PREFIX "esselbach_ct_online" );
        echo 
"<div class=\"contentalt\"><strong>" $database -> dbrows$results ) . " users online</strong></div>"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-23-2009, 07:47 PM
Senior Member
 
Join Date: Feb 2009
Posts: 135
Default

Nice addition to the CADMIN.

Thanks,
__________________
ReviewStud
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 05-01-2010, 12:52 PM
Customer
 
Join Date: Aug 2008
Posts: 229
Default

Do you have code for 2.1?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 05-01-2010, 02:30 PM
Administrator
 
Join Date: Jul 2008
Posts: 831
Default

Removed the following code:

PHP Code:
            if( $admin_count == $admin_all )
            {
                ( 
$rotate == "contentalt" ) ? $rotate "contentclosealt" $rotate "contentclose" ;
            } 
and add before $html -> makemenufooter();:

PHP Code:
        $results $database -> dbquery"SELECT online_user FROM " DB_PREFIX "esselbach_ct_online" ); 
        echo 
"<div class=\"contentclose\"><strong>" $database -> dbrows$results ) . " users online</strong></div>"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 05-01-2010, 03:15 PM
Customer
 
Join Date: Aug 2008
Posts: 229
Default

Removed or remove code?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 05-01-2010, 03:50 PM
Administrator
 
Join Date: Jul 2008
Posts: 831
Default

Sorry typo . You need to remove the code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Request a mod for the "Restricted" Permission for Admin Users BorisB Version 1.x 2 06-23-2005 03:38 PM
Who is Online module Rushian Version 1.x 2 06-22-2005 02:18 PM
Online users mod Rushian Version 1.x 4 06-21-2005 02:03 PM
Online Admin Demo Philipp Version 1.x 0 03-23-2004 12:23 PM


All times are GMT. The time now is 01:38 PM.


Copyright ©2002 - 2009 Esselbach Internet Solutions
Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.