Log in

View Full Version : Need some volunteers for a Whos Online Beta


Mutt
07-04-2001, 02:52 PM
Beta test of edited who's online VB addon
Made By Mutt
7-3-01

VB 2.0.1

Original Who's Online by Kevin (kevin@tubescan.com)

You need to have kevins Who's Online installed and working.
Then save your original online templates and online.php script
upload the new online.php script and edit the 2 templates.
You should be done. This is only a beta test and not a complete addon.

I'm making this available now so you guys with busy sites can give it a try, let me know what else it needs, and hopefully I'll be able to make it better

I'm not looking to give tech support to all of you over install problems. If you have install problems, make a post at the VB forum.

If you find legitimate holes in the script or think of some nice features
email me at momomutt@home.com

So anyway, this is a Beta so the kinds of holes I'm looking for are
- If you find any privacy/secrurity issues
- If a thread title or forum title isn't displayed correctly
- If some part of the site isn't showing up
- If any Admin sections show up
- If any links show up that you feel shouldn't
- If you get an "unknown" Location Description
- If the session # shows up in an url
I want you to send me the Location URL and Location Description that was listed on your Who's Online Page

It's named online.php3 but you can just change the extension to .php without any problems

Mutt
07-04-2001, 02:58 PM
I forgot to mention what was new

it's more like my original UBB who's online

No duplicate entries, only the newest usuable entry

added time

added PM for visible members that allow it

track guests, members, and invisible members (ghosts)

admins can see who ghosts are

handled location/description a little differntly so I can have a decription with no link (ex. reading private messages)

you shouldn't get any wierd urls or descriptions

I'll be breaking it into multiply pages later today for those of you with lots of visitors

dwh
07-10-2001, 12:45 AM
to whoever tries this hack, don't forget to change php3 to php in several places within the online.php file.

dwh
07-10-2001, 12:47 AM
works great so far btw. Although sometimes my own user doesn't show up.

chris frolic
07-10-2001, 06:47 AM
wicked! The original who's online never worked for me (kept getting parse errors on line 44, just like many other people did)

but this version works correctly! awesome work!

SFishy
07-10-2001, 04:21 PM
Mutt,

Excellent!

Of course, I have a few questions ;)

How are they sorted? Times are all over the place (in order... 11:57, 12:08, 11:51, 12:07, 11:54, etc.), and obviously not alphabetical by username. Alphabetical would be good along with seeing while being able to see their time.

Is there a way to lump all the guests together at the bottom (like the original hack)?

I notice some of the locations of guests say "unknown" -- how's that translate for us? Does it just mean you haven't figured out all the trackable areas (if that makes sense)?

For my own purposes I removed the PM column -- we have PMs turned off on our board. It would be GREAT to have "search for this users post" icon/link there instead. Or even the e-mail user icon/link.

Last but not least, my who's online is only available for admins, so is it okay that I changed the ['canview'] to ['cancontrolpanel'] in the permissions area? (I don't want to provide too much code here, if you want more details just lemme know)

Keep up the great work!

nuno
07-10-2001, 05:51 PM
great tx Mutt :)

rmusic
07-11-2001, 09:58 AM
ive tried acouple times and it dont work :(

rmusic
07-11-2001, 10:28 AM
BTW

My Site Forums : http://www.r-music.net/forums/

My Online Page : http://www.r-music.net/forums/online.php

webhost
07-11-2001, 01:00 PM
I have never installed this hack. What files and their location do I need for a new/clean installtion for vb 2.0.1?

Christian
07-11-2001, 03:26 PM
The hack works very good!

@webhost:

Download the original hack by tubedogg and install it!
Then replace the file and the templates with this version!
Works without any problems!
In the thread of the original hack I have also posted the lines where you have to replace the code in sessions.php from version 2.0.1. It's on page 5!

rmusic
07-11-2001, 07:45 PM
Originally posted by Christian
The hack works very good!


Works without any problems!





not for me it dont work at all it doesnt show anybody

Christian
07-11-2001, 08:12 PM
I just clicked your link and saw you and a guest (probably me)!
Seems to work! :)

