Contentteller Community Forums  

Go Back   Contentteller Community Forums > Contentteller > Version 1.x

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-19-2005, 10:03 PM
Rushian
Guest
 
Posts: n/a
Post Online users mod

I have duplicated the Online Users info box that is at the top of the forums on my main page (ie. site header), but it 'goes blank' when viewing someone's proifile.

For example, if there are 2 users online (Rushian and DrEvil), if I view DrEvil's profile, the users online box says there are 0 users and 0 guests online even though there are 2 of us online. Going to any other module then updates the list correctly again.

Can that be fixed somehow?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 06-20-2005, 11:15 AM
Philipp
Guest
 
Posts: n/a
Post Online users mod

You added the entire online users code from forum_overview_header to site_header?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-20-2005, 01:41 PM
Rushian
Guest
 
Posts: n/a
Post Online users mod

Yes.

I copied it to an external script that is included into the site_footer template.

Hmm, I wonder if it has something to do with $website var (which I made global in site_footer) or some other ver collision when the view profile module runs..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 06-21-2005, 06:18 AM
Philipp
Guest
 
Posts: n/a
Post Online users mod

Yes, this is caused by $website.

There are two fixes:

1) You replace the SQL in the template with:

Code:
$result = DBQuery("SELECT online_user FROM esselbach_st_online ORDER BY online_user");
or

2) You add the following line after require("core.php"); in profile.php:

Code:
    $website = $configs[4];
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 06-21-2005, 02:03 PM
Rushian
Guest
 
Posts: n/a
Post Online users mod

Works!

I used method #1 since it's better to mod my external code rather than the core code.

Thanks!
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
Online users in admin cp error General Questions 6 05-01-2010 03:50 PM
Online Demo klausre Version 1.x 5 03-22-2006 06:09 AM
Who is Online module Rushian Version 1.x 2 06-22-2005 02:18 PM
Who's Online Script techconnect Version 1.x 6 10-09-2004 06:51 PM
Online Admin Demo Philipp Version 1.x 0 03-23-2004 12:23 PM


All times are GMT. The time now is 01:44 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.