Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 9 1 2 3 4 5 6 7 8 9
#41007 04/19/2000 12:58 PM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Quote
quote:
So it goes after the require statements at the top and after the foreach routine in every script?

Sponsored Links
#41008 04/19/2000 2:13 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Sometimes I see like double logins? Anyone know why? This is what I see.

White KnightWhite Knight - There are 2 other members, and 1 guest on the boards.

#41009 04/19/2000 2:57 PM
Joined: Mar 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 13
Jaxel,

You're directions are confusing.

You don't have to edit online.cgi at all?

I tried your code and nothing changed. (v5.44)

NBAustin - I think he means that his code has to come after the (@IN) statement. But I dunno... cuz no workie!

-twice

#41010 04/19/2000 3:06 PM
Joined: Mar 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 13
scratch that... something changed. I could no longer get into all of my forums! It screwed up the links from Ultimate.cgi to the Forumdisplay.cgi somehow.

Beats me... I think I'll wait on this one.

#41011 04/19/2000 3:31 PM
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
For where to put the call in forumdisplay.cgi, I posted that information much earlier in this thread. Look here:

http://ubbcodehacking.com/ubb/Forum3/HTML/000020-2.html

Sponsored Links
#41012 04/19/2000 3:35 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Anyone have updated instructions with all the new stuff in it?

#41013 04/19/2000 3:42 PM
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
There's now like 5 different threads on this hack, so I thought I'd try and post the latest information on this hack here:


My install instructions have been updated, and now include the following features:

  • now logs guests
  • includes support for user selectable invisibility
  • removes guest entry when a guest gets a cookie
  • keeps a record of the largest number online at once - and when it occured
  • you can set it up to include yourself in the listing or not
  • instructions include information on where to put the call in forumdisplay.cgi
  • ability to select who (admins, mods, anyone) can see invisible users and host/ip information
  • addon script now displays a message if no one else is around - rather than just the table headers


The current version of the files can be found here:

Install Instructions - http://www.arlo.net/ubb/whoonline.txt
Who's Online addon script - http://www.arlo.net/ubb/cgi-bin/online.txt

To upgrade from a prior version, all you probably need to do is replace the subroutines in ubb_library.pl and grab the latest version of the addon script!

#41014 09/10/2000 4:08 PM
Joined: Aug 2000
Posts: 8
Junior Member
Junior Member
Offline
Joined: Aug 2000
Posts: 8
I had this hack working fine on 5.45c. I have upgraded to 5.46 and I can't get it to work, all I get is a blank white page.


Any ideas ????


Thanks



------------------

#41015 04/19/2000 10:03 PM
Joined: Jan 2000
Posts: 31
Member
Member
Offline
Joined: Jan 2000
Posts: 31
Jaxel,

Great post! It works Sooooooo Good [Linked Image]

Dave,

For that maxtotal variable, is that stored in a file? It doesn't look like it. I want to make sure I make the message correct. Right now it says Most Simultaneous Users: $maxtotal

Would it be more correct if it said Most Simultaneous Users since server reboot: $maxtotal

------------------
Michael Butterfield
Music Global Network
http://musicglobalnetwork.com

#41016 04/19/2000 10:38 PM
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
Michael,

My code is different than Jaxel's code... I chose to store not only the max users, but the time and date it occured. It's always the first line of "online.cgi" in the members directory. So, it's a lifetime total - not since server reboot.

I've also updated my addon script to use and display this information... but if you use Jaxel's code (for the max user count), it won't work with my script.

I chose to do it differently because I didn't want another file hanging around, and the way I coded it, it's slightly more efficient. It doesn't have to bother opening another file and checking... it does it all while logging someone.

Also, I'm not sure where Jaxel's code goes... but if it's in Ultimate.cgi, it could be inacurate, because it will only update the count when someone hits that page.

Sponsored Links
#41017 04/20/2000 9:34 AM
Joined: Jan 2000
Posts: 825
Member / CodeFixer
Member / CodeFixer
Offline
Joined: Jan 2000
Posts: 825
Stupid question, can i use this with V5.38c?

Thanks

DJ

#41018 04/20/2000 9:53 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Yep uploaded it Ascii found out that it was calling my header and footer which didnt exist. thus it pop in what ever was in memory and spewed out the stuff before the body and after.

Thanks for the suggestions though!

#41019 04/20/2000 10:42 AM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Quote
quote:
Anyone know exactly where that code is supposed to go?

#41020 04/20/2000 4:19 PM
Joined: Jun 2000
Posts: 59
Member
Member
Offline
Joined: Jun 2000
Posts: 59
I'm currently experiencing problems with the hack...if I set it up for $OnlineUsers instead of $OnlineUsermsg I get the following:
Currently Browsing the Boards (5) (Most Simultaneous Users: 4)
Karnivore, Karnivore, Karnivore, and 1 guestand 1 guests,
I checked the cookie issue and everything seems to be in order...can anyone help? Please? Thanks in advance.


I do not offer support by EMail or ICQ, please post your question at UBBDev....
#41021 04/20/2000 9:31 PM
Joined: May 2000
Posts: 33
Member
Member
Offline
Joined: May 2000
Posts: 33
I have been trying to fix this, but I have been unable to figure anything out...

with the online list, what it does is after around 20-30 minutes it's records get cleaned out and it starts anew...

I've been looking to see where this is set up, but I haven't found out.

I want to be able to set it so that it cleans it records only ONCE a day at 3:00 AM.

Can someone help me?

------------------
http://www.upnetwork.com/
http://bbs.upnetwork.com/


I haven't owned a UBB in over 3 years!
#41022 04/20/2000 9:59 PM
Joined: Mar 2000
Posts: 11
Member
Member
Offline
Joined: Mar 2000
Posts: 11
I ve tried to use $OnlineUsers instead of $OnlineUsermsg I got my name repeated 3 times like this web king, web king, web king

The Old Codes worked fine when I used V. 5.42a , now I have upgraded to 5.45c then reuse the code, but it is updated and wont work well. That s the ONLY problem I m experiencing.

Please Help

I want to be able to have the following:
For example:

Mike B, Brianx, Johnny, Coolkid, and 3 Guests.

Can you help anyone ?

#41023 04/21/2000 2:49 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
my ubb is running version 5.45a and this is what i got when i installed the who's online hack : http://mobilezone.hypermart/cgi-bin/online.cgi
Can somebody help??? Thanks in advance!!!

#41024 04/21/2000 2:53 AM
Joined: Mar 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 13
I finally got it and a few addons installed and working. I think this is one of those situations where there's too many people editing the same code. But that defeats the purpose of the forums... sooo... I'll just say: GREAT HACK!

-twice http://utbooty.unrealism.com/cgi-bin/ubb/Ultimat.cgi

#41025 04/21/2000 10:37 AM
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
I will support my code, since I started this hack. I have built in the same features that others have added, and am open to suggestion regarding new features.

If you install this hack from MY directions and use my addon script, and it doesn't work I'm willing to help... but if you try to piece my code together with Mutt, or Jazel, or anyone elses code... you are just asking for trouble.

The reason my code will not work with anyone else's code is because I like to do my own coding (it's easier to support).

So, if you follow my instructions, and it doesn't work, let me know!

#41026 04/21/2000 12:10 PM
Joined: Jun 2000
Posts: 59
Member
Member
Offline
Joined: Jun 2000
Posts: 59
David, I'm asking for your help!
Quote
quote:
Let me know what you think. I am using your code right from your post with no other addon or hack to it. I am running 5.45a if that helps.


I do not offer support by EMail or ICQ, please post your question at UBBDev....
#41027 04/21/2000 1:02 PM
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
Ok, thanks... I've fixed the problem of the OnlineUsers variable showing your username over and over again. Sorry about that. I've also started a change log on my install instructions page to let you know what has been changed and when.

To fix the problem, just replace the "GetOnlineUsers" subroutine with the new one in the instructions.

#41028 04/21/2000 1:26 PM
Joined: Jun 2000
Posts: 59
Member
Member
Offline
Joined: Jun 2000
Posts: 59
Thank you it now works!!!!


I do not offer support by EMail or ICQ, please post your question at UBBDev....
#41029 04/21/2000 2:36 PM
Joined: Jan 2000
Posts: 4
Member
Member
Offline
Joined: Jan 2000
Posts: 4
I'm having a few minor problems with all of this [Linked Image]

First, when I enter the boards, it calls me 'Guest', which I'm not. But once I enter and forum and then click on the main image at the top to reload the main forum summary page, it calls me by my username. Any ideas why??

Also- if I want to add the cookie to other pages (like memberlist, etc), how and where do I add it? I've tried a few things, but when I reload Member List, I get nothing but a blank page. help?

Thanks in advance..

#41030 04/21/2000 2:57 PM
Joined: Mar 2000
Posts: 57
NSA Offline
Member
Member
Offline
Joined: Mar 2000
Posts: 57
*Note: It is working on the online.cgi, however it is not listing the # of people browsing on the main page. :

Okay I guess it is the $totalcount is not working right. [Linked Image] I tried putting it $OnlineUsers in its place, but it also did nothing. It looks like the routines in ubb_library.pl are not working, or being implimented correctly in my case. The online.cgi works perfectly, but for some reason the implimentation in Ultimate.cgi is not being carried out.

Any ideas?

------------------

#41031 04/21/2000 4:40 PM
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
NSA - Looks like you don't have the &WriteUserSession call in Ultimate.cgi so the variables aren't being set. online.cgi works because it does make that call.

muted girl - just a guess... do you have the &WriteUserSession calls in BOTH places in Ultimate.cgi? That could explain why it doesn't work on the first call.

#41032 04/21/2000 4:48 PM
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
For all those who are wondering, I took a fresh copy of UBB 5.45c this morning and installed the hack from my directions and it worked fine! So, chances are if you are having problems getting it working you missed something, forgot to upload it in ASCII, or are having a conflict with another hack!

#41033 04/21/2000 8:44 PM
Joined: Jan 2000
Posts: 31
Member
Member
Offline
Joined: Jan 2000
Posts: 31
Another idea for you Dave via a comment by MichaelF of Info-Pop.