rmusic
07-11-2001, 09:04 PM
must take awhile to filter through

because when i first put it in it dodnt show anyone was on

i had two of my friend sgo and see if it showed anything and they said no

but good im glad its working now

Mutt
07-11-2001, 09:07 PM
hey crew

what i've been working on

checking permissions to filter out ones you aren't supposed to see

breaking a big page into multiple pages

not showing pm column if pms are off

cfg options to turn on/off
- PM
- avatar
- profile icons

cfg option to pick php or php3

answering questions

they are ordered by ip. I'd perfer sorted by time, but the order is necessary to pick out the duplicates. changing the order would be possible but slow it down a little. I'd have to have it build the array then read the array to build the page instead of just building the page in one step. if it would have been ok to filter out the duplicates when sessions table is built, I could sort it any old way and still be fast.

filtering guests off to the bottom. yes it's do-able but why? I'll look at it and see how easy it would be.

you have gotten an unknown location description? please let me know the url when you get these. email them to me. it has nothing to do with them being guests, it means they are somewhere that I'm not recognizing. if you let me know the url, I can add that description.

I'll add a cfg option to have the online page viewable by admins

if you don't show up, hit refresh. it's wierd but it's like it reads sessions table then writes to it. this means that when you go to the online page, it's one behind and sees you at your last location.

I'll try and work on it tonight and upload the newest version.

SFishy
07-11-2001, 11:15 PM
Hey Mutt,

Thanks for answering some of my questions...

One thing I did... and I don't know if this is okay or not, but it seems to be working fine... I have ORDER BY username, session.lastactivity) now and that's putting them in alphabetical order. I like seeing the times, but alphabetical order makes more sense to me, just because if I'm looking for someone specific, it's easy to find. (update -- I've changed it back to host... I realized that once I sorted it by username, I was getting people showing up two and three times again... so for now it's back to sort by host)

Only my guests are getting "Unknown" and it links to my main forum page. On my server that can be either index.php or the root (fishyvb.something-fishy.org)

I'd like all the guests lumped together at the bottom because separating them would mean being able to turn them off in future versions of the hack (maybe?) -- so for example... options to "see guests, see ghosts, see registered users only" etc. In most cases I could care less where guests are -- it's rare that I even need that info. I'm sure there are others that don't really need or want the online list cluttered with guests either.

One last thing... and this is another question...
I noticed in the original hack locations were determined by (strstr(strstr($location,"action=faq")!==false) ... you are doing (strstr($location,"misc.php")) instead. Is there any problem with me switching some of them back to the old way ... the reason I ask is because I created a custom chat login page, and in doing some of that I added a #start chat# section to misc.php -- so if they are on misc.php it could either be in the faq or my chat login. (Go easy on me, I'm no coding wiz LOL) -- I tried doing the (strstr($location,"action=faq")!==false) and (strstr($location,"action=chat")!==false) in your online.php and it seems to be working fine... but I thought I'd run that by ya and make sure I'm not screwing with something I shouldn't be.

most important... functionality issue...
Last but not least -- and this was happening "right out of the box" before I did any of my own modifications... Sometimes I see the users location as just "posting :" -- without any forum name or link. It SEEMS to be when they are replying that this happens, and maybe editing. When I looked at your code it looks like you lumped these three together (new thread, new reply, editing) to appear as one location. I think it would be nice to see a difference between posting and replying (and even editing) -- in the original hack you could see "replying to thread..." Also, like I said, when they are replying I'm just getting "posting :" with no forum name or link.

You asked for feedback -- maybe I'm giving ya more than you wanted (hehehe) -- Believe me, I'm not UNHAPPY with what you've done at all, I think it's great -- but you asked for volunteers ;)

Thanks for all you've put into this so far... I know it can be time consuming to do all this!

ps. You asked for volunteers with busy boards... of course, "busy" is pretty subjective... but almost around the clock I have at least 100 registered users logged in -- highest it goes is about 200, lowest is about 75. Don't know if that qualifies, but I thought I'd let ya know -- and it's all very speedy :)

chris frolic
07-12-2001, 04:50 AM
Originally posted by SFishy
most important... functionality issue...
Last but not least -- and this was happening "right out of the box" before I did any of my own modifications... Sometimes I see the users location as just "posting :" -- without any forum name or link. It SEEMS to be when they are replying that this happens, and maybe editing. When I looked at your code it looks like you lumped these three together (new thread, new reply, editing) to appear as one location. I think it would be nice to see a difference between posting and replying (and even editing) -- in the original hack you could see "replying to thread..." Also, like I said, when they are replying I'm just getting "posting :" with no forum name or link.

I've been experiencing this as well.

The thing I love most about this hack is that I am also running vbPortal, so that means visitors to my site are tracked immediately from my home page since it's all intergrated with the board and since every part of my site is a PHP file that calls global.php I've added the neccessary code to who's online to tell me what web page they might be looking at at any given time. awesome :)

Mutt
07-12-2001, 09:55 PM
I think i've fixed the posting: ________ error. just bad coding. I threw i together quickly and honestly, I'm still trying to figure all this php mysql stuff out.

I also went threw and fixed other description errors, like an unknown on the homepage

added the ability to have the page only view able by admins

added a meta refresh

started working on breaking it up into pages

I think I got it checking permissions to see if you are allowed to view a forum before it shows it in who's online. should come up as "private forum" with no url

gave it a php / php3 cfg option. just set it and change the require global line and it should work for both php and php3

here's the updated file
since this is just an early beta, I didn't repackage it with directions. this is just the updated file so if you haven't installed the original beta, you'd better look at it first.

answering some questions

- (strstr($location,"misc.php")) should work fine
- I'll work on some guest/ghost options
- seperated posting/editing/and replying

RobAC
07-13-2001, 02:08 AM
Dude, AWESOME job!!!! I've installed it and have it up and running. Thanks! :) The only thing I do see are a lot of guests are listed as being "Unknown" for location?

Mutt
07-13-2001, 02:31 AM
the unknwon guests are people at your homepage. you are using vbportals so you'll have to modify it so it recognizes those sections outside of your forum.

RobAC
07-13-2001, 02:36 AM
Hi Mutt,

Actually, no, I'm not using vbortals. My homepage is setup too look similar to vbPortal with a couple of the same hacks installed, but that's it. It's still an html document.

-Rob

Dakota
07-13-2001, 07:45 AM
Ok, I am using vB2.0.1, and it already has Who's online installed on it. What is the Difference between Kevin's and the one that comes standard?

rmusic
07-13-2001, 08:49 AM
dakota the whos online hack adds the whos online page

(ie www.r-music.net/forums/online.php)

it shows were the users are on your forums

SFishy
07-13-2001, 02:23 PM
Okay... here's the only problem I found...

Your "replying : title" link wasn't accurant (the title displayed was right, but the link went to the forumID, not the threadID). There was a line that looked off so I changed... it seems to be fine after changing it...

$location="showthread.$PhpExt?threadid=$ForumID";
should be changed to:
$location="showthread.$PhpExt?threadid=$TheID[1]";
no?

The only other problem I saw was on myself... when I'm listing in the online list it never shows my location... it just always says "reading :" with an invalid link and no title. LOL minor problem I realize, since I always know where I AM, but just throught I'd let ya know.

I'd still love to see it sorted somehow other than by host -- I realize your reasons for doing it the way you did, it's just a little hard to find someone specific. I really liked alphabetical, but even by most recent activity would be good (like the UBB one -- which I used back before my jump to VB ;))

GREAT STUFF Mutt... as you can tell, this is a very handy hack to me, so I'm glad to be a thorn in your side about it :p

Any thoughts on having a link to "search for users posts" link/icon in the online list?

webhost
07-13-2001, 02:29 PM
Can you give me your url where I can look at this hack?

