php forum
php mysql forum
php mysql smarty
 
Page 3 of 18 < 1 2 3 4 5 ... 17 18 >
Topic Options
#40927 - 03/07/00 06:52 PM Re: Who's Currently Online
Slurpee Offline
Member

Registered: 01/11/00
Posts: 322
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
_________________________
Webmaster Van Halen Links.com
http://www.vhlinks.com
UBB Support Moderator
http://community.infopop.net/

Top
#40928 - 03/07/00 08:26 PM Re: Who's Currently Online
NBAustin Offline
Member

Registered: 01/12/00
Posts: 565
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!

Top
#40929 - 03/07/00 08:44 PM Re: Who's Currently Online
Dave Downin Offline
Junior Member

Registered: 01/11/00
Posts: 28
Loc: Laurel, MD, USA
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.

Top
#40930 - 03/07/00 08:51 PM Re: Who's Currently Online
NBAustin Offline
Member

Registered: 01/12/00
Posts: 565
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!)

Top
#40931 - 03/07/00 09:12 PM Re: Who's Currently Online
Dave Downin Offline
Junior Member

Registered: 01/11/00
Posts: 28
Loc: Laurel, MD, USA
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:

Code:
code:


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.

Top
#40932 - 03/07/00 09:58 PM Re: Who's Currently Online
NBAustin Offline
Member

Registered: 01/12/00
Posts: 565
Thanks Dave,

But, I'm not sure where all this goes. (I'm not a programmer)

Could you guide me thru this please?

Top
#40933 - 03/08/00 05:03 AM Re: Who's Currently Online
RangerRob Offline
Member

Registered: 01/26/00
Posts: 40
Loc: England.
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

Top
#40934 - 03/08/00 10:00 AM Re: Who's Currently Online
NBAustin Offline
Member

Registered: 01/12/00
Posts: 565
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!

Top
#40935 - 03/09/00 02:08 AM Re: Who's Currently Online
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
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

Top
#40936 - 03/10/00 02:53 AM Re: Who's Currently Online
NBAustin Offline
Member

Registered: 01/12/00
Posts: 565
hello?

Anyone have answers?

Ps...is there a cookie problem on this site?

Top
#40937 - 03/10/00 03:14 AM Re: Who's Currently Online
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
Yes, there seems to be.

Just a thought
_________________________
http://www.iamcal.com

Top
#40938 - 03/10/00 08:33 PM Re: Who's Currently Online
mIkE 2oo0 Offline
Junior Member

Registered: 03/10/00
Posts: 2
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

Top
#40939 - 03/10/00 09:38 PM Re: Who's Currently Online
Dave Downin Offline
Junior Member

Registered: 01/11/00
Posts: 28
Loc: Laurel, MD, USA
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).

Top
#40940 - 03/11/00 11:57 AM Re: Who's Currently Online
NBAustin Offline
Member

Registered: 01/12/00
Posts: 565
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?

Top
#40941 - 03/11/00 12:04 PM Re: Who's Currently Online
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
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
_________________________
http://www.iamcal.com

Top
#40942 - 03/11/00 12:06 PM Re: Who's Currently Online
Dave Downin Offline
Junior Member

Registered: 01/11/00
Posts: 28
Loc: Laurel, MD, USA
Yup, that's the problem... find:

($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($seed);

adn right after it add:

$mon++;

Fixed!

Top
#40943 - 03/11/00 12:44 PM Re: Who's Currently Online
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
I'd just like to congratulate myself on that superb bug-fix

Just a thought
_________________________
http://www.iamcal.com

Top
#40944 - 03/11/00 08:42 PM Re: Who's Currently Online
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
How about making each username a link to his profile? Could be kind of handy to some people.
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#40945 - 03/12/00 07:51 AM Re: Who's Currently Online
cal Offline
Programmer

Registered: 02/19/99
Posts: 3433
Loc: London, UK | Genius: 100%
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
_________________________
http://www.iamcal.com

Top
#40946 - 03/12/00 11:33 AM Re: Who's Currently Online
Music Global Network Offline
Member

Registered: 01/10/00
Posts: 34
Loc: Columbia, MD USA
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
_________________________
Michael Butterfield
Music Global Network
http://musicglobalnetwork.com

Top
Page 3 of 18 < 1 2 3 4 5 ... 17 18 >


Who's Online
0 registered (), 24 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks