Previous Thread
Next Thread
Print Thread
Rate Thread
#260813 10/16/2003 9:39 AM
Joined: Oct 2003
Posts: 23
User
User
Joined: Oct 2003
Posts: 23
It whoud be nice if thear is "on-line/offline indicator in post" under avatar a little gif. How to do this???


Sorry for my english.
Sponsored Links
Joined: Jan 2000
Posts: 796
MTO Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
Yes, that would be really nice.

And if you add the Forum Online icon along with other medium icons (icq/msn/yahoo/jabber/etc) it would be great. This last thing can easily be done using this service: http://www.onlinestatus.org/

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
This was brought up a while back, I did a quick search and came up with this. https://www.ubbdev.com/forum/showflat...=true#Post86765

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I've written a mod called Online Users for you that does this.

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
You could use my AIM integration mod also.

https://www.ubbdev.com/forum/showflat.php/Number/96938

Sponsored Links
Joined: Oct 2003
Posts: 23
User
User
Joined: Oct 2003
Posts: 23
Thank you I`ll checked this on 6.3.x this night...
and I send to you some pictures for it...


Sorry for my english.
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Rasskaziat myenya yecli sokr noozhno moy diryektiva pyeryevodit.

Joined: Oct 2003
Posts: 23
User
User
Joined: Oct 2003
Posts: 23
In the version 6.3.x it was necessary slightly to finish:

in showflat.php:

#
# Find:
#

// -----------------------
// Cycle through the posts
$query = "
SELECT t1.B_Number,t2.U_Username,t1.B_Posted,t1.B_IP,t1.B_Subject,t1.B_Body,t1.B_File,t1.B_Status,t1.B_Approved,t2.U_Picture,t1.B_Reged,t2.U_Title,t2.U_Color,t1.B_Icon,t1.B_Poll,t1.B_Parent,t2.U_Status,t2.U_Signature,t1.B_LastEdit,t1.B_LastEditBy,t2.U_Location,t2.U_TotalPosts,t2.U_Registered,t2.U_Rating,t2.U_Rates,t2.U_RealRating,t2.U_PicWidth,t2.U_PicHeight,t2.U_Number,t1.B_FileCounter,t1.B_AnonName,t1.B_ParentUser

#
# Change to:
#

// -----------------------
// Cycle through the posts
$query = "
SELECT t1.B_Number,t2.U_Username,t1.B_Posted,t1.B_IP,t1.B_Subject,t1.B_Body,t1.B_File,t1.B_Status,t1.B_Approved,t2.U_Picture,t1.B_Reged,t2.U_Title,t2.U_Color,t1.B_Icon,t1.B_Poll,t1.B_Parent,t2.U_Status,t2.U_Signature,t1.B_LastEdit,t1.B_LastEditBy,t2.U_Location,t2.U_TotalPosts,t2.U_Registered,t2.U_Rating,t2.U_Rates,t2.U_RealRating,t2.U_PicWidth,t2.U_PicHeight,t2.U_Number,t1.B_FileCounter,t1.B_AnonName,t1.B_ParentUser,t2.U_Visible

#
# Find:
#

for ($i=0; $i <$totalthread; $i++) {

list ($Number,$Username,$Posted,$IP,$Subject,$Body,$File,$Open,$Approved,$Picture,$Reged,$Title,$Color,$Icon,$Poll,$ParentPost,$PostStatus,$Signature,$LastEdit,$LastEditBy,$Location,$TotalPosts,$Registered,$Rating,$Rates,$stars,$picwidth,$picheight,$usernum,$downloads,$anonname,$ParentUser) = $dbh -> fetch_array($sth);

#
# Change to:
#

for ($i=0; $i <$totalthread; $i++) {

list ($Number,$Username,$Posted,$IP,$Subject,$Body,$File,$Open,$Approved,$Picture,$Reged,$Title,$Color,$Icon,$Poll,$ParentPost,$PostStatus,$Signature,$LastEdit,$LastEditBy,$Location,$TotalPosts,$Registered,$Rating,$Rates,$stars,$picwidth,$picheight,$usernum,$downloads,$anonname,$ParentUser,$Visible) = $dbh -> fetch_array($sth);

#
# Find:
#

$rateimage = "";
Online = "";
$postrow[$i] = "";
$postrow[$i]['Registered'] = "";
$postrow[$i]['Location'] = "";
$postrow[$i]['filelink'] = "";
$postrow[$i]['Rating'] = "";
$postrow[$i]['UserStatus'] = "";
$postrow[$i]['Picture'] = "";
$postrow[$i]['TotalPosts'] = "";
$postrow[$i]['Signature'] = "";
$postrow[$i]['replylinkstart'] = "";
$postrow[$i]['replylinkstop'] = "";
$postrow[$i]['editlinkstart'] = "";
$postrow[$i]['editlinkstop'] = "";
$postrow[$i]['quotelinkstart'] = "";
$postrow[$i]['quotelinkstop'] = "";
$postrow[$i]['addfavlinkstart'] = "";
$postrow[$i]['addfavlinkstop'] = "";
$postrow[$i]['notifylinkstart'] = "";
$postrow[$i]['notifylinkstop'] = "";
$postrow[$i]['mailpostlink'] = "";
$postrow[$i]['replyto'] = "";
$postrow[$i]['ParentPost'] = $ParentPost;
if ( ($Reged == 'y') && ($usernum != 1)){


#
# Change to:
#



$rateimage = "";
Online = "";
$postrow[$i] = "";
$postrow[$i]['Registered'] = "";
$postrow[$i]['Location'] = "";
$postrow[$i]['filelink'] = "";
$postrow[$i]['Rating'] = "";
$postrow[$i]['UserStatus'] = "";
$postrow[$i]['Picture'] = "";
$postrow[$i]['TotalPosts'] = "";
$postrow[$i]['Signature'] = "";
$postrow[$i]['replylinkstart'] = "";
$postrow[$i]['replylinkstop'] = "";
$postrow[$i]['editlinkstart'] = "";
$postrow[$i]['editlinkstop'] = "";
$postrow[$i]['quotelinkstart'] = "";
$postrow[$i]['quotelinkstop'] = "";
$postrow[$i]['addfavlinkstart'] = "";
$postrow[$i]['addfavlinkstop'] = "";
$postrow[$i]['notifylinkstart'] = "";
$postrow[$i]['notifylinkstop'] = "";
$postrow[$i]['mailpostlink'] = "";
$postrow[$i]['replyto'] = "";
$postrow[$i]['ParentPost'] = $ParentPost;
if ( ($Reged == 'y') && ($usernum != 1)){
// Start of Online Users hack

if ( $Visible == "yes" && in_array( $usernum, $OnlineUsers ) ) {
$postrow[$i]['online'] = "<b>Online!</b>";
} else {
$postrow[$i]['online'] = "Offline";
}
// End of Online Users hack

---------------------------------
Similarly in showthreaded.php

#
# Find:
#

list ($Number,$Posted,$Username,$IP,$SubjectMain,$Body,$File,$Open,$Approved,$Picture,$Reged,$Title,$Color,$Icon,$Poll,$ParentPost,$PostStatus,$Signature,$LastEdit,$LastEditBy,$Location,$TotalPosts,$Registered,$Rating,$Rates,$stars,$picwidth,$picheight,$usernum,$downloads,$anonname) = $dbh -> fetch_array($sth);
$dbh -> finish_sth($sth);

$Rating = "";
$color = "darktable";

if ( ($Reged == "y") && ($usernum != 1) ){
#
# Change to:
#

list ($Number,$Posted,$Username,$IP,$SubjectMain,$Body,$File,$Open,$Approved,$Picture,$Reged,$Title,$Color,$Icon,$Poll,$ParentPost,$PostStatus,$Signature,$LastEdit,$LastEditBy,$Location,$TotalPosts,$Registered,$Rating,$Rates,$stars,$picwidth,$picheight,$usernum,$downloads,$anonname,$Visible) = $dbh -> fetch_array($sth);
$dbh -> finish_sth($sth);

$Rating = "";
$color = "darktable";
if ( ($Reged == "y") && ($usernum != 1) ){
// Start of Online Users hack
$Online = "";
if ( $Visible == "yes" && in_array( $usernum, $OnlineUsers ) ) {
$Online = "<b>Online!</b>";
} else {
$Online = "Offline";
}
// End of Online Users hack



---------------------------------
All rest without changes...


Sorry for my english.
Joined: Oct 2003
Posts: 23
User
User
Joined: Oct 2003
Posts: 23
[] 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.
[/]

some variants pictures in attach
Attachments
97233-online.zip (0 Bytes, 10 downloads)


Sorry for my english.
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thank you, i'll update the instructions for 6.3 and add code for the images.

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)