Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 1999
Posts: 1,715
Addict
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.


Attachments
97183-OnlineUsers.txt (0 Bytes, 135 downloads)

Sponsored Links
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
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
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
Junior Member
Junior Member
Offline
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
Code Monkey
Joined: Apr 2002
Posts: 610
cool hack man

Sponsored Links
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
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
Journeyman
Journeyman
Offline
Joined: Nov 2001
Posts: 134
Does this work under 6.5.1?

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
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
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
Member
Member
Offline
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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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
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 20221218)