Thinking about installing it.

rmusic
07-13-2001, 02:38 PM
Originally posted by webhost
Can you give me your url where I can look at this hack?

Thinking about installing it.


www.r-music.net/forums/online.php

webhost
07-14-2001, 12:25 AM
Installed hack and also addon everything seems to be working ok except this. Can someone look at this and tell ME why I have dark blue colors in the last 2 columns?

http://forums.realwebhost.net/online.php?

rmusic
07-14-2001, 12:28 AM
did you

add both templates

that came with the adon

webhost
07-14-2001, 12:32 AM
yes followed directions to the t

Joey

rmusic
07-14-2001, 12:35 AM
hmm

well it looks like a col span error to me

i would just do it over

webhost
07-14-2001, 12:35 AM
this is the online_userbits
<tr align="center">
<td bgcolor="{firstaltcolor}" align="left"><normalfont>
$UserLine</normalfont></td>
<td bgcolor="{secondaltcolor}" align="left"><normalfont>
$WhereLine</normalfont></td>
<td bgcolor="{firstaltcolor}" align="center"><smallfont><font color='{timecolor}'>$posttime</font></td>
<td bgcolor="{secondaltcolor}" align="center">$PMLine</td>
</tr>

webhost
07-14-2001, 12:36 AM
i did

rmusic
07-14-2001, 12:39 AM
hmm

well i dont know looks like every things right

webhost
07-14-2001, 12:43 AM
here is my online template

{htmldoctype}
<html>
<head>
<!--
Who's Online
by Kevin (kevin@tubescan.com)
and Mutt
-->
<title>Online Users - $bbtitle</title>
$headinclude
</head>
<body>
$header

<!-- breadcrumb -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td width="100%">$navbar</td>
</tr>
</table>
<!-- /breadcrumb -->

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr align="center">
<td bgcolor="{tableheadbgcolor}" align="left" width="25%"><smallfont color="{tableheadtextcolor}"><b>User</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" align="left" width="55%"><smallfont color="{tableheadtextcolor}"><b>Location</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" align="center" width="10%"><smallfont color="{tableheadtextcolor}"><b>Time</b></smallfont></td>
<td bgcolor="{tableheadbgcolor}" align="center" width="10%"><smallfont color="{tableheadtextcolor}"><b>PM</b></smallfont></td>
</tr>
$onlinebits
</table>
</td></tr></table>

<!-- forum jump -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td nowrap><normalfont>$forumjump</normalfont></td>
<td width="100%" align="right" nowrap><b><smallfont>$timezone</smallfont></b></td>
</tr>
</table>
<!-- /forum jump -->

<br><br>


<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="50%" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{tableheadbgcolor}" align="center"><smallfont color="{tableheadtextcolor}"><b>Online Statistics</b></smallfont></td></tr>

<tr><td align="center" bgcolor="{firstaltcolor}"><b><smallfont>
Total Online : $totalonline<hr>
$numbervisible members<br>
$numberinvisible ghosts<br>
$numberguest guests
</smallfont></b></td></tr>
</table>
</td></tr></table>
<br><br>

$footer
</body>
</html>

webhost
07-14-2001, 01:32 AM
rmusic

Got it working still have a problem though. I have one unknown showing can not get rid of it. Check it out here

http://forums.realwebhost.net/online.php?

Mail site is http://forums.realwebhost.net go there and sign in with my guest account
username niceguy password hackman, and look at it also I found this posted by christian for vb2.0.1 I am running vb2.0.1 do I need to make these changes also.
Let me know when you go to board I want to see. Here is the code by christian that was posted on the orginial hack for this.

Here are the corrected lines for (unedited) sessions.php in vB 2.0.1:


##########################################

Around line 175, find


code:--------------------------------------------------------------------------------
$DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity".$styleupf.") VALUES ('".addslashes($session['sessionhash'])."','$bbuserinfo[userid]','".addslashes($session['host'])."','".addslashes($session['useragent'])."','".time()."'".$styleupv.")");
--------------------------------------------------------------------------------

and replace it with

code:--------------------------------------------------------------------------------
$DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity,lo cation".$styleupf.") VALUES ('".addslashes($session['sessionhash'])."','$bbuserinfo[userid]','".addslashes($session['host'])."','".addslashes($session['useragent'])."','".addslashes($scriptpath)."','".time()."'".$styleupv.")");
--------------------------------------------------------------------------------


Around line 209, find

code:--------------------------------------------------------------------------------
$DB_site->query("UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");
--------------------------------------------------------------------------------

and replace it with

code:--------------------------------------------------------------------------------
$DB_site->query("UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");
--------------------------------------------------------------------------------


Around line 211, find

code:--------------------------------------------------------------------------------
$shutdownqueries[]="UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'";
--------------------------------------------------------------------------------

and replace it with

code:--------------------------------------------------------------------------------
$shutdownqueries[]="UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'";
--------------------------------------------------------------------------------


Around line 276, find

code:--------------------------------------------------------------------------------
$DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity".$styleupf.") VALUES ('".addslashes($session['sessionhash'])."',0,'".addslashes($session['host'])."','".addslashes($session['useragent'])."','".time()."'".$styleupv.")");
--------------------------------------------------------------------------------

and replace it with

code:--------------------------------------------------------------------------------
$DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity,lo cation".$styleupf.") VALUES ('".addslashes($session['sessionhash'])."',0,'".addslashes($session['host'])."','".addslashes($session['useragent'])."','".time()."','".addslashes($scriptpath)."'".$styleupv.")");
--------------------------------------------------------------------------------


Around line 80, find

code:--------------------------------------------------------------------------------
$DB_site->query("UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($sessionhash)."'");
--------------------------------------------------------------------------------

and replace it with

code:--------------------------------------------------------------------------------
$DB_site->query("UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($sessionhash)."'");
--------------------------------------------------------------------------------


Around line 82, find

code:--------------------------------------------------------------------------------
$shutdownqueries[]="UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($sessionhash)."'";
--------------------------------------------------------------------------------

and replace it with

code:--------------------------------------------------------------------------------
$shutdownqueries[]="UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($sessionhash)."'";
--------------------------------------------------------------------------------


Around line 255, find

code:--------------------------------------------------------------------------------
$DB_site->query("UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");
--------------------------------------------------------------------------------

and replace it with

code:--------------------------------------------------------------------------------
$DB_site->query("UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");
--------------------------------------------------------------------------------


Around line 257, find

code:--------------------------------------------------------------------------------
$shutdownqueries[]="UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'";
--------------------------------------------------------------------------------

and replace it with

code:--------------------------------------------------------------------------------
$shutdownqueries[]="UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'";
--------------------------------------------------------------------------------


##########################################

webhost
07-14-2001, 02:28 AM
Got it working. it still seems to have problems with cookies though.

Sometimes I have to clear my temp files out on my computer for it show the right status. Say if I login with att home browser and mininize att home then open up IE5.5 it shows me twice once as a guest and once as a member because I logged in and the att browser.

Joey

rmusic
07-14-2001, 02:32 AM
browsers use there own cookie sytem

i have neoplanet and it runs off of IE but if i go to my friends site with ie a cookie is sent and im always loged in

i open neoplanit and go i have to log in and get a cookie for that

then i use netscape to do it again

so basiclty its just the way browsers work

Christian
07-14-2001, 03:22 PM
The corrected code replacement is only needed when you install Kevin's original hack the first time, means when you have to upload the edit sessions.php before you click the link in mysql.php!

webhost
07-14-2001, 03:31 PM
I just loaded kevin's orginial and the addon last night, it seems to be working ok now.

Joey

Christian
07-14-2001, 03:35 PM
Good, but the lines in the original instruction didn't fit, right?

webhost
07-14-2001, 03:48 PM
correct not at all they were off some of them by 20 or 30 line numbers.

Christian
07-14-2001, 04:43 PM
That's exactly what I have done, given the correct line numbers! ;)

MrLister
07-14-2001, 09:33 PM
how would you go about making other pages. so if i had a page called contacts.php and it was linked with vb through global.php, how could i make it say viewing: contacts and stuff likethat. so basicly define what a file is.

webhost
07-15-2001, 02:41 AM
Hack working great!!

Question; How hard would it be to add under the pm column for guest some kind of instant message for the guest's. Some kind of link that a member could click on and send the guest a message while they are browsing?

The other question I have is if a person has a chat room how hard would be to place a link on the online page to that chat room. Would it be as easy as adding the neccessary script to the online.template?

Dakota
07-15-2001, 06:49 AM
Thanks, but I have noticed afew bugs.

I haven't changed anything btw. Some members will show up 2-3 times. Also when someone is replying to a thread it just says "Replying:", and there are alot of unknowns.

Edit: I would also like to know if there is a way I could make it say Live chat or something like that when someone is using the chat room.

Ok well I found that alot of the unknowns are when people are looking at attachments.

Christian
07-15-2001, 12:34 PM
These people use a proxy server most time then!

Some ISPs configure their proxies really bad! Then a double entry comes!

Mutt
07-15-2001, 04:01 PM
If you'd like to add another script to be displayed properly just make sure that script requires global.php and then add another elsif to the online.php like this


} elseif (strstr($location,"attachment.php")) {
$locationtitle="Viewing an Attachment";
$location="";


attachment.php is the script you are looking for. can be a partial match. you can even just look for an pices of the url like "action=chat" or something.

$locationtitle is what it will say

$location is optional. if you don't put anything, it uses the url saved in the sessions table. in this example I blanked the url out so someone doesn't click right thru to the attachment.


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

I've added some more stuff like options to show profile icons or avatars
$PMLine $AvLine $EmailLine $IcqLine $AimLine $HomepageLine $YahooLine

while making it break up long lists into multiple pages, I've decided to have it build an array and then read it so I can resort the list however you want. I'll sort it by time but you'll be able to change it to whatever. when I get that next step done, I'll upload it again.

Dakota
07-15-2001, 10:24 PM
Thanks, its working great.

chris frolic
07-16-2001, 12:46 AM
Ok, I know this is WAAAY beyond the scope of this script but I was wondering if someone might be able to give me some advice.

I'm currently running Vbportal as my front page so it makes Who's Online even more useful since it will show where people are anywhere on my site, not just limited to my message board.

I also have my chatroom integrated with vB and Who's Online will show that person as in the chatroom when chat.php is being run.

Now, since it's already doing that it occured to me that it must be possible to add a feature to my front page stating:

Users in Chatroom: 3 or something as an alert for other users to join in.

I imagine I could somehow canabalize the Who's Online code and add it to my index.php for this purpose.

This is well beyond my grasp of PHP unfortunately, so would anyone have any suggestions as to where I could begin?

thanks.

Mutt
07-16-2001, 02:45 AM
i had this for my ubb who's online and it wouldn't be a big deal to do it here either. I would want this too. when I get a cleaner version ready, I'll give ya some directions. let me know what chat room you are using and what hack if any.

RobAC
07-16-2001, 02:48 AM
This would be AWESOME! I know that my members would definitely appreciate seeing who's in the chat room on my site.

webhost
07-16-2001, 03:17 AM
I added this hack tonight for a non vb news page.
http://161.58.84.213/forum/showthread.php?threadid=21875

My path to it is http://forums.realwebhost.net/news.php

I noticed that when someone is looking at this page on my board it shows them as in a unknown area. How would I make this page one of my locations in your hack if possible?

Thanks

Freddie Bingham
07-16-2001, 03:59 AM
Just so ya know I have finished Who's Online (or just about) and it will, hopefully, be released with 2.0.3

2.0.2 will just be a bug fix release.

MrLister
07-16-2001, 04:40 AM
are there gonna be any kind of different upgrades because i just spent tons of hours setting up 2.0.1 to be just right and now 2.0.2 is coming out and it'll take forever to redo it.

btw i have a file called index.php in a directory that's (../../articles) from the forum. it uses a template called articlespc and it's on http://localhost/articles/index.php how do i tell it that?

webhost
07-16-2001, 11:26 AM
can someone help with this as I mentioned above I have added the news hack. I placed the following script in the online.php file and it shows up on the page when someone is browsing but it does not give you a link to that page like the rest of them do. Here is what I put in.

} elseif (strstr($location,"news.php")) {
$locationtitle="Viewing the latest News";
$location="";

Thanks

webhost
07-17-2001, 09:31 AM
Ihave fixed above post but one question and one problem. First question if I install the following it works fine but is there a way to show which thread they are looking at with the attachment and have a link to that thread this is what I using. Also when it shows a guest as in a unknown area where would that be at. What is a unknown area. Does the hack cover all areas they could be in?

} elseif (strstr($location,"attachment.php")) {
$locationtitle="Viewing an Attachment";
$location="";


Now for the problem. It seems that everytime since I loaded this hack that when I log into my admin control panel I start have problems with my board count. I log in has admin then go to forum from the CP once there it shows admin as being signed in and also shows me as a guest. So I go to logout and I don't have option i have to sign in on the board ad amin again even though it shows me being logged in and I log out and it corrects the problem. This didn't happen before I installed this hack. Any ideas?

Bane
07-17-2001, 01:26 PM
I keep getting a reading that a guest is reading private messages and modifying profile. Any ideas on this?

webhost
07-17-2001, 01:36 PM
I'm see the same thing on my forum. Also still seeing unknown on some guests when I click on it, it takes me to the opening page.

Bane
07-17-2001, 01:44 PM
Maybe yours has to do with the subdomains? I tried going to your site using http://forums.realwebhost.net/index.php and it showed me as Main Forum Page. Also, the if the location is not covered by the hack, it will say unknown, to answer your last question.

webhost
07-17-2001, 01:58 PM
This is the main forum page isn't it?
http://forums.realwebhost.net/index.php

The unknown part how would I find out where they are where I could add that in?

Bane
07-17-2001, 02:11 PM
It is yes.. but it only shows unknown when the address shows http://forums.realwebhost.net/ and not http://forums.realwebhost.net/index.php not sure if adding another else would help that at all.

webhost
07-17-2001, 03:07 PM
Hey I tried about 20 different combinations to resolve the above. Finally gave up and just replaced unknown with Main Forum Page.

MrLister
07-17-2001, 03:35 PM
if i have a index file in a different folder but is still linked with global.php from the forum how do i tell it that that specific index.php should be regarded as something different and now Main Page.

webhost
07-18-2001, 10:42 AM
I am working on incorporating phpmychat with my vbulletin.

This is the location where the gobal.php from vbulletin is being used in the chat software http://www.realwebhost.net/chat/lib/index.lib.php3
This is the address I use to call up the chat from vbulletin
http://www.realwebhost.net/chat/index.php

How would I incorporate this location in online.php?

Bane
07-18-2001, 12:04 PM
I put a html page with a redirect to chat.php in there. then added:

} elseif (strstr($location,"chat.php")) {
$locationtitle="In chat!";Not what your looking for I'm sure. But a solution.

Hooper
07-18-2001, 12:41 PM
Originally posted by freddie
Just so ya know I have finished Who's Online (or just about) and it will, hopefully, be released with 2.0.3

2.0.2 will just be a bug fix release.


This sounds fantastic Freddie. Will the vBulletin Who's Online be as good as Mutt's WOL? and when can we expect this to be included with the new version download?

Thanks Freddie.

webhost
07-18-2001, 12:46 PM
Bane

Can you show me what you put in the redirect html file and what do I name that file and what directory do I put it in. What do I put in the chat.php file?

Thanks

Bane
07-18-2001, 01:10 PM
Sure.. just make a file called index.htm in the directory http://www.realwebhost.net/chat/

inside it put:<html><head>
<meta http-equiv="refresh" content="1; URL=http://www.realwebhost.net/chat/chat.php">
<title></title></head><body></body></html>

You should be able to rename your index.php to chat.php then and add the code to your online.php

webhost
07-18-2001, 01:14 PM
Bane look at this thread the first one and you will see the code I am putting in to tie vb into phpmychat. Then tell me if what you suggested is still correct.

http://www.vbulletin.com/forum/showthread.php?threadid=21329&goto=newpost

Thanks

Bane
07-18-2001, 01:19 PM
I really dont think changing the name of the originating file is going to change much in that hack unless you have something that calls the index.php by that name. Give it a try with what I just gave you. If it doesnt work change the name back and delete the index.htm :) But Im sure it will.

RobAC
07-18-2001, 02:01 PM
I have a different chat page hack since I use Multicity chat. I have it embedded in a chat.php file. Would it be possible to show the members who are currently logged into the chat.php in the "Currently Active Users" section of the Forum home page?

Bane
07-18-2001, 02:06 PM
So far it works yes Rob, the problem is after a while if the user hasnt had any activity vB assumes they have left. So yes it will show them in chat for the first few minutes but then logs them out.. I dont know what to do about that. Besides auto refreshing the page every few minutes, and that would be a massive pain. Since I believe Multicity would log the userout then back in and would have to change the name etc..

RobAC
07-18-2001, 02:13 PM
Interesting....how would I go about implementing this anyway? If it only shows them logged in for a few minutes....that's ok with me. :)

Bane
07-18-2001, 02:23 PM
Just add this code in your online.php} elseif (strstr($location,"chat.php")) {
$locationtitle="In chat!";

RobAC
07-18-2001, 03:34 PM
I did that already. I mean adding it to the Currently Online Users section which show up on the Forum home page with the other online users listing. :)

