![]() |
|
#1
| |||
| |||
|
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? |
|
#2
| |||
| |||
|
You added the entire online users code from forum_overview_header to site_header?
|
|
#3
| |||
| |||
|
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.. |
|
#4
| |||
| |||
|
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");
2) You add the following line after require("core.php"); in profile.php: Code: $website = $configs[4]; |
|
#5
| |||
| |||
|
Works! I used method #1 since it's better to mod my external code rather than the core code. ![]() Thanks! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |