php forum
php mysql forum
php mysql smarty
 
Topic Options
#281647 - 11/04/04 02:04 PM Finished-[6.5] ubbt_whosonline_6.5
Nettomo Offline
Enthusiast

Registered: 11/18/01
Posts: 431
Loc: Germany, Bremen
Mod Name / Version: ubbt_whosonline_6.5 <br /><br />Description:<br /> #################Nettomo####################<br /> ### ubbt_whosonline_6.5 <br /> ### Original wol-box.6.2 Folder by Dave <br /> ### UBBThreads 6.5 <br /> ### all languages <br /> ### Translat languages German & Englisch <br /> ### © Nettomo HB-Germany 04.11.2004 <br /> #################Nettomo####################<br /><br /><br /><br /> <br /><br />Working Under: UBB.Threads 6.5 <br /><br />Mod Status: Finished <br /><br />Any pre-requisites: <br /><br />Author(s): Nettomo <br /><br />Date: 11/04/04 <br /><br />Credits: <br /><br />Files Altered: <br />ubbthreads.php <br /><br />New Files: <br />ubbt_whosonline.php<br />templates/default/ubbt_whosonline.tmpl<br />/languages/all/ubbt_whosonline.php <br /><br />Database Altered: no <br /><br />Info/Instructions:<br />XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br />XX Suche in ubbthreads.php :<br />XX Search in ubbthreads.php :<br />XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br /><br />if (!$debug) {<br /> include("$thispath/templates/$tempstyle/ubbthreads.tmpl");<br />}<br /><br />XXXXXXXXXXXXXXXXXXXXXXX<br />XX Ersetze es durch :<br />XX Replace it with :<br />XXXXXXXXXXXXXXXXXXXXXX<br /><br /><br />if (!$debug) {<br /> include("$thispath/ubbt_whosonline.php");<br /> include("$thispath/templates/$tempstyle/ubbthreads.tmpl");<br />}<br /><br />XXXXXXXXXXXXXXXXXXXXXXX<br />XX Fertig<br />XX finished<br />XXXXXXXXXXXXXXXXXXXXXX<br /><br />XXXXXXXXXXXXXXXXXXXXXXX<br />XX Ich Danke Dave<br />XX Thank you Dave<br />XXXXXXXXXXXXXXXXXXXXXX<br /><br /><br />Demo: www.test.board.se<br /> <br /><br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /><br />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 (49 downloads)


Top
#281648 - 11/04/04 02:16 PM Re: Finished-[6.5] ubbt_whosonline_6.5 [Re: Orlov]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
whats it do? <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281649 - 11/04/04 03:59 PM Re: Finished-[6.5] ubbt_whosonline_6.5 [Re: 234234]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
seems to be a WOL Box in the postlist screen between header and postings.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#281650 - 11/04/04 05:48 PM Re: Finished-[6.5] ubbt_whosonline_6.5 [Re: landyphil]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
<img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#281651 - 11/05/04 12:30 AM Re: Finished-[6.5] ubbt_whosonline_6.5 [Re: 234234]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Oh LOL - I have this one (or one like it).

Top
#281652 - 11/05/04 09:33 PM Re: Finished-[6.5] ubbt_whosonline_6.5 [Re: Intel -*RW*-]
ChAoS_dup1 Offline
Code Monkey

Registered: 11/15/02
Posts: 576
Loc: Great Northwest
so would this be a replacement for the IIP who's online PAL?<br /><br />Or just a line of text in the header like IkonBoard
_________________________
ChAoS
Emerald Forest Gaming Servers
Official STFU Thread


Top
#281653 - 11/28/04 04:10 AM Re: Finished-[6.5] ubbt_whosonline_6.5 [Re: barbiro]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
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.<br /><br />You can go to: http://www.f-bodyhideout.com/ubbthreads/ubbthreads.php?Cat=0 to see what it looks like.

Top
#281654 - 11/28/04 07:19 PM Re: Finished-[6.5] ubbt_whosonline_6.5 [Re: Orlov]
phoenix1962 Offline
Newbie

Registered: 10/31/04
Posts: 24
thank you <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />

Top
#281655 - 02/25/05 05:29 PM Re: Finished-[6.5] ubbt_whosonline_6.5 [Re: Peps_dup1]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Thanks - works fine in 6.5.1.<br /><br />Couple of suggestions...<br /><br />1) Total number of users onlne (Guests+users+ghosts) displayed along side the words 'Who is where Online?'<br />2) Highlight admins & mods<br /><br />Will see if I can figure out how to add these <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />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....)

Top
#281656 - 02/25/05 06:05 PM Re: Finished-[6.5] ubbt_whosonline_6.5 [Re: Gorlum]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
To show the total number online...<br /><br />Find...<br /><br />$whosOnline = "$InvMembsOnline$VisMembsOnline$AnonsOnline {$ubbt_lang['last_10']}";<br /><br />Add before it<br /><br />$GrandTotal = $TotalAnons+$TotalInv+$TotalVis;<br /><br />Then you can use $GrandTotal in templates/default/ubbt_whosonline.tmpl where you wish to display the total online.<br /><br />-----------------<br /><br />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....)

Top
#281657 - 02/25/05 06:37 PM Re: Finished-[6.5] ubbt_whosonline_6.5 [Re: Gorlum]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Can anyone assist with altering this to display all users to everyone (except those who are invisible obviously)<br /><br />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) <br /><br />Sadly I can't figure this out in the code.<br /><br />Thanks.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#281658 - 04/15/05 11:43 AM Re: Finished-[6.5] ubbt_whosonline_6.5 [Re: Gorlum]
Xploited Offline
Lurker

Registered: 04/15/05
Posts: 2
Loc: Florida, USA
[]Ian_W said:<br />Can anyone assist with altering this to display all users to everyone (except those who are invisible obviously)[/]<br /><br />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.<br /><br />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.<br /><br />Remove this portion<br /><br />
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 &gt; '$LastOn'		<br />		";<br />		$sth = $dbh -&gt; do_query($query);<br />		list($TotalVis) = $dbh -&gt; fetch_array($sth);<br />	}<br />	else {  
<br /><br />Then FIND this:<br />
Code:
				$VisMembersOnline .= "&lt;a href=\"{$config[phpurl]}/showprofile.php?Cat=$Cat&amp;amp;User=$palNumber&amp;amp;what=$phpSelf\"&gt;$palUsername&lt;/a&gt;";<br />			}<br />		}<br />	}<br />	$dbh -&gt; finish_sth($sth);  
<br /><br />Cut out the third }<br /><br />You're done!

Top


Moderator:  Ian_W 
Who's Online
0 registered (), 31 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks