Author |
Topic  |
TastyNutz
Junior Member
 
USA
251 Posts |
Posted - 14 October 2006 : 13:55:35
|
Another udate:
It dawned on me to go back and try the original chatroom.asp as included with ASP Chatnow. It appears to work okay when users leave.
So, I believe that the bug fix by Pull My Finger inadvertantly introduced this new bug.
Unfortunately, I prefer the first bug over this new one.
Maybe Pull My Finger can solve it? |
PowerQuad Disability Support Forum |
Edited by - TastyNutz on 14 October 2006 14:01:19 |
 |
|
Pull My Finger
Starting Member
43 Posts |
Posted - 14 October 2006 : 17:13:05
|
quote: Originally posted by TastyNutz
Another udate:
It dawned on me to go back and try the original chatroom.asp as included with ASP Chatnow. It appears to work okay when users leave.
So, I believe that the bug fix by Pull My Finger inadvertantly introduced this new bug.
Unfortunately, I prefer the first bug over this new one.
Maybe Pull My Finger can solve it?
When i read about the problem that was the first thing I thought of because that fix is reseting the chat, looks like as you say I created another bug with that log-out fix of mine...SORRY ABOUT THAT!
At the moment IM typing this IM taking a break from working on MY duck hunting boat prepairing for the upcoming season next week. Tring to get as much boat work as I can on My 2 days off from work. I try to look at the file when I get time late tonight and/or late tomorrow US east cost time.
If I can't fiqure out a work around within the next 48 hrs I will delete or edit-out that log-out fix posting I made if it's causing the problem (and I bet my bottom dollar it is) so as not to create problems for others later down the road reading this thread.
Another thought popped into my head....... Lets say My logout fix is creating the other bug (which IM sure it is) that was posted and we revert back to the org code. As you know in the instructions somewhere it calls for a admin reset icon to reset the chat because of the org bug of members still showing they are login in forum header when they are truly.
My queston is if we "revert back" to the org logout code and install the admin reset per instructions wouldn't that also create the same bug also with members in the chat when the admin hits the admin reset causing the same bug that I created with my logout fix? Something to keep in mind!
Again Sorry if My fix created another bug. Im sure we will solve the org problem without making another bug.
Break time over...time to get back to working on my boat.
|
Edited by - Pull My Finger on 14 October 2006 17:23:48 |
 |
|
TastyNutz
Junior Member
 
USA
251 Posts |
Posted - 14 October 2006 : 18:39:40
|
I've already reverted back to the KC mod. And yes, the admin "reset chat" link will clear a full chat. But my understanding is that it was only intended to be used on an empty chat room. At least that's the way that I plan to use it. |
PowerQuad Disability Support Forum |
 |
|
Pull My Finger
Starting Member
43 Posts |
Posted - 14 October 2006 : 21:06:31
|
quote: Originally posted by TastyNutz
I've already reverted back to the KC mod. And yes, the admin "reset chat" link will clear a full chat. But my understanding is that it was only intended to be used on an empty chat room. At least that's the way that I plan to use it.
I fiqured out a fix for the org problem before I made My first post about members in chat showing loged-on when they are truly not on inc_header! So far so good under testing. Everything working with logout link and just closing window. Part of the fix is reverting back everything in my first post in this thread in regards to chatroom.asp
Ill post the fix later tonight US eastcoast time (no time at the moment), heading out of my house at the moment to run into town. |
Edited by - Pull My Finger on 14 October 2006 21:11:12 |
 |
|
Pull My Finger
Starting Member
43 Posts |
Posted - 15 October 2006 : 02:53:13
|
This is in regards to my first post on page 1 in this topic. In that post I posted a fix for a problem in which members who truly wasn't in chat room was still showing up on forum inc-header.asp with the inc_chat.asp file. As was reported later in this thread my fix just created another bug, this time in the chat room. Below will fix the new bug I created. Followed by another try fixing the org problem without causing another bug.
If you haven't done so you have to revert back the chages I posted in my first post.
Reverting back changes to chatroom.asp 1- Find this code on chatroom.asp and revert back what I posted in red around line 40
<script> <!-- Hide from older browsers...
var blnSoundOff = false;
//toggle the smilies box function toggleEmo(objDiv) { var objBox = document.getElementById(objDiv);
if (objBox.style.display == "none") objBox.style.display = ""; else objBox.style.display = "none";
}
function logOut() { window.location="default.asp"; } // --> </script>
2- Again on chatroom.asp find this code (around line 47)..... <body bgcolor="#6E6E6E" style="margin: 0px;" onUnload="logOut();">
And revert back to this.... <body bgcolor="#6E6E6E" style="margin: 0px;">
Now lets try this sucker one more time to fix the org problem. So far it's seems to be working on my end when using logout link or closing chat window! Hope you's don't prove me wrong again!  1- First make a backup copy of inc_chat.asp 2- Then click on the "View New inc_chat.asp" link below. 3- Select All then copy all the code to make a new inc_chat.asp file Note: lines 1,2 and 3 highlighted in yellow are assuming the chatroom folder directory is in your server root. And your forum folder also with the inc_chat.asp file in forum folder in root. 4- In line 1 change "YourServer.com" to your domain address
I ripped some of the code from the chat default.asp.
Very Importent Side Note: There is about a 15 to 20 second delay for members that leave chat for there member names to drop off from the forum page. So please wait about 15 to 20 seconds before refreshing forum page or switching pages to test this out
View New inc_chat.asp |
Edited by - Pull My Finger on 15 October 2006 03:06:38 |
 |
|
TastyNutz
Junior Member
 
USA
251 Posts |
Posted - 15 October 2006 : 11:36:54
|
Pull My Finger... You rock! 
Your fix works great, but you should incorporate the tweak that Shaggy posted to remove the annoying trailing comma.
In your code, find this:
For intArrayPass = 1 To UBound(saryActiveUsers, 2)
Response.Write(vbCrLf & saryActiveUsers(1, intArrayPass) & ", ")
Next
And replace it with this:
intArrayMax=ubound(saryActiveUsers,2)
For intArrayPass=1 to intArrayMax
Response.Write saryActiveUsers(1,intArrayPass)
If intArrayPass<intArrayMax then Response.Write ", " Else Response.Write " "
Next
Thanks to everyone who helped!
|
PowerQuad Disability Support Forum |
Edited by - TastyNutz on 15 October 2006 11:38:00 |
 |
|
Pull My Finger
Starting Member
43 Posts |
Posted - 15 October 2006 : 13:56:49
|
quote: Originally posted by TastyNutz
Your fix works great, but you should incorporate the tweak that Shaggy posted to remove the annoying trailing comma.
Thanks TN... I did just that (added Shaggy change you posted)on the inc_chat.asp file I use for my live site. As for the inc_chat.asp that I linked to in my last post I left that as is so others can add the change you posted.
This is for the future a few weeks down the road when people read this thread...
In my last post I posted a "View New inc_chat.asp" link. That link is linking to the inc-chat.asp file in a temp folder on my server. Files that I put in that temp folder are files I keep on server for about 2 weeks.
The "View New inc_chat.asp" link at the end of this post is linking to the inc_chat.asp file I use on my live site and won't get deleted. That inc_chat.asp file has My personal text changes that I use for my site. You will have to edit line 1 that has My domain address to your domain address. Plus edit My personal text changes to how you like it.
My personal changes will look like this No members logged-on--> Who's in the Live Chat Room? [ Nobody in Chat ] 1 member logged-on--> Who's in the Live Chat Room? PMF 3 members logged-on--> Who's in the Live Chat Room? PMF | Tom | Mike
Link (Source Viewer) of inc_chat.asp that is being used for my live site.......... View New inc_chat.asp |
Edited by - Pull My Finger on 15 October 2006 20:54:54 |
 |
|
TastyNutz
Junior Member
 
USA
251 Posts |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
Pull My Finger
Starting Member
43 Posts |
Posted - 16 October 2006 : 14:53:34
|
quote: Originally posted by leatherlips
What do you think causes the 15 - 20 second delay in the update of the forum page with regards as to who is in the chat room? It certainly isn't a big deal, but I'd like to know why it does that.
Good queston, now you got me wondering why that is also..LOL I'll have to look when I get time to find out why that is.
At the time (my recent posts) I was trying to find something (anything) that would make this work without causing another bug as my first post did in this topic. Since this was mostly a rip from the chat default.asp replacement file maybe it has something to do with the includes on lines 2 & 3 on inc_chat.asp on my recent posts. On that default.asp replacement where I got the code for inc_chat.asp the default.asp page had the 15 to 20 second delay also!
|
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
TastyNutz
Junior Member
 
USA
251 Posts |
Posted - 16 October 2006 : 19:37:44
|
The alert doesn't do anything for me either. The kick feature does seem to work. I haven't tried the IP banned.
PMF, I've read it.  |
PowerQuad Disability Support Forum |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
Topic  |
|