UBB.Dev
Posted By: Gardener Beta-[6.2-6.3] Online Users 1.0 - 10/17/2003 2:35 PM
Mod Name / Version: Online Users 1.0

Description: This is a modification that adds information on about the online status of users next to their username on posts made by them.

Working Under: UBB.Threads 6.2

Mod Status: Beta

Any pre-requisites: PHP 4

Author(s): Gardener

Date: 10/17/03

Credits:

Files Altered: showthreaded.php, showflat.php, templates/default/showthreaded.tmpl, templates/default/showflat.tmpl

New Files: None

Database Altered: None

Info/Instructions: I don't have any pictures for this so you will have to provide them yourself if you don't like the text. If anyone has any appropriate pictures I would glagly add them to the code and update the instructions if they send them to me.

Also, I haven't checked this on 6.3+ yet.

Finally, I've done some small testing on this and from what I could see it doesn't add any more load on the server. The query is very similar to the original, it only grabs all rows instead of just the ones in the current board, but not having to do a string match probably outweighs this. Actually, with only one row in the Online table, it seems my new query is actually faster most of the times. But since the time of the query is less than a millisecond it is probably within the error margin.

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.




Attached File
97183-OnlineUsers.txt  (135 downloads)
Posted By: ericgtr Re: Beta-[6.2] Online Users 1.0 - 10/17/2003 4:46 PM
I installed it on 6.3 and it works great Thanks Gardener.
Posted By: Gardener Re: Beta-[6.2] Online Users 1.0 - 10/17/2003 5:09 PM
That's good to know. Did you have to do any changes to make it work?
Posted By: ericgtr Re: Beta-[6.2] Online Users 1.0 - 10/17/2003 5:40 PM
Just a couple of small changes and I believe they are due to previous mods. In show*.php
Code
 // ----------------------- <br />// Cycle through the posts 
I have a
Code
 t1.B_ParentUser 
so I just appended it with
Code
 t2.U_Visible 


Then, under
Code
    for ($i=0; $i <$totalthread; $i++) { 

I have a
Code
 $ParentUser 

in which I appended that with
Code
 $Visible 



Other than that it was straight forward.
Posted By: shortbus Re: Beta-[6.2] Online Users 1.0 - 10/17/2003 8:25 PM
cool hack man
Posted By: ericgtr Re: Beta-[6.2] Online Users 1.0 - 10/17/2003 9:19 PM
Here is what I am using for my black background []http://www.vhfans.com/boards/images/online.gif[/]
Posted By: MattUK Re: Beta-[6.2-6.3] Online Users 1.0 - 02/28/2005 7:47 PM
Does this work under 6.5.1?
Posted By: donJulio Re: Beta-[6.2-6.3] Online Users 1.0 - 03/01/2005 3:20 AM
There is a version for 6.4 if you look for it, and yes, that one I know works in 6.5.1
Posted By: Ian_W Re: Beta-[6.2-6.3] Online Users 1.0 - 03/01/2005 11:38 AM
https://www.ubbdev.com/forum/showflat.php/Number/98992

Posted By: yors Re: Beta-[6.2-6.3] Online Users 1.0 - 04/04/2005 7:35 PM
Works fine in 6.2.2

Thanks!
© UBB.Developers