Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ConquerChat modifications
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Ryan
Average Member

USA
858 Posts

Posted - 08 October 2003 :  11:43:13  Show Profile  Visit Ryan's Homepage
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
Go to Top of Page

brujo
Average Member

USA
602 Posts

Posted - 08 October 2003 :  13:35:26  Show Profile  Visit brujo's Homepage
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
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 08 October 2003 :  13:48:02  Show Profile  Visit Ryan's Homepage
Thats fine.

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 08 October 2003 :  14:18:44  Show Profile  Visit n8pbm's Homepage
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
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 09 October 2003 :  13:55:49  Show Profile  Visit Ryan's Homepage
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
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 09 October 2003 :  14:38:00  Show Profile  Visit n8pbm's Homepage
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
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 09 October 2003 :  16:53:25  Show Profile  Visit Ryan's Homepage
Great I will be waiting.

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 09 October 2003 :  19:23:44  Show Profile  Visit n8pbm's Homepage
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
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 09 October 2003 :  21:01:27  Show Profile  Visit Ryan's Homepage
Will try it later. Thanks!

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 16 October 2003 :  23:06:11  Show Profile  Visit Ryan's Homepage
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
Go to Top of Page

n8pbm
Junior Member

USA
212 Posts

Posted - 17 October 2003 :  07:54:52  Show Profile  Visit n8pbm's Homepage
Have you tried the authors forum? He has some bug fixes that might take care of some of the problems. http://www.theill.com/snitzforum/default.asp?CAT_ID=7

I have not had time yet to look into the redirection thing.

Mike
Great Lakes Pop Up Club Camping
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 17 October 2003 :  12:06:47  Show Profile  Visit Ryan's Homepage
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
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07