Author |
Topic |
Ryan
Average Member
USA
858 Posts |
Posted - 08 October 2003 : 11:43:13
|
OK here is an update. Just like I suspected editing the Const LOGGED_OUT_PAGE = "default.asp" did not help. I want them redirected to the forum before they enter the chat room. Also how can I edit the script in the main forum default page how many users are in the chat room? |
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
|
|
brujo
Average Member
USA
602 Posts |
Posted - 08 October 2003 : 13:35:26
|
Ryan,
I posted this to WeeWeeSlap - and another three users have emailed me since then to ask how....
I will try to post a zip link with necessary modifications etc.
I am quite busy today to do this - but will post instructions hopefully by tomorrow evening.
hope this is ok.
brujo |
|
|
Ryan
Average Member
USA
858 Posts |
|
n8pbm
Junior Member
USA
212 Posts |
Posted - 08 October 2003 : 14:18:44
|
quote: Originally posted by reducks87
OK here is an update. Just like I suspected editing the Const LOGGED_OUT_PAGE = "default.asp" did not help. I want them redirected to the forum before they enter the chat room. Also how can I edit the script in the main forum default page how many users are in the chat room?
I guess I am confused by what you want exactly. You said redirected before entering the chat. I assume they were already on the forum and clicked on a link to go to chat?
Also my zip file I have a include file that shows who is in the chat room. This is displayed like the statistics or active users are displayed. Not sure if that is what you want. |
Mike Great Lakes Pop Up Club Camping |
|
|
Ryan
Average Member
USA
858 Posts |
Posted - 09 October 2003 : 13:55:49
|
quote: Originally posted by n8pbm
I guess I am confused by what you want exactly. You said redirected before entering the chat. I assume they were already on the forum and clicked on a link to go to chat?
When I edited the part of code I was told to edit it did not redirect you to the forum before you logged in. I want it so that it redirects you to the forum if you just open a browser and type in the URL to my chat room. That way when you are redirected you must be registered at the forums to see the link to the chat room. Once you are registered and you click on the link you will be able to access the chat room because you came through the forums.quote: Also my zip file I have a include file that shows who is in the chat room. This is displayed like the statistics or active users are displayed. Not sure if that is what you want.
All I want is one where you are told how many people are in the chat room and not neccesarily who. I want to know how to set that up. |
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
|
|
n8pbm
Junior Member
USA
212 Posts |
Posted - 09 October 2003 : 14:38:00
|
Gotcha,
In the zip file is the code that will place the number of users chatting next to the link in header.asp. You can look at that file and see how it was done. I can also post that code when I get a chance if you want.
I need to look at how the redirect works for entering the chatroom. I may be able to give you a quick mod that will do what you want. If i have a quick solution i'll post it. |
Mike Great Lakes Pop Up Club Camping |
|
|
Ryan
Average Member
USA
858 Posts |
|
n8pbm
Junior Member
USA
212 Posts |
Posted - 09 October 2003 : 19:23:44
|
This code was to put a link in the inc_Header.asp that also shows how many are in the chat. If there is no one then no number is shown.
You basically include the inc.utilities file from the chat to whatever page you want the number of users to show on. Then just use countUsers() to show the number.
Open inc_header.asp
Find this at Line 40"
<!--#INCLUDE FILE="inc_func_common.asp" -->
Add this below it: (Change the path to where you have the chat directory. The path below is for the chat directory to be a subfolder of the forum directory. If the chat directory is a subfolder of the root directory then the path would be ../chatfolder/inc.utilities.asp)
<!--#include file="Chat/inc.utilities.asp" -->
At line 258 find function openWindowHelp(url)
"function openWindowHelp(url) {" & vbNewLine & _
" popupWin = window.open(url,'new_page','width=470,height=200,scrollbars=yes')" & vbNewLine & _
"}" & vbNewLine & _
Add this below it: Again the path needs to be changed in the 'mainwindow = window.open(""enter chat path/default.asp?.
"// ConquerChat" & vbNewLine & _
"function openChat() {" & _
"var MainWindow = window.open (""chat/default.asp?UserName=" & strDBNTUserName & "&login=login&mode=userLogin""," & _
"'ChatWindow','scrollbars=yes,width=800,height=550,top=0,left=0,resizable=yes');" & vbNewLine & _
"}" & vbNewLine & _
Find this code at line 480:
if strUseExtendedProfile then
Response.Write " <a href=""pop_profile.asp?mode=Edit""" & dWStatus("Edit your personal profile...") & " tabindex=""-1""><acronym title=""Edit your personal profile..."">Profile</acronym></a>" & vbNewline
else
Response.Write " <a href=""javascript:openWindow3('pop_profile.asp?mode=Edit')""" & dWStatus("Edit your personal profile...") & " tabindex=""-1""><acronym title=""Edit your personal profile..."">Profile</acronym></a>" & vbNewline
end if
and add this code below it:
if strDBNTUserName <> "" then
Response.Write " |" & vbNewline & _
" <a href=""javascript:openChat()""><acronym title=""Chat with other users..."">Chat</acronym></a>" & vbNewline
if countUsers() <> 0 then
Response.Write "<font color=""#FF0000""> (" & countUsers() & ")</font>" & vbNewline
end if
end if
I'll see what I can do for the other problem you have. Let me know if that made any sense. |
Mike Great Lakes Pop Up Club Camping |
|
|
Ryan
Average Member
USA
858 Posts |
|
Ryan
Average Member
USA
858 Posts |
Posted - 16 October 2003 : 23:06:11
|
Worked. Thanks alot. A couple more problems though. (Not to mention the redirectory one I am waiting for) When users hit logout they do not get logged out. Sometimes upon entering the chat room users are unable to enter text and no room shows in the rooms area. |
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
|
|
n8pbm
Junior Member
USA
212 Posts |
|
Ryan
Average Member
USA
858 Posts |
Posted - 17 October 2003 : 12:06:47
|
Thanks let me know when you do. If it goes awhile I will remind you as I know it is easy to forget. |
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
|
|
Topic |
|