Some large UBBs may get bogged down processing the gethostbyaddr. Since you are the master of flexibilty in hacks and for completeness of the hack for boards already under heavy load, recommend that a "NONE" variable be added that bypasses the gethostbyaddr and just displays the Guest #1, Guest #2...etc

By the way that discussion with MichaelF is here . I hope you do not mind me keeping his interest and only assuming what can and can not be done and what he is talking about (I only guessed it was the gethostbyaddr process). Maybe you could figure out how you can market this with him and get some Walk Around Money (WAM).

------------------
Michael Butterfield
Music Global Network
http://musicglobalnetwork.com

#41034 04/21/2000 10:18 PM
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
Michael, thanks for passing along that info... I probably wouldn't have seen it otherwise. Anyway, the script has been updated to do exactly that. A "none" option has been added. In addition, it will now only do the hostname lookups if the critera set is matched (admin, mods, etc). I've also added version notes to the script to try and keep track of things.

Just wondering... should I move all the configuration out of the "online.cgi" script and into a seperate config file? I'm not sure or not if that is really necessary though... but with the rate things are changing, new updates are made often. I mean, it is BETA code. Hopefully, soon it will reach a point where updates are rarely done.

#41035 04/21/2000 10:21 PM
Joined: Feb 2000
Posts: 116
Member
Member
Offline
Joined: Feb 2000
Posts: 116
Dave, I never got to compliment u on the script, nice job

------------------
Want a free 1-877 number? Just email me and I will send you an email from a company that gives it to you free! Whoever fails to email me will be beaten with a large lead pipe.

#41036 04/21/2000 10:50 PM
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
Thanks! It was pretty fun to write... I can't claim credit for the idea. I saw it here first, and got tired of waiting for it to materialize!

#41037 04/21/2000 10:55 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Dave,

I've done what you told me but still those thing pursue what should i do next??? Please help.

#41038 04/21/2000 11:00 PM
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
mobilzone - please grab the latest version of "online.cgi" (1.8), it contains a piece of code that may fix your problem... I noticed you were still using version 1.6.

#41039 04/21/2000 11:04 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Dave,

sorry but where do i get this ver 1.8???

#41040 04/21/2000 11:14 PM
Joined: Jan 2000
Posts: 4
Member
Member
Offline
Joined: Jan 2000
Posts: 4
Dave- when you say 'BOTH' places, what do you mean? I have it in the file twice, but it's one right after another:
Code
code:

like that. Is that what you mean? Or do I need to put in another place?

..thanks [Linked Image]

#41041 04/22/2000 1:36 AM
Joined: Feb 2000
Posts: 9
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 9
Hey Dave, where can I get v1.8 too? I downloaded from where your instructions said to and got v1.6

Also, I wanted to know if you could help me with a problem. Everything seems to be working on the message board but when I click the link to go to online.cgi it gives my an Internal Server error.

I am running 5.39 and I did the cookies thing the way you said but I can't seem to get it to work. I'm new to cgi so was I supposed to put those 2 subs at the end of ubb_library.pl?

#41042 04/22/2000 9:36 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
my problem is that the html output isn't outputting right. when i click on the link "currently browsing the boards" all i get is a white page with "1 guests"

is there something i missed editing?

thanks in advance for help

#41043 04/22/2000 11:54 AM
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
Sorry about the outdated link for the online.cgi script. For some reason my symlinks keep breaking. The link should now take you to version 1.8 of the script:

http://www.arlo.net/ubb/cgi-bin/online.txt

#41044 04/22/2000 12:47 PM
Joined: Jan 2000
Posts: 31
Member
Member
Offline
Joined: Jan 2000
Posts: 31
Cool! Mine is updated to version 1.8

Ripper,

It sounds like you did not update the shabang path (1st line of online.cgi) or the require statements path for your configuration.

Discordant,

Do you have SSI = 1? Set it to 0 and see what that does.




------------------
Michael Butterfield
Music Global Network
http://musicglobalnetwork.com

#41045 04/22/2000 2:11 PM
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Jaxel,
you have this code posted twice. Bothe for forumdisplay.cgi and postings.cgi

&get_cookie;$location_name = "Reading on $Forum";$online_url = "$CGIURL/forumdisplay.cgi?action=topics&forum=$ForumCoded&number=$number&DaysPrune=$DaysPrune&LastLogin=$LastLogin";&WriteUserSession("$location_name");

They should be different shouldn't they?

I know one says "Posting on" and one says "Reading on", but shouldn't the code be different?

Shouldn't the one for postings.cgi have "CGIURL/postings.cgi?action=....(Either reply or new topic)...etc?

IE: "Posting a new topic on...." and "Posting a reply on..." It needs both dont you think?

Also, my Who's Online will not show "Reading on..." for some reason.

#41046 04/22/2000 3:38 PM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
thanks Dave,

Must agree that the v 1.8 works like charm!!!
got no problems in 5.45a ubb!!! once again thanks for helping!!!

Page 4 of 9 1 2 3 4 5 6 7 8 9

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
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)