webhost
07-18-2001, 04:29 PM
rob I have the following file that came phpmychat That I will be trying to use, you can look at it. Once I get working on a regular page then I will try to incorporate it as a template.

MrLister
07-19-2001, 04:12 AM
is there any way that inside a file you can auctually specify a value for $location. so in index.html you can tell it that $location is chat.

webhost
07-19-2001, 06:46 AM
Bane
This is what I installed and I got the following problems at the bottom of this thread.

} elseif (strstr($location,"chat.php")) { $locationtitle="In chat!";


Sure.. just make a file called index.htm in the directory http://www.realwebhost.net/chat/
inside it put


<html><head><meta http-equiv="refresh" content="1; URL=http://www.realwebhost.net/chat/chat.php"><title></title></head><body></body></html>

You should be able to rename your index.php to chat.php then and add the code to your online.php

OK first chat is php3 extensions vb php, I followed instructions above only changing .php with .php3 extensions.

I uploaded all. When I ran index.htm IT still tries to open index.php3 instead of chat.php3 can not do that because I per instructions renamed index.php3 to chat.php3. Didn't work any more suggestions?

How did you get it working to show chat status RobAC?

Freddie Bingham
07-19-2001, 01:58 PM
[QUOTE]Originally posted by Hooper
This sounds fantastic Freddie. Will the vBulletin Who's Online be as good as Mutt's WOL? and when can we expect this to be included with the new version download?

Thanks Freddie.

webhost
07-19-2001, 02:40 PM
ok freddie where's your hack.

I like it

tubedogg
07-19-2001, 08:07 PM
He's already said it will be released with 2.0.3.

webhost
07-19-2001, 09:00 PM
Ok thank's tubedogg

Scooter
08-14-2001, 11:33 AM
hey i cant find the other hack that i need to install 1st.... could someone please post a link to it. thanks...

webhost
08-14-2001, 05:38 PM
<a href="http://www.vbulletin.com/forum/showthread.php?threadid=12010" target="_blank">http://www.vbulletin.com/forum/showt...threadid=12010</a>