Here's some extra guidance for the X number of users browsing in the forums. Maybe it will help someone since I had to twittle around some.
Click here to see it on my site First I replaced Dave's "addon" forumdisplay.cgi code above:&get_cookie;
$online_url = "$CGIURL/forumdisplay.cgi?action=topics&forum=$ForumCoded&number=$number&DaysPrune=$DaysPrune&LastLogin=$LastLogin";
if ($LWA ne "private") {
&WriteUserSession("
$Forum");
}
With this code&WriteUserSession("Main Page");
$tot_browsing = @found;
$ForumCoded = &HTMLIFY($Forum);
$ForumCoded =~ tr/ /+/;
&get_cookie;
$online_url = "$CGIURL/forumdisplay.cgi?action=topics&forum=$ForumCoded&number=$number&DaysPrune=$DaysPrune&LastLogin=$LastLogin";
if ($LWA ne "private") {
&WriteUserSession("
$Forum");
}
Note: I did not use the $tot_browsing++ variable, since I am using the option to display myself online. It seems to increment the variable +1Next, in forumdisplay.cgi find the following code:
$TopicLegend $ReplyLegend
Replace the above code with
| Currently browsing the boards: $tot_browsing registered user(s)
$TopicLegend $ReplyLegend
Thanks for keying us in on the purpose of those variables Dave.
------------------ Michael Butterfield Music Global Network http://musicglobalnetwork.com
MGN, Thanks for the help, but i'm confused now. (not a programmer here)
Perhaps it would be helpful to everyone if someone could document this part of the hack for both with and without the "View Self" option, and where to put the proper code in forumdisplay.cgi and ultimate.cgi.
It would be most appreciated. Again, thanks to all for this GREAT hack!
Thanks, but, I actually have little idea of what I'm doing...It wouldn't surprise me if I'm mucking up something. It's hard to learn any other way though. Dave's code is based on the default of not showing yourself on-line. My personal feelings is that the final code/documentation should only "show you on-line"..it's much less confusing this way and who cares if you can see yourself, everyone else can. Anyway, if you read Dave's txt file you can easily see what 1 line of code to delete to make it show yourself on-line in addition to others that can already see you. ------------------ Michael Butterfield Music Global Network http://musicglobalnetwork.com
NBA Austin - If you're still having trouble getting the colors to work in the tables, try putting the table and font color commands before the "colspan" tags. Worked for me. ------------------ Webmaster Van Halen Links.com http://www.vhlinks.com UBB Moderator http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi
Hello..
I have a big problem in cookies , once when a script need the cookies and wanting to display the name of the member if the name was in english letters it works just fine, but if the name of the member was in arabic letter i get RABISH (some thing not readable). is there file which i can by pass to avoid this in cookies . In few words if i want to install the private message code hack at the bottom if the forum appears [MemberName] you have of messages i mean [MemberName] if it was in english letters there is no pproblem but if the member name was in arabic letters i get [un understandable words] (RABISH) like this %34%&43%&%%!36%$%$7& please help me
So far this hack is great... Question: When you click to see where a member is, it never show anything but "Main Page". Will there be an add-on to show EXACTLY where a member is? Now THAT would be REALLY cool!
Thank you all for the hard work. It's appreciated!
You can already do that if you place the &writesession code in the right place in the forumdisplay.cgi file. See above, it's explained how to do it there. ------------------ Webmaster Van Halen Links.com http://www.vhlinks.com UBB Moderator http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi
Thanks again Slurpee. WOW!! What a hack!!!!
Now the next step.....
How can this be incorporated into a static page such as a web site's front page?
Thanks again to EVERYONE!
For all those who have wanted this as a SSI call, I've modified the addon script to be able to be called as a SSI. Grab the script from here: http://www.arlo.net/ubb/cgi-bin/online.txt Save it to your CGIDIR, set the permissions properly, and rename it to "online.cgi". Then, open it up and edit the configuration variable ssi (set it = 1). Then, just call it from where ever you want.
P.S. Where do I put this so it shows up in Active Topics? I have some users who go straight there instead of the main forum. I'm PSYCHED!!!! Thank You, Thank You, Thank You!!!! (I wonder if this can be modified to pin the user down to the THREAD he/she's reading!)
NBA - What do you mean by "Where do I put this so it shows up in Active Topics?" BTW, I have the following just after the configuration variables in my active.cgi script: If you do this, make sure active.cgi has the require cookie-lib.pl and ubb_library.pl. After this call, you can reference the list of who is online by placing the variable $OnlineUsers elsewhere in the HTML part of the active.cgi script. As for being able to pin a user down to what thread they are reading... not possible really, since the threads are not dynamically created. It's not impossible (it could be done using SSI calls on the static pages) - but it would add a good bit of overhead to the boards and the script.
Thanks Dave,
But, I'm not sure where all this goes. (I'm not a programmer)
Could you guide me thru this please?
O.k. guys now I love this SSI thing, it works great, what I really want to know is this... Can you get this to work for other parts of the site? I don't want to know who's currently browsing the boards, I want to let users know how many people are currently in my java chatroom from the main page of my site (and probably also from the boards). My chatroom is embedded in a page and is therefore static (it will not move URL ever), so really all I need to do is be able to tell the script that I want it to let me know how many people are browsing the .html page that my chatroom is on (because if they are browsing the page then they are automatically in the chatroom). Is this possible? Thanks in advance, Rob
Hey!
I have an idea.
Can a Forum be embedded into Online.cgi so members can post notes to meet in other forums/threads?
I think someone wrote a hack to do this in Ultimate.cgi for unregged members....
I think this could really be an excellent feature!
First, great hack! Works good. I have a problem with the online.cgi not using my background image. Maybe its the wrong variable for the background image? I dunno. If you know the background image variable please let me know. =) I still couldn't get it to display on the forums though. No idea why. Just doesn't display anything(and I updated the threads, etc.) ------------------ Troy(Trekkan) RPG-Files Webmaster & Owner http://www.rpg-files.com
hello?
Anyone have answers?
Ps...is there a cookie problem on this site?
Yes, there seems to be. Just a thought
Ok, i installed the hack as described but it is not working properly. i deleted the one line from the GetOnlineUsers routine so that i would see myself when i am on. buti don't only after i postet a new topic or a reply my name would show up. what wrong? what can i do to fix it? i have version 5.42
mIkE 2oo0 - Go in to your preferences and make sure you have it set to remember your username. That should probably solve your problem. Because the way the hack works is it just pulls your cookie info and uses it... so if you don't have it set to remember your username, you won't show up until you post.
Troy - regarding the background image for the online.cgi script... oops. It's looking for it in your CGI directory, so you can either change the code, or just place a copy of your background image in the CGI directory. (I just did a symbolic link).
There seems to be a problem with online.cgi.
Today instead of showing March 11..it's showing FEBRUARY 11. All posts and other date references on the board are OK, so i believe the problem lies in online.cgi.
Anyone else getting this bug?
Without looking, I'd imagine it's a mistake invloving the 'localtime' command. It returns the month as a zero based index, so you have to increment it. Just a thought
Yup, that's the problem... find:
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($seed);
adn right after it add:
$mon++;
Fixed!
I'd just like to congratulate myself on that superb bug-fix Just a thought
How about making each username a link to his profile? Could be kind of handy to some people.
That would be nice. You could have a little table in the popup with the user's row of buttons (profile, mail, pm etc.) Just a thought
I think I found an incompatability between the Online Users Hack and the Start=here hack. The Start=here hack seems to cause multiple displays of the online user. Here's the location of the Start=here hack in case you want to investigate this further. Start=here hack ------------------ Michael Butterfield Music Global Network http://musicglobalnetwork.com
Dont work with cyrillic MSIE 5.01 Win2k
for example: %u0414%u0438%u0437%u0430%u0439%u043D%u0435%u0440
this is Äèçàéíåð
in NN 4.72 it prety
Good idea!! I'll get to work and see what I come up with
Hmmrm some people do not seem to be logged on there. I went on the irc chan and told some people to test it. Some people show up and some don't. Odd
++Russ
One final time...
THIS HACK WILL ONLY WORK FOR PEOPLE WHO HAVE A COOKIE SET!
That means they either had to select to have their username remembered for a year (from the preferences), or they had to have posted a message, or edited their profile... because these are the only timea the username cookie get's set.
I get this when i go to my Ultimate.cgi [5.44] : = qq( Currently Browsing the Boards TML ); how can I remove = qq( and ); ? thanks! ------------------ [ No mystery is closed to an open mind ]
great hack BTW c-ya ------------------ [ No mystery is closed to an open mind ]
Dave, when are you going to make the hack create a link to user's profile? Or did i miss that?
You missed it. Scrool up and look for Dave's add on hack (online.cgi). I have it on my board. ------------------ Michael Butterfield Music Global Network http://musicglobalnetwork.com
Stupid me, but I still can't find it
Dr Dollarz - how are you doing with my sugested modification? Just a thought
sorry 4 bugging , works perfectly I didn`t follow the instructions well... c-ya ! ------------------ [ No mystery is closed to an open mind ]
You should make it so that on Ultimate.cgi when the users' name appears theres link to their profile. ------------------ Please Join My UBB
Dave:
Some of our members don't want to be listed. Any ideas on how to add an option to their profile that would able them to turn off the displaying of their name?
Great hack again.
Parker
I agree. That option has to be added! Also, i think it would be nice to have an option "show my name always online", so the user's name will always be in that list. I've seen it in some other scripts and really liked the feature
Good suggestion... here's what I'll work on when I get a chance. I'll make it a "preference" setting, when people can go there and select to remain "invisible". This should be fairly easy to do. Easier than adding a field in their profile.
Ilya - why would someone want to show up as always online? If too many people did this, the online list would get too big and wouldn't mean anything. What am I missing here? Just a thought
Dave:
Nice idea. Would they have to make themselves invisible each time they got on the board then?
Parker
It would be better as some kind of profile option, so you were always hidden or always not. Cookie editing time.... Just a thought
ok, i just added tha invisible mode in prefrences using ilya's kick *** hack found here. http://ubbcodehacking.com/ubb/Forum7/HTML/000083.html I didn't realize prefrences were so easy to modify. (thanx ilya) anyway follow here directions for modifying ubbmisc changing the word 'Signature' with 'invisible' change the wording how ever you like. here's mine then jump to sub WriteUserSession in ubb_libray.pl and throw an if statement around the push(@online line like this thats it
Cal: being always online benefits some people. I've just seen it done on another board (i think, wwwthreads) and kind of liked the idea.
Also. Cool. My hack is being used to make anothre hack! Wow! LOL No problem. I thought it would be really hard myself, at first, but then just tried and figured it all out so easily
I just cannot get this to work. I have added the invisible code but my name shows up whether or not I check invisible or not. And in the listings on the page it is including the name Main Page.
Parker
wow, I hope someone can help -- please understand that I'm not a programmer and this kind of stuff drives me just slightly nutso My first question... I got this hack to work displaying on Ultimate.cgi the people browsing that page and forumdisplay.cgi. I'd like it to also register people who are currently posting or replying -- can someone tell me where to add the right code and exactly the code to add? My second question... I don't want to display this on Ultimate.cgi... I only want this information accessible to mods and admin so I though if I could add it to the IP page that would be cool. Not knowing much about perl I tried adding the hack-code from ultimate.cgi to posting.cgi (in the right area) but it did not display the people online... the list was blank (not even saying "there is currently no one else around"). What would I have to do to get it to work in this area? One more thing... I grabbed the companion script and did exactly what the instructions said... but I'm getting an internal server error when I try to look at it. This is really the least of my problems (hehe) but I'm just wondering why this could be. Ideas? By the way... I'm the creator of the smilie -- glad everyone seems to get a kick out of it <-- (hehe, I made the tongue guy too) Thanks for a great hack! ------------------ Amy http://www.something-fishy.com/
Are you serious? Great smilies!!! Sorry, but I can't help you about the hacks. ------------------ Thanks for reading! Ilya Administrator of Ubb Code Hackers Hideout Moderator of UBB Hacks Finished
hey ilya... yeah, I'm serious -- and thanks! By the way... forget all my silly questions... I figured them ALL out and it seems to be working great so far! Thanks again for the awesome hack! ------------------ Amyhttp://www.something-fishy.com/
Very nice smilies - do you know how many people use them? Wow. Just a thought
hard to say really... I had put a bunch in the graphics forum over on the Infopop's UBB board and Ted had also asked permission to use some of them in the officially released copy. has become the one I see most on other boards because it's a standard that comes with UBB now. As for the others, who knows LOL -- over in my own UBB I've got at least 30 custom smilies that my members absolutely love! Anyone interested... here's the links where I originally shared my smilies: http://www.scriptkeeper.com/ubb/Forum10/HTML/000283.html and http://www.scriptkeeper.com/ubb/Forum3/HTML/000411.html Enjoy 'm ------------------ Amyhttp://www.something-fishy.com/
Ok, I have put the lines in the ubbmisc.cgi file as required but when I put the code in for the change in the cookie section of the ubb_library file I can still see my own name listed wether I have the invisibility enabled or not.
Anyone that has this working want to post the code they used in the places they put it in so I can see where I screwed up?
Thanks, Parker
SFishy- wow! btw, how did you get it to work for just the mods and admins?
I'll warn ya ahead of time -- I'm terrible when it comes to documenting hacks, so most of this comes from memory Basically, what I did was instead of added the following code to Ultimate.cgi, I added a variation to posting.cgi. Find: and right after it add: What this does is add a link to the online.cgi add-on script from the page where IP's are displayed. Now that assumes that you don't have IP's publicly displayed of course, and that only admins and mods can view that info. So when you click on "IP Logged" from a post you're asked for a password before proceeding. Really, you could stick this link anywhere on the board you want, but since we didn't want it to be public info, we hid it in an admin/mod area. So far I'm seem to be successfully tracking members who are posting, replying, viewing forums or the main page, searching, reading bios or editing their own, or editing preferences. I'd LOVE to be able to trace at least somewhat the people who are reading posts. I don't necessarily want to know WHAT post or where, but just that they are in a thread reading something. Any ideas on this Dave? ------------------ Amyhttp://www.something-fishy.com/
I just installed this script on my board which is 5.43 it works very well
Amy - I think it would be possible if your thread pages were set up to parse SSI calls. It would also require an additional program or piece of code that you would call.
I am getting persons-name[]persons-name from the forum display... main page and online.cgi read fine....?
Not sure this is correct...I see nicks of ppl showing at my Who;s Online, that never register in my forum b4...is this normal?
That shouldn't happen - what do you mean? Just a thought
Still need answer to mine... looks like the cookie info is doubling...
Highlander, that happens on this board aswell. I haven't seen a fix for it yet. Just a thought
What I mean was..
EG. on the Who's Online, it show these few nicks..abc, 123, def..
all of them are not member or never register with the forum b4...but they just posted something.
is this normal? and also, I was doing some testing...I user a non registered nick..ZZZ, and post a msg..then go back to the main page..in the Private msg feature..I see ZZZ- you got no new mail.
That's odd - has this happedned to anyone else? Just a thought
How do you show when someone who has not registered, but just lurking show up on who's online?
hunter
can this "Who is On Line be used on a none CGI file such as the index.html and be called via SSI?
------------------ I long for a friend more intelligent than me
I have online.cgi working, but it only shows the "Main Board". How can I show what forum the user is in?
Did I missed it??
thanks
I'm having a problem. http://www.pokemonabode.com/cgi-bin/online.cgi I put in a fresh, non-edited script. I just saved it and uploaded it in ASCII, CHMODed to 755, and it just shows an error. What's going on? what am I doing wrong?
Ah, I found the problem. If you have the versions that you have to edit cookie-lib.pl instead of ubb_library.pl, you MUST find: and ADDOtherwise, it WILL NOT work for those of you with older versions (I believe it is anything under 5.44).
Check out my online.cgi, http://www.pokemonabode.com/cgi-bin/online.cgi I made it so it tells the reader where the user is and what they are doing (i.e. if they are posting in one forum, or reading another). Nice concept, eh?
Very "big brother", but nice. Just a thought
It would be realy nice to add 2 things to this hack: 1) Option to select whether your name should be shown in the list or not 2) Link to the profile.
And what about a link to the user's last post? Just a thought
Wierd, on the onlinelist it says it's March. Why??? It does the same on this UBB's list, too.
Hi!
I've got a serious problem: I installed the Who's omline hack and everything is working fine.
BUT: The "new post"-indicator (on.gif / off.gif) always shows ON (new topics) for all boards on the main page, since the crack was installed and went online.
Can you please help me?!
I just read this thread (again) and though I have gotten a number of problems solved with it, and gotten this awesome hack to work fine, I've seen a question that I would love to have answered:
I'm with that guy that has the chat room. A static .html page that I'd like to include in what online.cgi tracks. Can this be done? If so, what code do I need to put where?
I've found that people don't want to go into the chat room unless they know there's people already in it. (kooky people!)
I believe this would be useful to a lot of folks.
Thanks!
-twice
Hey dLo aZn...can ya post how you did that? (Made it so you can see what they are doing)
I'm not sure what it would involve. If you mean use the SSI functionality of online.cgi, I thought that just gave you "There are X members and X guests online . I'm talking about tracking another page that has nothing to do with the boards. check it out: http://utbooty.unrealism.com/cgi-bin/ubb/Ultimate.cgi The chat link is in the OnlineUserMsg -twice
I added a little feature that records the record for highest users on at the same time add this right above $onlinemessage = qq(<.... then place $onlinemax where you want in Ultimate.cgi ------------------ http://www.upnetwork.com/http://bbs.upnetwork.com/
Could you please post this code? Thanks in Advance!
Yo listen up yes yes please post it ------------------ "Yo listen up" is a trademark of Dr. D Corp. Whoever violates this law will be beaten with a large lead pipe.
check out my list, it gives their location and a link back to them! http://bbs.upnetwork.com/cgi-bin/online.cgi would you like to know how I did it? put the codes after the require statements in forumdisplay.cgi [this one should also be after the foreach row(@in)] in posting.cgi [this one should also be after the foreach row(@in)] in memberlist.cgi in search.cgi in ubbmisc.cgi Ultimate.cgi already has the info if you installed before, but you can edit it to anyway you like. This one is mine ------------------ http://www.upnetwork.com/http://bbs.upnetwork.com/
Ok, I've added the max count to the install instructions, and modified the online.cgi script to use it! Again, I did things a little differently than Jaxel. Rather than create another file (which takes extra processor time and resources) I just modified the routines to use the first line in the "online.cgi" file that gets created in the members directory. And in addition to keeping just the max count it logs the time and date when that count was recorded.
To upgrade to the latest version is simple... just grab the new routines from my install instructions and put them in your "ubb_library.pL" in place of the old ones. Then grab the latest version of my "online.cgi" script.
So it goes after the require statements at the top and after the foreach routine in every script?
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.
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
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.
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
Anyone have updated instructions with all the new stuff in it?
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!
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
------------------
Jaxel, Great post! It works Sooooooo Good 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
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.
Stupid question, can i use this with V5.38c?
Thanks
DJ
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!
Anyone know exactly where that code is supposed to go?
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 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 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 ?
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!!!
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
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!
David, I'm asking for your help! 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.
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.
Thank you it now works!!!!
I'm having a few minor problems with all of this 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..
*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. 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? ------------------
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.
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!
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
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.
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.
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!
Dave,
I've done what you told me but still those thing pursue what should i do next??? Please help.
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.
Dave,
sorry but where do i get this ver 1.8???
Dave- when you say 'BOTH' places, what do you mean? I have it in the file twice, but it's one right after another: like that. Is that what you mean? Or do I need to put in another place? ..thanks
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?
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
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
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
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.
thanks Dave,
Must agree that the v 1.8 works like charm!!! got no problems in 5.45a ubb!!! once again thanks for helping!!!
NBAustin, Here is what I am doing with the postings.cgi file and it seems to work great: To see it in action, look here After sub Reply {add this: After sub PrepForEdit {add this After sub PostReply {add this: After sub NewTopic {add this: After sub PostTopic {add this: After sub DoTheEdit {add this: Okay I'm sure there is a better way to do this, but using the subs is the best way. You could also do the same for "delete topic sub", I do not enable it so no need to modify it. So what do you all think?------------------ Michael Butterfield Music Global Network http://musicglobalnetwork.com
Michael,
I see nothing wrong with where you have them in postings.cgi, and it should work fine. The only thing is, peopl should be aware that putting them there will show people posting in private forums and stuff... which is something I'd rather not have people knowing who has access to them. If that doesn't concern you, then that's probably a good place to put them!
Hi Dave, I do not have private forums enabled. I agree if you do have private forums additional coding and placement is crucial. ------------------ Michael Butterfield Music Global Network http://musicglobalnetwork.com
Thanks Michael. I had it right. It's working fine. I appreciate your help.
Works great!
NOW....
How do we get it to show people either performing a search, or reading "Today's Active Topics"?
and....how about it showing a guest registering...reading the FAQ...etc?
Cool, I'm glad to help out. It should switch from area to area really well that way. Having a couple static IP accounts helped me debug it. I would try and get that private forum issue solved, but I have to pack up now and go to Hawaii. However, I am sure I left the baseline code in good hands here on the Code Hackers Hideout. I bet by the time I come back, there will probably be 5 or more cool addons or enhancements ------------------ Michael Butterfield Music Global Network http://musicglobalnetwork.com
The man sure knows how to make somebody jealous... have a good trip. ------------------ Allen - http://www.stand318.com
Hey Dave, Just wanted to extend a thank you for this excellent script! Now updated to the newest version (1.8), on 5.45b, and all is working perfectly here. Maybe you should take a vacation to Hawaii too. You deserve it! ------------------ Administrator Alien Soup Forums http://www.aliensoup.com/cgi-bin/forums/Ultimate.cgi
Please help I installed your code V1.8 and in the main page it shows up when i click on the who is online this is what i get
Invalid header: Unknown or unsupported header
Script output was: Undefined subroutine &main::get_cookie called at online.cgi line 106.
music global: that was EXACTLY it, thank you very much
DJLunacy - what version of UBB are you running. If your ubb_library.pl does not have the "get_cookie" subroutine in it, you'll need to add the following line with the other requires at the beginning of any script that you put a "&WriteUserSession" call in:
require "cookie-lib.pl"
Hi Dave, I have installed this hack off of a local file at http://www.mrwebb.net/ubbhacks/ but I have not been able to connect to your site at all. The version of the hack that I have is great and all but the whole deal, especially with what the Pokemon guy did would be ideal. Any idea why I can't connect to your site? Any chance that I could talk someone into e-mailing me the txt directions? Thanks in advance! ------------------ Cygnus http://www.cygnus-study.com
consider the instructions emailed to you.
i also included the latest version of online.cgi just incase you didn't have it
Dave, Just wanted to thanks. Very easy to follow! I have only had my board for a couple of days and was able to install this hack the first time! [font] Just one questions about this.. # Who do you want to see ip/host information? # Options available are: admin, mods, both, everyone, none # Setting this to anything other than 'none' MAY drastically increase the # load on your server. $display_host = "both"; [/font] I set mine to "none" just because of what you said, but was wondering what the options mean Thanks! Tim
Admin = Only admins can see IP/Host info Mods = Only mods can see IP/Host info (??) Both = Both admins and mods can see IP/Host info Everybody = Anybody can see IP/Host info None = Noone can see IP/Host info
I have a small problem. I have two online.cgi's installed, online.cgi and online2.cgi. online.cgi functions as a normal online.cgi, while online2.cgi is the SSI one, and I include it in a small bar over my UBB nav bar, and it refreshes every 20 seconds. Only problem is, every time it refreshes, it writes the user as "reading the onlinelist", as it would if you were reading the normal online.cgi. I tried removing the but the script then just shows nothing. How do I stop online2.cgi from writing the user session? THanks! ------------------ http://mb.pokemonabode.com
Dave Downin,
I must say this is one of the best hacks. And I really appreciate you taking the time to fix the minor bugs here and there. Its very easy to install.
You may want to put in the online.txt file that its been updated on a newer date. right now it still says 2/11/00 or something.
Great Job and keep it up!
Dave Downin, I dont know what you did to fix the cookie problem. But you fixed all my cookie problems. PM works without duplicate names and everything. Thanks Dave! Ohhh yeah quick idea. I dont know how much more you want to code into this. But how about having the users location also in the who is online. Also since there is a log of how many visiters. How about total visitors? Just a idea Thanks again Dave.
AWSOME!!! That is all I can say, Haven't worked on my forum in months. Now the Hacks are great. I installed the Who's Online hack in minutes and it works great. Kudos Grumbling http://www.eliteleagues.com ------------------ Nothing But Grim Determination...
Hi, I have been following this forum for about 3 months already and learned much of it, also had the errors with double names but that's solved too with latest release but here's what I get now:
After adding the first one, everything worked except the double name thing
now I upgraded it and the script works but ALL my msgs have the icon that they are new, and all the forums' Light are lit stating they have new msgs.
Maybe this has come before, but how do I fix this?
plz help would be appreciated.
If you want to test it at the forum itself, here it is: http://hammer.prohosting.com/~pandora0/cgi-bin/Ultimate.cgi
It's at prohosting = Slow but something for ppl who don't have their ow server nor the money to buy webhosting
Plz help me, because I love this hack and would like to have it to work without messing up the rest of the script.
Thanks
Redneck - I've heard of this problem, and I'm not sure what the cause of it is, because I don't have that problem on my forums. I know that this site had that problem for a while, but now it seems to be fixed. If anyone knows what the deal is, I'd love to hear how you solved it. (It's kinda hard to fix something that you can't duplicate).
I never got this problem either.
Helios, does it works with you already now? if yes how have you fixed it? Thanks
holy monkey!Okay, I've spent the past hour reading this entire topic and I just tried installing Dave's the hack today. So I'm guessing I have the latest version of everything. And since I'ma complete moron, I can't get it to work. Although my problem was similar to others, it's not quite the same. I'm sure it's simple and I'm going to feel even more idiotic, but it don't think it's as simple as "uploading in ASCII and setting my premissions" because I've already done that, twice. Firstly, on the "main page" I get this "Guest - There are no members, and 1 guest on the boards." Why am I being seen as a Guest? And secondly, when I click on the link I get a 500 error. I know this mean my premissions aren't set right, but I swear I have. Unless they're suppose to be something *other* than 755? Or maybe not 755 at all? I dunno. I'm so confused. Anyone willing to help? Please? http://littleginsu.net/ubb/ Oh! Okay. When I posted a msg on my board it then recognized me. However, I cleared my History and Temporary Internet File and now it doesn't know who I am. Is this just something that happens to everyone, or have I *really* messed things up? help!------------------ spoo
I'm an even bigger loser. I installed it tonight (so I assume I have the recent versions) but when I tried to access my forum I just got "Document contains no data" and Undefined subroutine &main::WriteUserSession called at Ultimate.cgi line 140. Undefined subroutine &main::WriteUserSession called at Ultimate.cgi line 133. Undefined subroutine &main::WriteUserSession called at forumdisplay.cgi line 331. In my error logs..... ideas? I only did the basic install... ubb_library.pl, Ultimate.cgi, and forumdisplay.cgi I checked to make sure those scripts had the require "ubb_library.pl" line Right now I am reverted back to the previous code because I didn't want my board down.
k solved my prob deleted the cookie of UBB on my hd and everything works back very weird
OpalCat - did you follow my instructions and install the 2 subroutines (and replace one) in ubb_library.pl? Doesn't sound like you did...
This topic is getting long, 192 posts, thats the longest I've ever seen in UBB
That's tiny. I know a post with over 100 pages. Just a thought
Any suggestiongs for me? ------------------ spoo
Whoa! 100 pages? Thats long, how many posts was that?
Still waiting for help... quote:</font><HR>Originally posted by dLo aZn: I have a small problem. I have two online.cgi's installed, online.cgi and online2.cgi. online.cgi functions as a normal online.cgi, while online2.cgi is the SSI one, and I include it in a small bar over my UBB nav bar, and it refreshes every 20 seconds. Only problem is, every time it refreshes, it writes the user as "reading the onlinelist", as it would if you were reading the normal online.cgi. I tried removing the <BLOCKQUOTE><font size="1" face="Verdana, Arial">code: but the script then just shows nothing. How do I stop online2.cgi from writing the user session? THanks!
------------------ http://mb.pokemonabode.com
whoop!No more internal server error, but my cookies are still screwed up. Any suggestiongs? Please? ------------------ spoo
I tried installing the hack..and what I got is that it puts the "Online Users" section that is supposed to go at the bottom of the forum at every 'section' of the main page. It's kind of hard to explain, so just check it out here: http://forums.ttlg.com This is my 'experimenting' forum, I don't want to screw up my actual forum, so please let me know what needs to be fixed. Thanks in advance.
Gawain.... looks like you've got the code in Ultimate.cgi in the wrong place... check the directions and where you put it!
So... I guess this means no one's up for helping me? It's not like I haven't been looking around and using the serach function because I am. I've tried every suggestion I was able to find and understand and still no luck. I know you guys are probably sick of answering the same stupid questions over and over again, but could you at least take a look and point me in the right direction. Thanks. ------------------ spoo
Thanks, I redid it and it works! However, one more thing -- how come it shows me as "guest"? I mean, it says: "Guest - There are 14 members, and 16 other guests on the boards." Also, how do I remove the IP address listing on the guest's on the online.cgi page? I want to conserve their privacy... sorry, I'm not that much of a perl/cgi guy -- I'm an ASP guy. Is there a solution to these? Thanks again for your help.
Greetings -
I am running 5.45c and I attempted to install this hack (which is the best hack so far). I am getting a blank page when I try to connect to the ubb. I followed your instructions to the T, but I usually did something silly like added a ) or forgot a ;. I have read about 100 of these pages and found nothing. I am running it on my own server (iis5.0) and played around with the print switch that you suggested. Just for giggles I put in 1 modified file at a time to try and pinpoint the page with the error in it, but each page seperately would bring up a blank page. If any of you have any suggestions, please let me know. I will give it a shot from scratch soon, but there is always hope.
joor
Okay. I'm new at all this CGI stuff, so bear with me. I've added all the code for this hack to the appropriate places. Ultimate.cgi, ubb_library.pl, forumdisplay.cgi and cookie-lib.pl have all been edited properly, as far as I can see. online.txt was uploaded and renamed to online.cgi, and the permissions set right. It works, until someone clicks on the "Currently Browsing.." link...then I get a 500 error. Oh...my server needs the .shtml extension. Now, did I miss something, and am I completely clueless? Any help would be really REALLY good. ------------------ Tony
Mine is a wierd problem... every once in a while the online.cgi resets itself...
I was watching it today, and all of a sudden this date comes up... December 31 1969... no guests or ip's beside it, and then bam... the max number restarts.... And I used this hack exclusivly on 5.45a
any ideas why this is happening?
Quick question:
Where would I put the code to show a guest "Registering for the Forum" in Ultimate.cgi?
Thanks in advance!
Update alert: Both the install instructions and the online.cgi script have been updated. To the instructions I added a small section on how to get the system to log WHICH topic people are reading. All it requires is that your thread files are parsing SSI calls (it's left up to you to see that they are). One line of code (the SSI call) gets added to "ubb_library2.pl".
Then just download the new version of "online.cgi" and you are in business. I've got it working on my site now!
still can't get it work... get a "500 intenal server error" after click on the "Currently Browsing the Boards" link... ------------------ Squall14
Dave Downin - Thank you so much for adding this. Where would I go about making my server setup for SSI? My server is right next to me so I can do it all my self, running win2k IIS 5.0. I have a feeling it is already going, but could you point me somewhere. As for now, I am going to try it anyway.
joor - I can't really tell you how to set your server up... I'm only familiar with Apache under UNIX.
There is a problem with this new addition though... it doesn't work quite right. No matter what it logs you as a guest when you are reading a topic. I need to figure a way around this. Apparently when calling the script by SSI the script doesn't have access to the cookies. If anyone else knows a way around this I'd love to hear it.
Dave,
Would you mind posting the links to the Instructions again? I have already read through this entire board once to get it working to begin with (and it rocks by the way!), and it would be appreciated if you could ease our pain and not make us re-read all these posts for the URL. Thx bunches
Works great, but now either the number of users online nor their usernames appear on the main-screen. i installed another 'whos online'-hack before, maybe there are still any errors in the script? online.cgi works fine! great hack! thanks, chris
In this particular version, on the front page (Ultimate.cgi), the number of users should appear, but the names do not. The names appear on the online.cgi file. An example of this is here and on my site. ------------------ Allen - http://www.stand318.com
I'm sorry, the number of users don't appear on the frontpage. maybe someone would like to have a short look and explain me the error? Here's my script in ultimate.cgi: ( http://elektrophunk.com/userbin/Ultimate.Cgi)
sub ForumTableTop1 {
if ($BypassCookie eq "true") { $LastLoginTime = ""; }
if ($category ne "") { $CategoryLine = qq(Alle Kategorien ); $CategoryName = &GetCatName($category); $ForumHeader = "Kategorie: $CategoryName"; $LastLoginTime = $MemberLine; } else { $ForumHeader = "Forum"; $CategoryLine = $MemberLine; }
$onlinelink = qq( | OnLineCheck ($totalcount)
$OnlineUserMsg | | );
print<
Alle Beiträge von heute
|
would be great if someone could help me finishing this GREAT hack ..
chris
great
I got the hack to work ... (YaY) ... but now it makes it looks like everything is new or has new posts.
Has anyone figured out how to fix this?Can someone please
email me if they know?
Have you re-installed the hack?
Yes, i did re-install it, maybe there's someone who might fix the prob having a look at my server..? Would be fantastic!
chris
All i get is a blank screen
5.45b
help anyone?
All I get is a "blank" page. Nothing comes up man I wish things work out in the first place. I use version 5.42
In the postings.cgi I dont have
exit(0); # comply with SafePerl
it shows only exit;
------------------
What ohter hacks are on your board?
And do you have a URL to your board?
------------------
Moderator of:
Hacked UBB Showcase Chit Chat
Works Perfectly for 5.45c! I was wondering, is there a way to make it so it tells you all the members that are on the board? I saw this board, and it showed the # of members and who they were aswell as guests...
------------------
Help Please...
Currently, it appears to be working, but I am unable to access online.cgi to edit my prefs, it says 500 port error when I try to.
Was I meant to have an online.cgi file before installing? Because when I download the file all it says inside is:
962584261|^|6
962583889|^|Ade Maritz|^|****IP*****|^|
Open Wheel962584008|^|guest|^|****IP*****|^|
General Discussion962584034|^|guest|^|****IP*****|^|
General Discussion962584165|^|Tim Wheatley|^|****IP*****|^|
General Sim Talk962584228|^|guest|^|****IP*****|^|
Main Page962584326|^|guest|^|****IP*****|^|
http://legends.sports-gaming.com
Got it, mailed Dave too to tell him what I had trouble with.
------------------
http://legends.sports-gaming.com
What page is blank? Ultimate.cgi? or online.cgi?
------------------
Allen
-
http://www.stand318.com
Its Ultimate.cgi
------------------
Can you post here just the snippet of code affected, the stuff you added to ultimate.cgi plus one line above it and below it?
------------------
Allen
-
http://www.stand318.com
Hoping someone can help with this mess.
I installed the Who's Online Hack. The hack worked fine, but the threads would not update.
SO I redid it and sent it back up. ASCII and CHMOD, now the threads update but the post Rpely and New Topic are coming up blank.
I tried to upload the original copies, without the hack, and I am still having the same problem. Can someone please help with this??
www.truckinlife.com/cgi-bin/ubb/Utimate.cgi My guess is the problem is in postings.cgi.
Thanks! Version 5.45c
------------------
Getting 404's trying to access your site...
------------------
Allen
-
http://www.stand318.com
if you got a blank page, you probably forgot to add the required =
require "ubb_library.pl"
btw, great hack!
------------------
"I hear no sound, I inhale myself, I inhale the urge to kill, I feel pain, but it ain't there"
Ok, I know you will hate me, but over the last week I tried to install this hack on a ubb 5.47 with no luck, obviously. And now I need the help of those perl/ubb guru's in here to walk me trough this.
tia Hanta
im on 5.47 and i got it goin w/o a hitch at all. easiest hack yet...
I installed it on my UBB 5.47, but I have no online.cgi anyone knows where I can get it?
Thanx.
Email me the answer! Thanx Again
I had problems with this hack also on 5.47. It's fine now. If you're using CuteFTP to upload your files, it automatically uploads *.cfg files in BINARY, to make sure you change it to ASCII. That may be your problem.
------------------
KolaFor everything else, there's Mastercard.. Action Replay Headquarters
have somebody a description for the final version ??
Hello.
This script works excellent on my 5.47a but with a problem.
Non-english characters in names don't work. It shows html encode code (like %20) instead of the letter. Is there a workaround for this?
Dave, are you out there?
I installed this on a clean copy of 5.47 and am getting two problems.
1) It whacked about 1000 members out of my membertotal.cgi.
2) The Record on online.cgi does not stay fixed. It will fluctuate up and down and has even been below the Current number.
Any thoughts? The board is
VWVortex and I would really appreciate the assistance...
------------------
~Rich
Forgot to mention: It is not updating the membertotal.cgi file any longer. The number is fixed...
------------------
~Rich
Question:
I've been using the old version that showed Guests as IP numbers.
I'd like to run the new one that shows the Guests as "Guest #X" and still run the old one offline so moderators and admins can keep tabs on disruptors.
Possible?
If so, how do I do it?
Thanks in advance!
Okay, I was able to fix the membertotal issue and it is now operating correctly again.
Unfortunately, the problem with the Record count is not sticking and still plaguing me. Could it be a cookie issue? A file permissions error?
Aaargh!
------------------
~Rich
NBAustin, the latest version shows "Guest #" or UserName, and has a control panel feature to select who can see IP/hostname info: None, Admin, Admin & Mod, or All.
gevuvor, I think it's a bug, I have same problem, very unpredictable.
I've seen the same problem on my boards too...
------------------
Thanks Thermit.
Got it installed, runs fine, but the page doesn't auto reload.
What do I need to do?
Not sure.
If you have the CP controls try reseting the refresh rate, if done in code make sure your refresh_time variable is set to something like 60.
Does anyone know where to find THIS hack:
http://sternfannetwork.com/cgi-bin/ubbcgi/online.cgi It is the "Who's online" hack combined with the "hear me chat" hack. It works perfectly, but I can not find it anywhere.
All the Who's online hacks I see do NOT include the chat option!
Anyone?
Hi CT. I also think that looks cool, but I have no idea.
You can find 30 chat-clients here, while waiting for somebody else who know where hearme.cgi can be found
Also alot of more cgi-stuff on that site.
http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Chat/
Well here it is. Found it in the UBBHackers database.
http://www.ubbhackers.com/uploads/hacks/Chat.zip ------------------
The Fusion of Goku & Trunks...GoTorankusuKu
No GoTorankusuKu,
I don't believe that's the same hack as I mentioned earlier. Did you visit:
http://sternfannetwork.com/cgi-bin/ubbcgi/online.cgi to see what hack i ment?
http://www.action3d.co.uk/cgi-bin/bs_ubb/Ultimate.cgi Version 5.46, ive managed to get everything working in harmony except people can only see themselves on the list and noone else, just checked all the code and I cant see any obvious problems, but you know how these things are
Gah, just realised this second what the problem is... my web host has just introduced a proxy server that gives everyone accessing the site the same IP, so each consequent connection overwrites the last. hmmm, ill try to fix it myself anyway...
how can i view which topic XX view @ the moment ???
------------------
Visit the best board, NOW!!
Follow the instructions at the bottom of the installation page...
------------------
Allen
-
http://www.stand318.com
when i click on a forum i got a blank page...
Ultimate.cgi online.cgi work great but i only see a white page when i click on a forum...
any idea?
------------------
TyRaN
This message has been edited by TyRaN on December 21, 2000 at 12:51 PM
i´ve installed the ssi tags, but @ the online.cgi the topics are not show up (i´ve made an pdate of topics)
------------------
Visit the best board, NOW!!
TyRaN, that's my problem as well. I just can't figure it out. Everything else works fine, but it doesn't do you any good to know who's online if they can't post anywhere
Does anyone know how to fix this?
I got the STICKY problem.
http://www.mydivx.com/cgi-bin/Ultimate.cgi Basically it is holding the same 25 Who's Online users on browsing the boards. I have tried re-setting the boards, delete cookies, changing every W.O. option. All to no avail. I am able to change the detail of the listed Who's Online users but that's it.
The Ultimate.cgi remains list "25 Users Browsing the boards"
Anyone have a patch or leads me in the direction I should be looking for?
Thanx,
BB
------------------
The MyDivX ;-) Forums
http://www.mydivx.com/cgi-bin/Ultimate.cgi
OK... Figured it out. I had corruption in the online.cfg and the online.cgi in the members directory. I just deleted them and all is well.
BB
------------------
The MyDivX ;-) Forums
http://www.mydivx.com/cgi-bin/Ultimate.cgi
nobody can help me?
Ultimate.cgi works fine...
online.cgi too...
but when i click on a forum (forumdisplay?action...), it does'nt work...
i have a couple of hack installed:
memberlist, carnell, multipost, totalpost, lastpost by, last reply in forumdisplay, costum layout, prev_next_bar_546, prev_next_bar_546_forumdisplay_addon, logon 1.2 by Y2BNE1
i think it's all...
i use ubb 5.45c
thx for your help... if you can...
------------------
TyRaN
Just one question.....is it safe to install this hack yet, or are there still things that need to be ironed out?
It works on most every site and installs without problems most of the time... tho I admit I have installed it on a site just recently where it doesn't seem to work.
Tyran, your problem is most likely in your "last post by in forumdisplay" or the "prev/next bar" in forumdisplay. You probably have some table problems preventing it from displaying...
------------------
Allen
-
http://www.stand318.com
In my case I really don't think it has anything to do with misplaced table tags. I believe this because when I view the source for the "empty page" that keeps coming up, I just get:
And nothing else. Even with table tag errors, you usually get HTML source. That's why I'm guessing that something seems to be getting caught up in a way that it shouldn't be. And unfortunately, it probably has something to do with other hacks that are already in place.
I don't know what else it could be. But if you or anyone is willing to look at my docs, please
let me know .
about that whos online it works fine it just doesn't show the little icons on people replys or anything that says if there online/offline
well on the main page it shows users online and all but on any post by any user it doesn't show the icons if there online or offline any ideas?
The online/offline is a seperate add-on. That's the UBB IM's
------------------
ok all is working good but one thing.
at the bottom where it shows:
Currently Browsing the Boards (2)
2 guests <==- it only shows guest never users. even when there logged in if im logged in then it shows me as guest right there but when i go into the online.cgi and see whos on it shows my nick. but everyone else still shows them as guest any ideas?
Damn I installed this hack months ago and I have never had a problem with it
Thanks
Dave Downin
------------------
I Disappear ?
http://www.Metallifukinca.com
WonderZone: You must setup Who's Online in the CP first before you can see the users.
------------------
heh
i know i already done that
see this is what i just saw right now
Currently Browsing the Boards (2)
2 guests
WonderZone Viewing: Who's Online 12:23 AM
Guest #1 chat 12:19 AM
see when i go into the whos online it shows my name but not on the main page people told me that it does the samething for them when thay go in there it shows there username but shows all of us as guest.
im using
Ultimate Bulletin Board 5.46a
with the latest whos online mod.
Go in your Members directory and delete online.cgi
This will regenerate a new online list if that helps. Never had this problem so can't really help you much.
------------------
Does anybody knows, where i can find a fix for this online Hack / Memberlist 2.4 to work together! I'm getting mad....couldn't find the mistake
But after all, it is a great Hack, good job Dave
------------------
Matze
http://www.stock-channel.net http://www.abt-edv.com
what doesn't work?
------------------
TyRaN
In the Memberlist 2.4 i can optionally show, who is online with a small gif, and this will not be shown when i am inside an the online Hack recognizes me correct!
Online Hack last Versin Memberlist 2.4 are my used Hacks!
------------------
Matze
http://www.stock-channel.net http://www.abt-edv.com
After wrting that, i was direkly redirectet to ubbhackers.com in the who is online Thread there? Did anyboby got the same feature
?
------------------
Matze
http://www.stock-channel.net http://www.abt-edv.com
I found that more UserNames were captured if I changed the WriteUserSession routine in the ubb_library.pl to check for UserNamePrivate as well (see below) - this won't apply if you are not using private forums of course.
Who is maintaining this hack? Because many of the instructions are out of date when they recommend "fixing" UBB cookie routines that have been fixed by InfoPop long ago.
works nicely on 5.47d
------------------
ChArLiEaLpHa
slacker type bloke
charlieFM
i dont know if its whos online or what. but some people tell me they get a white page for ultimate.cgi. and sometimes they wont let them post replys.
i cannot figure this out. Please someone help
------------------
ok here is my problem i have 5.47d
when you go to Ultimat.cgi it shows howmany people are at my board but once you try to set it up in the cp/and or go to online.cgi i get a 500 error
now i noticed that the hack askes to find this in ubb_library.pl
but the only the code is this
now could that be messing it up
because on the previus version i had worked fine and that was 5.47c
Please i am asking for some help
------------------
| My Home Page | My Ubb |
Ok I'm stumped....
I have installed this hack on 5.47b
And whenever I try to load my Ultimate.cgi i get a 500IS error..
I have checked, doublchecked, and triplechecked the actual hack code that i pasted, and the permission of 755. Any thoughts?
Thanks
Jason
------------------
www.crownvic.net
Ive found that you need to add memberlist to the members directory
if your suposed to do this can somone put that information in the txt file
------------------
| My Home Page | My Ubb |
when i reply it sends me to ubb code hacking and my reply never goes thruany way i found you need to upload online.cgi to the members dir also
------------------
| My Home Page | My Ubb |
Another bug - if the same user comes to the site via different proxy servers with different IP addresses - he is recorded as separate users.
The fact is some ISPs use load balancing proxies so the same user might arrive at the UBB site with different IP addresses from one minute to the next.
The hack should (optionally) only list users based on unique Usernames and not unique IP addresses.
i've installed the hack but i cant see it in mine ultimate.cgi ??
Does anyone have a clue what mine problem could be?
This message has been edited by Skempi on January 07, 2001 at 07:32 AM
euhm allready fixed it thx anyway
Arghl it seems like spam but when i thought i fixed it, i dind't
, i now can see the who's online in Ultimate.cgi, and he says that i am online but when more people come online and i refresh i cant see the others..
>> the person who visits the site can only see himselves .. <<
Any suggestions / answers for this one ?
Has anyone got the fix for the resetting Record Book?
------------------
Great hack works good so far. Only one question... It shows view which forum and posting... But I was wondering what code I would need to enter and where, to show if a member was editing a post or just reading/viewing a paticular post. As opposed to actually replying to it.
If someone can show be the code to put and in which cgi.files. Obviously edit.cgi is one of them, but whats the code and where??
Also any possibility of making it log people in their PM inbox or out box???
Thanks!
You need to do the extra steps in the installation where it makes a SSI call in ubb_library2.pl
------------------
Ok, I have UBB-PM installed and I want to have the "Online Users" listed on my Ultimate.cgi page after the "Private Messages"
Just like it is on the ultimate.cgi page here?
Thanks......
In Ultimate.cgi
Find:
Add under that:
------------------
This addon add who online in to forumdisplay look nice
and it very eazy should work whit all ubb
Look for: or add any were you want this is were i have it
------------
--------------
Right after it, add:
----------------------------------
This code is for summary message TO list the users look down more
----------------------------------
------------------
This code is for list the users use this if you
want to list the users summary message is the top code
------------------
----------------
DONE UPLOAD INJOY you must have
Who's Online by Dave Downin. installed for this to work
------------------
Would someone be able to post a link to online.cgi. The link to the instructions and the cgi file at arlo.net arnt working.
I installed the hack. The only problem I am having is that I am showing up as offline.
I also would like to know how I can show who's online like shown on this site.
I would go through each post made in this thread...but after page 5, I have managed to get a headache.
Hope someone wouldn't mind helping me?
Thanks,
Iliana
well, my main prob is that i get a blank screen!!
what causes this?
and where do i find an "config.cfg" file?
i don't have it on my server?!?!?
I'm trying to get the the who's online to track which thread people are reading....in the direction it says to enter this code after the $Header2 in ubb_library2.pl:
But it keeps on giving this error:
[an error occured processing this directive]
I know the above relative path is right but can't seem to understand why it keeps on giving that error.
This message has been edited by theCrusader on January 20, 2001 at 02:28 AM
Your SSI is not being parsed. Try renaming the file in which the call is made to .shtml. If this doesn't work, your ISP probably does not support SSI.
*sigh*
how many times do i have to say this!
<--#exec --> tags CANNOT PARSE QUERY STRINGS!!!!
some1 change the instructions in whos online docs.
To parse query strings u must use
<--#include virtual="cgi-bin/online.cgi?forum=$Forum&topic=$TopicSubject&link=$NonCGIURL/$ExactPath/HTML/$ThreadNumber.html"-->
In my experience it is NOT necessary to modify either the UBB file locking or the UBB cookie subroutines to install this hack if you are using a recent UBB release (eg 5.47b or above).
These UBB routines already have the fixes included (which is why the UBB code does not match the instructions in the hack). They include the same fix using different code, so to replace them is to regress the InfoPop code rewrite. No point in doing that.
Can someone update the hack documentation?
who's online works in ubb 5.47d?
This message has been edited by Fbnet on January 25, 2001 at 07:47 PM
GoTorankusuKu, I struggled with the same thing, the record not being kept but being over written. I fixed it quite by accident but what I can figure, it has to do with changing the online.cgi file
in your Members directory to 777. That fixed mine up.
Now, a question for you...or any other brave soul. I just installed the latest versions of PM, Who's Online, and IM to my 5.47C board. After some issues, I got it all working...
except when viewing with Netscape (them bastages!
) Explorer it's fine...but with Netscape 4.7, all the "online" icons for the whole thread end up in the topic starters post?!? In other words, everything appears normal, except the first post in that thread will have a whole string of online icons! And the IM link attached to those icons won't work, they are just icons.
In Explorer, it's 100%. Any suggestions?
The board is at
http://www.stripersonline.com/cgi-bin/ubb_547C/Ultimate.cgi Your guidance is much appreciated
TimS
yeah, i have it working on ...
mine
what would happen if $TopicSubject contained quotes in it. looks like it would choke. hang on ... it does choke.
any way around this? anyone, anyone?
Is there a new script for version 6 beta 8 ?
Please contact me !!
Wrong forum, you should ask in the UBB6 categories.
Hey i have a quick question actually 2 questions....
1. i had this mod workin fine on my old server.... then once i switched servers.... the hack only works occasionaly.... 1/10 times i ttry....
i get this error
"Web Site Not Responding
504 Connection Timed Out "
Any ideas to help?
2. If you cant help me with that question can u please give me the code that will actually list the members who are browsing on Ultimate.cgi...under the link for online.cgi?
thanx
Hey, I hope you guys can help me out. I have done everything that I can, and now I'm asking for help. I installed the Who's online hack and all the board will show is "no members, x amount of guests." It gets the number of guests right but I cannot get it to list the members. I have gone through the steps many times and all seems right. I'm thinking that it must be a cookie problem because if I go in and view the online.cgi file in the members directory it lists my ip, but it is showing guest.
I am using 5.47d. I have installed Memberslist hack also, but when I click on memberlist I always get a "sorry but only registered members can view this list." I am not too worried about that, but I thought it may be related. Can you guys help me out with the Who's online hack? Thanks!!!
Hey i jsut installed the hack and it werks fine EXCEPT it only lists me in the who's online, i looked at the online cgi in the members folder and it seems like its just deleting the onld one and re-writing it... and clue why it would do this?
http://www.digital-xtc.com/cgi-bin/Ultimate.cgi
i have tried installing this hack numerous times, with each time im running into a problem. a big one. i triple check everything, then when i try to load my board, a blank page comes up. when i try to get into Who;s Online settings in the CP, it gives me an internal server error. i have AOL instant messenger. could someone please IM me with some assistance? im fluent with computers so you'll have no problems communicating to me. thanks alot.
AIM: yetdog11
I suppose I should post it here:
I installed the hack, but for some reason it won't load from the main page. It works fine in the CP but when I click on the link to see the whole list of browsing members it can't load it. I triple checked the links and it seems correct. It just refuses to work for some reason.
The link is
http://ssjpalace.netfirms.com/cgi-bin/Ultimate.cgi
SSJPrince, I looked at your site, and it worked fine for me....
It seems to work now (but it's really slow), it wouldn't load before.
Thanks for checking it though.
i have the same problem as Matt Y, when i do everything correct and try to go to my page it doesnt show up it is just a blank page. i can set up my whos online settings but it wont let my go to my UBB afterwards. i am using UBB v5.44 and my AIM name is: ShortIdiot911
Firstly, thanks for the great hack Dave, it's exactly what I've been looking for. I am having a small problem though, unfortunately.
Basically, all I am ever getting is "Currently browsing the boards, 1 guest"
In other words, no matter how many guests and members are browsing the boards, it is only ever displaying 1 guest as being there.
I followed the installation instructions to the letter, although there is one I haven't been able to implement, which is probably causing my problem. In postings.cgi I am meant to replace the line
$ExtraInfo = "";
with
$ExtraInfo = "/";
Unfortunately, I can't find this string anywhere in postings.cgi Could this be causing my problems? If so, is there a workaround for this? I am using UBB 5.47b by the way.
Thanks again for a great hack.
Okay, just had a look at online.cgi in the Members directory, and I can why I'm only getting shown 1 member or guest. The IP is listing as 127.0.0.1 so presumably my hosts have a proxy or something. Because the IP is the same for everyone, each entry is overwriting the others instead of being appended.
So, all I have to do now, I think, is take the IP thing out of Daves code. I'm fairly new to this CGI stuff, but I will have a go at it. If anyone could point me in the right direction, however, I'd be very grateful.
I'll post the solution if I get it figured out!
-------------------------
Okay, I just did! I took out the line in ubb_library.pl (in your cgi-bin) which says,,,
@online = grep{!/|^|$ENV{'REMOTE_ADDR'}|^|/} @online;
And that seems to have fixed it, as it's not writing the IP address anymore, so the entried aren't getting overwritten.
Hope this helps out anyone with the same problem. Thank you for such a brilliant, useful and easy to implement hack, Dave.
[ April 19, 2001 12:50 PM: Message edited by: Neil ]
Are you sure? I've been having the same problem for a long time.
Neil I had the same IP problem.
I did as you suggested and removed:
@online = grep{!/|^|$ENV{'REMOTE_ADDR'}|^|/} @online;
from ubb_library.pl but when ever the Who's online page refreshes the counters keep incrementing although no one else is on the boards. I presume it keeps counting the IP again and again. Are you aware of this and if so did you manage to fix it?
[ 12-09-2001 11:57 AM: Message edited by: Pagemakers ]
How is it possible to add the who's online table at the top of the board.
I have set the Who's Online page to refresh every 30 seconds. It refreshes only 3 or 4 times then stops. Why?
FYI, 127.0.0.1 if your internal loopback IP, for example, if you ran a web server, you could type in
http://127.0.0.1 and it would tell your browser to look for a web server on your machine.
Simply all that is doing is searching for the remote host address and pushing it into an array. So I doubt if that was the main cause of your problem, even though it may have seemed to have fixed it.
What web host do you run your board on?
If its a f2s host then forget because this hack will never work with that host.
Cheers
We are running on a standard Linux box.
If I remove the line as Neil suggests it does not fix the problem very well and each time the who's online page refreshes it counts everybody again!
We are running a website for company employees. Many of them connect from the same building and thus use the same IP address. We may have 100 of them online but Who's online shows them as a single guest.
Any ideas?
Well thats where your problem lies, if you all access the board via a proxy of sorts and use the same IP address then the who's online will not work. From memory it uses unique IP's/Host Names to increment the online counter. Hence your problem. As for a fix, well Im not to sure atm sorry, it would take some looking into.
With the v6.0 version there is a choice of using different logging methods which is good.
Thank's BassTeQ. It's a pity there is not a work round.
Lord Dexter - I hear what you say about version 6, but for OUR pruposes I think version 5 is a better board.
Is it possible to change the total visitor count of Who's online from "Current & Record Book", to "Current and most board visitors in a day"?
Quite easily, just find the string in the code, search for "record book" or something, and change it as you requite. Note anything that starts with a $ means its a variable.
Yes, but what do I need to add to display the most visits to the board on any single day?
Ahh so you want to count a total for each day.
Hmmmm idea is simple, but I dont have time to code an example for you sorry.
In simple terms what you need to do it open a file, read in a number and + 1 to it with each visitor you get. At the end of the day you could reset that file to 0. But before resetting in you would need to check it against the 'best days total' and if its bigger overwrite it, otherwise leave it. Id use a pipe dimilted file for an example.
current ppl online | most visitors on any given day
might be
5|34
Sorry I cant be of much more help, but if you are semi familiar with perl you'll be fine. You only need to do basic file open/read functions, simple arithmatic, and number comparisons. Give it a go and if you get stuck I may be able to lend you a hand.
Cheers
quote:
Originally posted by Pagemakers:
Is it possible to change the total visitor count of Who's online from "Current & Record Book", to "Current and most board visitors in a day"?
Look in online.cgi and search for "Record Book" and you'll find it where you can replace it with that you want.
He want a little more functionality then that Lord, thats what I initially thought. But he would like to add the functionality to add up how many people hit the board a day and display the 'Best Day' total.
Sorry about that BassTeQ, I was dumb enough not to read the whole thread. *Bangs head*
Thanks guys - I thought someone may have thought of this already.
quote:
Originally posted by Lord Dexter:
Sorry about that BassTeQ, I was dumb enough not to read the whole thread. *Bangs head*
Nps, I made the same mistake at first too
quote:
Originally posted by Pagemakers:
Thanks guys - I thought someone may have thought of this already
So are you going to give this a go yourself?
We are here to help if you get stuck!
Yeah I can help too. I'm having a look at the code in online.cgi as we speak.
How are you getting on Dexter?
What you could do is Update your Threads and look at the Record Book. It usually resets after you do that so test for me please.
My record book is not reset when I update threads
Has it ever resetted for you before?
# Note this will not log people in PRIVATE forums... if you want it to do that,
# comment out the line with the "if" statement and the line with the "}"
$online_url = "$CGIURL/forumdisplay.cgi?action=topics&forum=$ForumCoded&number=$number&DaysPrune=$DaysPrune&LastLogin=$LastLogin&site=$SiteCoded";
if ($LWA ne "private") {
&WriteUserSession("
$Forum");
}
I'm lost, how do you comment it out ?
I thought the WOL did that and just had "Private topic" in Private Forum, or something like that I can't remember.
No it hasn't resetted before Dexter
I wanna know why the record (max number of users) does not stay forever until it hasn't been crossed? The thing keeps on resetting on its own.
Yeah thats a bug. The record book was still in beta when this hack was released.
Dexter, did you or anyone else manage to add a "guests visited today" total to the who's online page?
No I couldn't figure it out...
Pagemakers, have yo uput together any code yet? Or aren't you going to give it a go?
My guess is you'll have to Modify the record book so it resets daily.