UBB.Dev
Posted By: Catshadow On-line indicator in post - 10/16/2003 4:39 PM
It whoud be nice if thear is "on-line/offline indicator in post" under avatar a little gif. How to do this???
Posted By: MTO Re: On-line indicator in post - 10/16/2003 8:36 PM
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/
Posted By: ericgtr Re: On-line indicator in post - 10/16/2003 9:56 PM
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
Posted By: Gardener Re: On-line indicator in post - 10/17/2003 2:41 PM
I've written a mod called Online Users for you that does this.
Posted By: AKD96 Re: On-line indicator in post - 10/17/2003 2:47 PM
You could use my AIM integration mod also.

https://www.ubbdev.com/forum/showflat.php/Number/96938
Posted By: Catshadow Re: On-line indicator in post - 10/17/2003 4:12 PM
Thank you I`ll checked this on 6.3.x this night...
and I send to you some pictures for it...
Posted By: AKD96 Re: On-line indicator in post - 10/17/2003 5:01 PM
Rasskaziat myenya yecli sokr noozhno moy diryektiva pyeryevodit.
Posted By: Catshadow Re: On-line indicator in post - 10/17/2003 11:19 PM
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...
Posted By: Catshadow Re: On-line indicator in post - 10/18/2003 12:23 AM
[] 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

Attached File
97233-online.zip  (10 downloads)
Posted By: Gardener Re: On-line indicator in post - 10/18/2003 5:49 PM
Thank you, i'll update the instructions for 6.3 and add code for the images.
© UBB.Developers