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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 STRANGE Happening in My Profile Area
 New Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

MaGraham
Senior Member

USA
1297 Posts

Posted - 07 February 2013 :  11:13:33  Show Profile
quote:
Originally posted by MarcelG

Just an example (not sure if it's correct, just an example).
Topic.asp includes config.asp, inc_func_common.asp and inc_header.asp, and others.
The file inc_chat.asp is loaded via an include in inc_header.asp.


I realize this above is just an example, but what could be done if it were actually what was happening?


"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 07 February 2013 :  20:22:32  Show Profile


What I really meant to say was, wouldn't it be much easier to just move this from the header and place it somewhere like default.asp and possibly topic.asp as well? Wouldn't that work? Or does it need to be in only one place rather than the header causing it to be everywhere?



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 08 February 2013 :  10:46:52  Show Profile
Send me the "functions_chat.asp" file, I'll take a shot at fixing it.
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 08 February 2013 :  12:19:27  Show Profile
quote:
Originally posted by Carefree

Send me the "functions_chat.asp" file, I'll take a shot at fixing it.



Check your email, Carefree!

THANK YOU!!


"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 08 February 2013 :  18:10:14  Show Profile
quote:
What I really meant to say was, wouldn't it be much easier to just move this from the header and place it somewhere like default.asp and possibly topic.asp as well? Wouldn't that work? Or does it need to be in only one place rather than the header causing it to be everywhere?


Post a txt copy of inc_chat.asp. I think you should be able to limit the chat link in that file and leave it in inc_header.

As for the error. It's like Marcel said, func_chat.asp is probably being included twice and seeing how the error msg is only present on one page I'd start trying to track it down in that file. Look at the file that the Avatar Upload/Change Link takes you to, and then check every Include File in that file and all the Includes in those files for anything having to do with the Chat Mod. Just search the files for "chat", you should be able to knock them out in a minute.

Or like HuwR said just remove "Const" from both those constants and it should clear up the error, but you'll still have the redundant code.


    _-/Cripto9t\-_
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 09 February 2013 :  00:19:40  Show Profile
I only edited a few files for this chat program. Here are the instructions for installation below. The default.asp mentioned here is a default.asp file for the chat folder. The only other changes I made was to change the smiley emoticons and use a chat button I designed in addition to the "Click here to join live chat" link.


1. Open inc_header.asp
Look for: if (mlev = 4) or (lcase(strNoCookies) = "1") then

ABOVE that add:

'###Chat###
KCname=strDBNTUserName
'###Chat###

2. Look for:
if strGroupCategories = "1" then

ABOVE that add:

'###Include file for Chat###
%><!--#INCLUDE FILE="chat/inc_chat.asp" --><br /><br /><%
'###Chat File Above###

3. Now it is time to edit the files in the chat folder. Open the file named chat.asp

On line 58 change YOUR FORUM NAME HERE to your forum name.

4. Open chatroom.asp

On line 18 change YOUR FORUM NAME HERE to your forum name.

On line 77 change YOUR FORUM NAME HERE to your forum name.

5. Open default.asp

On line 16 change YOUR FORUM NAME HERE to your forum name.

6. Open inc_chat.asp

On line 1 change www.YOUR-WEB-ADDRESS-HERE.com to your web address. Make sure the rest of the URL on that line points to your chat folder. It is assuming you put your Snitz files in a folder named forum. If you have a different name you will need to change the word forum to your folder name as well.

7. Open a file named functions_chat.asp inside of the functions folder

On line 2, change the word password to your own secret password. This password is to be able to use the administrative features of the chat files.




Here is my inc_chat.asp in txt format.


inc_chat.asp in txt format



Thank you guys so much for your time! It's greatly appreciated!


"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley

Edited by - MaGraham on 09 March 2013 23:55:28
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 09 March 2013 :  23:59:47  Show Profile

The link to my inc_chat.asp just doesn't seem to display the contents of my file but rather the link to my chat room so I'll post its contents like this:


<font size="1"><a href="javascript:void(0)" onClick="window.open('https://www.mylinkhere?txtUsername=<%=KCname%>','Chatwindow2','scrollbars=no,left=50,top=50,width=700,height=460')"><img src=<%=strImageURL%>tfp_chat_live_button.png alt="Join Live Chat" border="0"/><font size="3" face="arial">Click here to join live chat!</font></a></font> <br><font size="3" face="arial">Members in Chat Room:</font>
<font color="#7F0205">
 <!--#include file="functions/functions_chat.asp"-->
 <!--#include file="functions/functions_users.asp"-->

 <%' *** Change the server path above ***

 '  *** Get the chat user array ***

 'Get the array
 If IsArray(Application(ApplicationUsers)) Then
   saryActiveUsers = Application(ApplicationUsers)
 Else
   ReDim saryActiveUsers(6, 0)
 End If

 Call RemoveUnActive()

 If UBound(saryActiveUsers, 2) = 0 Then
   Call Reset()

   Response.Write(vbCrLf & "Currently Empty")
 Else
   Dim intArrayPass

   intArrayMax=ubound(saryActiveUsers,2)

   For intArrayPass=1 to intArrayMax
   Response.Write saryActiveUsers(1,intArrayPass)
   If intArrayPass<intArrayMax then Response.Write " | " Else Response.Write ""
 Next
 End If
 Call RemoveUnActive()
 %>
</font>


I'm still struggling with this. . .



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 12 April 2013 :  18:08:48  Show Profile


Does anyone have time to look at this problem again?

Pretty please?



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07