Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
7 registered (smallufo, SteveS, sampsonzurich, Bjab, FordDoctor, Stan, Pilgrim), 27 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/17/12
Posts: 3
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 3 1 2 3 >
Topic Options
#212247 - 05/14/08 10:22 PM 0 Guests and 0 Spiders online.
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Basically I don't want "and 0 Spiders online".

How do I get rid of that, and include the number of "Spiders" in the number that is shown for guests. (ie. just as it is now in 7.2.2)

[So for example if there were 5 guests and 20 spiders online, I would have that display as "25 guests online"]

Thanks
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#212255 - 05/15/08 03:19 AM Re: 0 Guests and 0 Spiders online. [Re: willing]
driv Online   censored

Pooh-Bah
Registered: 01/10/04
Posts: 2377
Just a thought (don't know if this would work) but if you remove (or shorten) the list of user agents - perhaps the spiders will show up as guests.

Of course that won't remove the '0 spiders' notice - but it will make it look like you've got more 'real' visitors to your site smile
_________________________
Using version :: 7.5.6
Top
#212257 - 05/15/08 03:38 AM Re: 0 Guests and 0 Spiders online. [Re: driv]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Thanks - it's not just that, I just don't want spiders mentioned all over the place....

Anyone?
Top
#212259 - 05/15/08 04:12 AM Re: 0 Guests and 0 Spiders online. [Re: willing]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
There is help for arachnophobia wink
Top
#212260 - 05/15/08 04:13 AM Re: 0 Guests and 0 Spiders online. [Re: Ian]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Go on, tell me please!
Top
#212368 - 05/15/08 06:57 PM Re: 0 Guests and 0 Spiders online. [Re: willing]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Anyone, please! wink
Top
#212392 - 05/16/08 12:14 AM Re: 0 Guests and 0 Spiders online. [Re: willing]
willing Offline
old hand
Registered: 02/12/07
Posts: 701

Anyone how do I get rid of the spiders mention on that Whos Online post island (like it was 7.2)?

Please if anyone knows, thanks
Top
#212393 - 05/16/08 12:55 AM Re: 0 Guests and 0 Spiders online. [Re: willing]
jgeoff Offline
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:
Php Code:

{$spiders} 
{if $spiders == 1}
<?php echo $ubbt_lang['ONLINE_SPIDER']?>
{else}
<?php echo $ubbt_lang['ONLINE_SPIDERS']?>
{/if}
 

to:
Html:
<!--//
{$spiders} 
{if $spiders == 1}
<?php //echo $ubbt_lang['ONLINE_SPIDER']?>
{else}
<?php //echo $ubbt_lang['ONLINE_SPIDERS']?>
{/if}
//-->

...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
#212394 - 05/16/08 12:58 AM Re: 0 Guests and 0 Spiders online. [Re: jgeoff]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
OK good start thank you.

If anyone could let me know how to "add" the guests and spiders that would be fantastic.

Thanks
Top
#212397 - 05/16/08 01:11 AM Re: 0 Guests and 0 Spiders online. [Re: willing]
jgeoff Offline
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... wink
_________________________
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
#212398 - 05/16/08 01:19 AM Re: 0 Guests and 0 Spiders online. [Re: jgeoff]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Thanks. It really isn't that. I am fine with the spiders being on the main Who's Online page. I just don't see the need and don't want them to be on every single page of my site. It was fine how it was in 7.2.2 with the spiders being included in the Guests number.

I am far from being expert in php! Hoping to hear from some....

smile
Top
#212468 - 05/16/08 07:41 AM Re: 0 Guests and 0 Spiders online. [Re: willing]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
You also asked about the sort order....

in cache_builders/online_now.php

change

Php Code:
// Now get's get info about the user's we have
	$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

Php Code:
// Now get's get info about the user's we have
	$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
#212469 - 05/16/08 07:50 AM Re: 0 Guests and 0 Spiders online. [Re: Ian]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Cool... what, that shows the users in the Who's Online list by activity rather than alphabetically?

(I don't have enough users on my test to find out!)

Thank you
Top
#212470 - 05/16/08 07:55 AM Re: 0 Guests and 0 Spiders online. [Re: willing]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
Bear in mind the portal box is not instant - 10 minutes cache or above is good - however it will no longer sort in alphabetical order.

Currently running at www.fansfocus.com
Top
#212471 - 05/16/08 07:56 AM Re: 0 Guests and 0 Spiders online. [Re: Ian]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
So basically is that the same as what is going on in 7.2?

Good stuff.

Dead simple when you know hey? wink
Top
#212472 - 05/16/08 08:07 AM Re: 0 Guests and 0 Spiders online. [Re: willing]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
similar smile

.............
Top
#212473 - 05/16/08 08:14 AM Re: 0 Guests and 0 Spiders online. [Re: Ian]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Cool. Thanks, I'm sure other people will be happy.
Top
#212950 - 05/19/08 11:38 PM Re: 0 Guests and 0 Spiders online. [Re: willing]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
I changed the code you have there Ian - thanks - but the listing is really strange. It seems to be almost showing the names at random. What are the criteria used for that if you could tell me?

Thank you
Top
#213067 - 05/20/08 11:51 PM Re: 0 Guests and 0 Spiders online. [Re: Ian]
willing Offline
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? smile

Thank you

Originally Posted By: Ian
You also asked about the sort order....

in cache_builders/online_now.php

change

Php Code:
// Now get's get info about the user's we have
	$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

Php Code:
// Now get's get info about the user's we have
	$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
#213076 - 05/21/08 01:20 AM Re: 0 Guests and 0 Spiders online. [Re: willing]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
Willing - I never said it was by activity - I just said it was similar wink and takes away the alphabetical order.

No one (apart from you) would ever know which order you want the box in anyway.

If you look at the code you will easily see which order it is in with the revised code wink
Top
#213079 - 05/21/08 01:38 AM Re: 0 Guests and 0 Spiders online. [Re: Ian]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Well I simply want it in by activity, as per 7.2. I think that is fairly easy to understand!

smile
Top
#213080 - 05/21/08 01:51 AM Re: 0 Guests and 0 Spiders online. [Re: willing]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
I and others are only trying to help you.

Being rude is not the way forward.

We only do our best and do not get paid for our time here.
Top
#213082 - 05/21/08 02:07 AM Re: 0 Guests and 0 Spiders online. [Re: Ian]
willing Offline
old hand
Registered: 02/12/07
Posts: 701
Sorry Ian - I was certainly not meaning to be rude! smile

In the above thread you said that no-one apart from me would ever know which order I wanted it. But I'm pretty sure that I said I wanted it as per 7.2

Anyway, if it came across that way I apologise, I more often than not post thanks and pleases I think and have countless times said how much I appreciate the help.

Thank you.
Top
#213084 - 05/21/08 02:55 AM Re: 0 Guests and 0 Spiders online. [Re: willing]
driv Online   censored

Pooh-Bah
Registered: 01/10/04
Posts: 2377
I reckon the smiley does quite a lot for keeping the peace in 'emails' and posts wink but for all the good it does... the exclamation mark "!" can do quite a lot to undo it.

They should be used sparingly wink smile
_________________________
Using version :: 7.5.6
Top
Page 1 of 3 1 2 3 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Due Date Calculator-Calculate When Your Baby is Due
by StewartMyduedate
12:54 AM
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image