Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 417
Enthusiast
Enthusiast
Joined: Nov 2001
Posts: 417
Mod Name / Version: ubbt_whosonline_6.5

Description:
#################Nettomo####################
### ubbt_whosonline_6.5
### Original wol-box.6.2 Folder by Dave
### UBBThreads 6.5
### all languages
### Translat languages German & Englisch
### © Nettomo HB-Germany 04.11.2004
#################Nettomo####################





Working Under: UBB.Threads 6.5

Mod Status: Finished

Any pre-requisites:

Author(s): Nettomo

Date: 11/04/04

Credits:

Files Altered:
ubbthreads.php

New Files:
ubbt_whosonline.php
templates/default/ubbt_whosonline.tmpl
/languages/all/ubbt_whosonline.php

Database Altered: no

Info/Instructions:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX Suche in ubbthreads.php :
XX Search in ubbthreads.php :
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

if (!$debug) {
include("$thispath/templates/$tempstyle/ubbthreads.tmpl");
}

XXXXXXXXXXXXXXXXXXXXXXX
XX Ersetze es durch :
XX Replace it with :
XXXXXXXXXXXXXXXXXXXXXX


if (!$debug) {
include("$thispath/ubbt_whosonline.php");
include("$thispath/templates/$tempstyle/ubbthreads.tmpl");
}

XXXXXXXXXXXXXXXXXXXXXXX
XX Fertig
XX finished
XXXXXXXXXXXXXXXXXXXXXX

XXXXXXXXXXXXXXXXXXXXXXX
XX Ich Danke Dave
XX Thank you Dave
XXXXXXXXXXXXXXXXXXXXXX


Demo: www.test.board.se


Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
122561-ubbt_whosonline_6.5.zip (0 Bytes, 57 downloads)

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
whats it do?

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
seems to be a WOL Box in the postlist screen between header and postings.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305

Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
Oh LOL - I have this one (or one like it).

Sponsored Links
Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
so would this be a replacement for the IIP who's online PAL?

Or just a line of text in the header like IkonBoard

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Yes, it adds another bar below the main menu showing how many people are online and have been in the last 10 minutes. It will also show their names.

You can go to: http://www.f-bodyhideout.com/ubbthreads/ubbthreads.php?Cat=0 to see what it looks like.

Joined: Nov 2004
Posts: 25
Newbie
Newbie
Offline
Joined: Nov 2004
Posts: 25
thank you

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Thanks - works fine in 6.5.1.

Couple of suggestions...

1) Total number of users onlne (Guests+users+ghosts) displayed along side the words 'Who is where Online?'
2) Highlight admins & mods

Will see if I can figure out how to add these

I have added mine at the foot of the page - http://www.fansfocus.com/forum/ubbthreads.php/Cat/0


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
To show the total number online...

Find...

$whosOnline = "$InvMembsOnline$VisMembsOnline$AnonsOnline {$ubbt_lang['last_10']}";

Add before it

$GrandTotal = $TotalAnons+$TotalInv+$TotalVis;

Then you can use $GrandTotal in templates/default/ubbt_whosonline.tmpl where you wish to display the total online.

-----------------

I can't figure out how to highlight admins & mods yet though....


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Can anyone assist with altering this to display all users to everyone (except those who are invisible obviously)

At the moment guests will get just the number of guests showing - the number of members online is ignored for guests - and I would like to show the same info for all users. (so total online is actually 50 - but guests are told that 30 guests are online - they are not told about the 20 members)

Sadly I can't figure this out in the code.

Thanks.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Apr 2005
Posts: 1
Lurker
Lurker
Offline
Joined: Apr 2005
Posts: 1
[]Ian_W said:
Can anyone assist with altering this to display all users to everyone (except those who are invisible obviously)[/]

I was able to fix this. The ubbt_whosonline.php does an if statement to check if the person is a registered member. If they are not a registered member it runs through the shorter code (so that it only displays guests), and if they are a member, it displays the longer code.

So what you need to do is remove the IF statement totally, so that it only runs the second portion (the long snippet) for everyone no matter their registration status. So that the only thing that remains is the content in the ELSE. Just make sure you properly remove the old IF and ELSE statements.

Remove this portion

Code
	if (!$user['U_Username']) {<br />		$query = "<br />			SELECT COUNT(*)<br />			FROM   {$config['tbprefix']}Online,{$config['tbprefix']}Users<br />			WHERE  {$config['tbprefix']}Online.O_Username = {$config['tbprefix']}Users.U_Username<br />			AND    {$config['tbprefix']}Online.O_Last > '$LastOn'		<br />		";<br />		$sth = $dbh -> do_query($query);<br />		list($TotalVis) = $dbh -> fetch_array($sth);<br />	}<br />	else {  


Then FIND this:
Code
				$VisMembersOnline .= "<a href=\"{$config[phpurl]}/showprofile.php?Cat=$Cat&amp;User=$palNumber&amp;what=$phpSelf\">$palUsername</a>";<br />			}<br />		}<br />	}<br />	$dbh -> finish_sth($sth);  


Cut out the third }

You're done!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)