Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
#202771 04/07/2004 4:40 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Modification Name: User Online

Author(s): Brett

Description: Adds a picture in each post to indicate whether the user is active on the forum at the moment or not. Recent Visitors must be enabled.

Demo: http://www.pavioni.com/ubb/ultimatebb.php/topic/4/8.asp#000011

Download Link: https://www.ubbdev.com/ubb/upload/00006378/Online6.7.zip

Credits: LK(for the idea of javascript from the hit hack)

This works in much of the same way as the hit hack, so the cache is safe. wink After install, clear the 'Topic Pages' cache.

Sponsored Links
#202772 04/07/2004 4:51 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Cool, good job! Going straight into my board.
By looking at the code, though, I think it also shows online state for invisible users, which don't want to appear online...
you might try (untested)
Code
if($r->{$uniq}->{login}->[1] == 1) {
before the last part of online.cgi.

#202773 04/07/2004 5:35 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
It looks like it might be the 2nd(3rd technically wink ) placement in the login array
Code
$r->{$uniq}->{logins}->{$uniq} = [$user_number, $nologin, $hidden, $daysprune];
as the hidden variable? At least i'm pretty sure it is.

Updated online.cgi. laugh

#202774 04/07/2004 5:45 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Just installed... and it works smile I think it'd be cool though that if the user is online it'd say "Online" or something like that when you hover the image, and if they're offline it'd say "Offline/Invisible". I'm not sure if it's possible in JS, but I think just instead of "src" you should put "alt".

#202775 04/07/2004 5:59 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
I am working in mozilla 1.6, and the .alt did work, but it didn't mouseover anything. .title does tho. jic, i left both alt and title in, since they both don't have any errors. Figuring 2 is better than 1, maybe there's a browser who will only accept alt, i dunno. wink

Sponsored Links
#202776 04/07/2004 6:01 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
[Linked Image]
[Linked Image]

i use those for my irc indicators heh


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202777 04/07/2004 6:03 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
in Mozilla, ALT is when the image isn't available and title is when it is... In IE ALT is when the image is available and near the [x] when it isn't.

#202778 04/07/2004 6:10 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
hmm, never noticed that. Sweet, so it should be safe on all fronts. laugh

#202779 04/07/2004 6:18 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
"ultimatebb.php/topic/4/8.asp" lol

#202780 04/07/2004 6:44 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
ultimatebb.php/topic/33/162.brett

:x


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
#202781 04/07/2004 9:56 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Using it on my forums and it looks great. You should use Gizzy's images in the zip cause Jelsoft might get pissed

#202782 04/07/2004 10:12 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Quote
Originally posted by Ian Spence:

Using it on my forums and it looks great. You should use Gizzy's images in the zip cause Jelsoft might get pissed
IAN! Watch your language! I'm going to tell mom :x...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202783 04/07/2004 10:13 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Oh BTW, feel free to use my images, I give you complete rights to do so (at least i think I'm the one who made them, I've been so busy that I don't even recall lol, i've been using them for like 2 years now, and their crappy, so i'm pretty sure i made them)...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202784 04/07/2004 10:41 AM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I wonder how much it'd slow down your board having it in the directory...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202785 04/08/2004 6:20 AM
Joined: Mar 2002
Posts: 64
Member
Member
Offline
Joined: Mar 2002
Posts: 64
this hack with VIPHTML and recicle bin rocks!

Brett #1 ! thumbsup

#202786 04/09/2004 11:50 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I'm semi curious how this works with deleted members posts...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202787 04/09/2004 11:58 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
it doesn't show at all. no image whatsoever

#202788 04/10/2004 2:44 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Designed Behaviorâ„¢ wink

#202789 04/10/2004 1:39 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Nice nice nice... I plan on upgrading soon, so be prepaired...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202790 05/06/2004 1:00 AM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
OK, so I get the "Offline" image, but never the online.


Where should I start looking?

#202791 05/06/2004 2:10 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
user_online.gif and user_offline.gif are located in the noncgi directory of the zip and should be uploaded into the respective directory on your webserver. smile

#202792 05/06/2004 2:17 AM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
That isn't the issue, the image shows up for offline, but I'm having a functionality issue in that it doesn't ever change to "online"...

I'm just not sure what file/part of code toggles that feature.

