 |
 |
 |
 |
Registered: 05/17/12
Posts: 3
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
|
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#212260 - 05/15/08 04:13 AM
Re: 0 Guests and 0 Spiders online.
[Re: Ian]
|
old hand
|
Registered: 02/12/07
Posts: 701
|
|
|
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#212393 - 05/16/08 12:55 AM
Re: 0 Guests and 0 Spiders online.
[Re: willing]
|
Pooh-Bah
|
Registered: 08/08/06
Posts: 1922
Loc: NJ
|
|
You can remove the Spiders part entirely if you comment-out this section of \templates\default\island_whos_online.tpl:
{$spiders}
{if $spiders == 1}
<?php echo $ubbt_lang['ONLINE_SPIDER']?>
{else}
<?php echo $ubbt_lang['ONLINE_SPIDERS']?>
{/if}
to: ...but as for adding those totals into Guests, I'd have to look into it more deeply and don't have time for that tonight...
_________________________
GangsterBB.NET (Ver. 7.5.6) 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#212397 - 05/16/08 01:11 AM
Re: 0 Guests and 0 Spiders online.
[Re: willing]
|
Pooh-Bah
|
Registered: 08/08/06
Posts: 1922
Loc: NJ
|
|
If you have any familiarity with coding, you could compare the 7.2.2 way of doing things vs the 7.3 way, and hack it up from there. I'm no PHP expert, but at 1AM I don't feel it's the time to try and become one... lol. But really, I dislike having the Spiders' count included into Guests, because I'd rather have an accurate count of *users* vs inflated access totals. But that's just me. If what I posted works, I think that could be enough. Only the site owner cares about Spiders, not the members. And the Spider totals should still come up on the full Who's Online page anyway. That said, inflating numbers can help sometimes if you're trying to sell ad space or something... 
_________________________
GangsterBB.NET (Ver. 7.5.6) 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#213067 - 05/20/08 11:51 PM
Re: 0 Guests and 0 Spiders online.
[Re: Ian]
|
old hand
|
Registered: 02/12/07
Posts: 701
|
|
Hi Ian I have been trying to get this to work this morning with a clear head, but just can't. It just doesn't seem to be doing it right and the numbers appear what seems almost totally random. (Certainly not by activity). I&ve put it back to abc for now.. Do I need to change something else, or, .... any ideas?  Thank you You also asked about the sort order.... in cache_builders/online_now.php change $query = "
SELECT t1.USER_ID, t1.USER_DISPLAY_NAME, t1.USER_MEMBERSHIP_LEVEL, t2.USER_NAME_COLOR, t2.USER_VISIBLE_ONLINE_STATUS
FROM {$config['TABLE_PREFIX']}USERS as t1
LEFT JOIN {$config['TABLE_PREFIX']}USER_PROFILE as t2
ON t1.USER_ID = t2.USER_ID
WHERE t1.USER_ID in ( ? ) AND t1.USER_ID <> 1
order by t1.USER_DISPLAY_NAME asc
";
to $query = "
SELECT t1.USER_ID, t1.USER_DISPLAY_NAME, t1.USER_MEMBERSHIP_LEVEL, t2.USER_NAME_COLOR, t2.USER_VISIBLE_ONLINE_STATUS
FROM {$config['TABLE_PREFIX']}USERS as t1
LEFT JOIN {$config['TABLE_PREFIX']}USER_PROFILE as t2
ON t1.USER_ID = t2.USER_ID
WHERE t1.USER_ID in ( ? ) AND t1.USER_ID <> 1
order by t2.USER_VISIBLE_ONLINE_STATUS asc
";
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
|
|