Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 1999
Posts: 1,715
Addict
OP Offline
Addict
Joined: May 1999
Posts: 1,715
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 Images
97183-OnlineUsers.txt (0 Bytes, 135 downloads)
Sponsored Links
Joined: May 2003
Posts: 1,068
E
Junior Member
Offline
Junior Member
E
Joined: May 2003
Posts: 1,068
I installed it on 6.3 and it works great Thanks Gardener.

Joined: May 1999
Posts: 1,715
Addict
OP Offline
Addict
Joined: May 1999
Posts: 1,715
That's good to know. Did you have to do any changes to make it work?

Joined: May 2003
Posts: 1,068
E
Junior Member
Offline
Junior Member
E
Joined: May 2003
Posts: 1,068
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.

Joined: Apr 2002
Posts: 610
Code Monkey
Offline
Code Monkey
Joined: Apr 2002
Posts: 610
cool hack man

Sponsored Links
Joined: May 2003
Posts: 1,068
E
Junior Member
Offline
Junior Member
E
Joined: May 2003
Posts: 1,068
Here is what I am using for my black background []http://www.vhfans.com/boards/images/online.gif[/]

Joined: Nov 2001
Posts: 134
M
Journeyman
Offline
Journeyman
M
Joined: Nov 2001
Posts: 134
Does this work under 6.5.1?

Joined: Jun 2002
Posts: 670
D
Code Monkey
Offline
Code Monkey
D
Joined: Jun 2002
Posts: 670
There is a version for 6.4 if you look for it, and yes, that one I know works in 6.5.1

Joined: Feb 2002
Posts: 2,286
Veteran
Offline
Veteran
Joined: Feb 2002
Posts: 2,286


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Oct 2001
Posts: 157
Y
Member
Offline
Member
Y
Joined: Oct 2001
Posts: 157
Works fine in 6.2.2

Thanks!


Yors Truly

Who? Me? Worry?
Sponsored Links

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
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,555
Posts293,845
Members13,842
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 184
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 6
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,813
Greg Hard 4,625
Top Posters(30 Days)
Morgan 3
isaac 2
Top Likes Received
isaac 69
Gizmo 13
Brett 7
WebGuy 2
Top Likes Received (30 Days)
isaac 3
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.058s Queries: 36 (0.021s) Memory: 3.3373 MB (Peak: 3.5723 MB) Data Comp: Zlib Server Time: 2021-05-06 11:47:39 UTC
Valid HTML 5 and Valid CSS