#202793 05/06/2004 2:23 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
For one, you do need recent visitors enabled. Also check to make sure you've uploaded online.cgi in ascii format and with 755 permissions.

If that doesn't work, can i get a link to your board?

#202794 05/06/2004 8:32 AM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
I forget there isn't a link to my board in my sig...


http://4.11.202.114/tin_benders/cgi-bin/ultimatebb.cgi


test:1234

#202795 05/06/2004 8:41 AM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Quote
Originally posted by Brett:

For one, you do need recent visitors enabled. Also check to make sure you've uploaded online.cgi in ascii format and with 755 permissions.

If that doesn't work, can i get a link to your board?
These files are on my local disk, so there is no upload and chmod issue to deal with.

#202796 05/06/2004 9:45 AM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
according to his online.cgi, it can't locate vars_config.

#202797 05/06/2004 4:19 PM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Quote
Originally posted by Ian Spence:

according to his online.cgi, it can't locate vars_config.
Do I need to modify online.cgi? I placed it in the cgi-bin folder, along with all the other cgi's.

#202798 05/06/2004 4:21 PM
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
is it in the same folder as vars_config?

#202799 05/06/2004 4:35 PM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Yes, it is in the came folder as vars_config.cgi (which is 701 bytes)

#202800 05/06/2004 8:44 PM
Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
Found a couple of status gifs for this if anyone else would like to use them. Just did a random search on google for gifs of the same name.

[Linked Image]
[Linked Image]


-GATOR

"Pain is temporary, Pride is forever"
#202801 05/06/2004 9:35 PM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Help?

#202802 05/06/2004 10:13 PM
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
shh, brett is sleeping... :x...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#202803 05/06/2004 11:25 PM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Could there be something wrong with Vars_Config.cgi?

I even tried pointing to it directly (URL) within online.cgi, and it still didn't work although I can access the file via IE.

#202804 05/07/2004 12:10 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
did you have to change the location of vars_config.cgi in your ultimatebb.cgi and cp.cgi? Also you can't do url path to your config file, it's gotta be the full path. e.g. /usr/bin/local/path/file/ubbcgi/vars_config.cgi.

Quote
Originally posted by Gizzy:

shh, brett is sleeping... :x...
No, i wish. tipsy I work from 2 to 11 on thursday, had a very important project due today, couldn't mess around. :x

#202805 05/07/2004 12:15 AM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
I haven't changed the location of vars_config.cgi since the install. It is still in cgi-bin, the same folder that online.cgi is in.

I have returned the file online.cgi to it's original state, having altered it playing with paths.

#202806 05/07/2004 12:25 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Ok, open up your ultimatebb.cgi, about line 122 it will have something like
Code
eval {
do "vars_config.cgi";
};
This is the exact same way in the upload file on line 72. They should be exactly the same, since their in the same directory.

#202807 05/07/2004 12:32 AM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
Software error:
Can't locate http://4.11.202.114/tin_benders/cgi-bin/vars_config.cgi in @INC (@INC contains: E:/Perl/lib E:/Perl/site/lib .) at E:inetpubwwwroottin_benderscgi-binonline.cgi line 9.

#202808 05/07/2004 12:34 AM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
eval {
do "vars_config.cgi";
};

Is how it looks in both now.


Same problem :tired and confused:

Software error:
Can't locate vars_config.cgi in @INC (@INC contains: E:/Perl/lib E:/Perl/site/lib .) at E:inetpubwwwroottin_benderscgi-binonline.cgi line 9.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

#202809 05/07/2004 12:35 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Ok, change the http://4.11.202.114/tin_benders/cgi-bin/vars_config.cgi in ubb_upload.cgi to E:inetpubwwwroottin_benderscgi-binvars_config.cgi

#202810 05/07/2004 12:47 AM
Joined: Nov 2003
Posts: 156
Member
Member
Offline
Joined: Nov 2003
Posts: 156
ubb_upload.cgi? I assume you mean online.cgi? This is what I get making that change to online.cgi because I don't have a ubb_upload.cgi


Software error:
Can't locate E:inetpubwwwroot in_bendersi-binvars_config.cgi in @INC (@INC contains: E:/Perl/lib E:/Perl/site/lib .) at E:inetpubwwwroottin_benderscgi-binonline.cgi line 9.

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

Page 1 of 2 1 2

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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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
Morgan 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)