Author |
Topic  |
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 07 February 2013 : 11:13:33
|
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 |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 07 February 2013 : 20:22:32
|
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 |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 08 February 2013 : 10:46:52
|
Send me the "functions_chat.asp" file, I'll take a shot at fixing it. |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 08 February 2013 : 12:19:27
|
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 |
 |
|
cripto9t
Average Member
  
USA
881 Posts |
Posted - 08 February 2013 : 18:10:14
|
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\-_ |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 09 February 2013 : 00:19:40
|
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 |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 09 March 2013 : 23:59:47
|
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:
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 |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 12 April 2013 : 18:08:48
|
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 |
 |
|
Topic  |
|
|
|