Author |
Topic |
dooza
New Member
69 Posts |
Posted - 09 April 2003 : 09:32:42
|
Hi there, http://www.snitzbitz.com/mods/details.asp?Version=3.4&mid=99 is the Mod I am having problems with.
I am having problems with this piece of code thats added:
"// TMPJ's Snitzzy Chat" & vbNewLine & _ "function openChat() { var MainWindow = window.open (""chat/default.asp?Name=""" & strDBNTUserName & """, "","toolbar=no,location=no,menubar=no,scrollbars=yes,width=800,height=600,top=100,left=100,resizeable=yes,status=no"");" & vbNewLine & _ "}" & vbNewLine & _
It causes this to happen:
Microsoft VBScript compilation error '800a0401' Expected end of statement /forum/inc_header.asp, line 256 "function openChat() { var MainWindow = window.open (""chat/default.asp?Name=""" & strDBNTUserName & """, "","toolbar=no,location=no,menubar=no,scrollbars=yes,width=800,height=600,top=100,left=100,resizeable=yes,status=no"");" & vbNewLine & _
The arrows point to the beginning of toolbar=no
I am upgrading a working forum so have taken that piece of code out for the forum to work, its here: http://www.djpages.com/forum.
I have tried to get support from http://www.magicorange.tk but there isnt a page there. Any help would be really appreciated.
Dooza |
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
Posted - 09 April 2003 : 09:44:10
|
Try this:
"function openChat() { var MainWindow = window.open (""chat/default.asp?Name=""" & strDBNTUserName & """, """",""toolbar=no,location=no,menubar=no,scrollbars=yes,width=800,height=600,top=100,left=100,resizeable=yes,status=no"");" & vbNewLine & _
"}" & vbNewLine & _ |
My MODs: Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch
Useful stuff: Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
|
|
|
dooza
New Member
69 Posts |
Posted - 09 April 2003 : 09:57:11
|
Almost, the page loads but with an error pop up.
Line: 24 Char: 77 Error: Expected ")" Code: "0"
The Chat link hasnt appeared either, but at least the forum loads now.
http://www.djpages.com/forum/inc_header.txt for anyone who wants to have a peep.
Cheers,
Dooza |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
Posted - 09 April 2003 : 10:01:30
|
This should work...
"function openChat() { var MainWindow = window.open (""chat/default.asp?Name=" & strDBNTUserName & """, """",""toolbar=no,location=no,menubar=no,scrollbars=yes,width=800,height=600,top=100,left=100,resizeable=yes,status=no"");" & vbNewLine & _
"}" & vbNewLine & _
|
My MODs: Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch
Useful stuff: Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
|
Edited by - OneWayMule on 09 April 2003 10:50:09 |
|
|
dooza
New Member
69 Posts |
Posted - 09 April 2003 : 10:34:39
|
First impressions were good, the first page was error free but still didnt have a Chat link. So I tried the admin area, and I got this pop up error:
Line: 24 Char: 84 Expected: ")" Code: "0"
The pop ups in admin dont work anymore, but they did before. Maybe I made a mistake somewhere else? |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
dooza
New Member
69 Posts |
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
dooza
New Member
69 Posts |
Posted - 09 April 2003 : 11:06:32
|
Hi OneWayMule, Nice one for getting rid of the error messages, any idea why the Chat links dont appear? |
|
|
dooza
New Member
69 Posts |
Posted - 09 April 2003 : 11:26:27
|
An odd thing: if you visit my forum (http://www.djpages.com/forum) and dont login you get the chat link, but when it is clicked on, the pop up window appears and then closes again. If you then login you dont get the link. Very odd. |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
dooza
New Member
69 Posts |
Posted - 09 April 2003 : 11:36:30
|
Almost there now, the link shows, it opens the pop up, you click login and it closes :(
Would I be correct in saying that this mod isnt as ready as I thought it was?
Corrections.htm? Nope, it didnt seem obvious if I should, but now that you have told me to I will.
Cheers,
Dooza |
Edited by - dooza on 09 April 2003 11:41:16 |
|
|
dooza
New Member
69 Posts |
Posted - 09 April 2003 : 11:54:37
|
Now that I made that one change to Corrections.htm it still doesnt work :( Most of them were already covered in the installation instructions. I also added the global.asa to the Forum and Chat folders, as I only had it in the root. Maybe a restart of IIS is needed? |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
dooza
New Member
69 Posts |
Posted - 09 April 2003 : 12:08:01
|
I made one final change and it worked :)
Nice one for helping!
Steve |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
Topic |
|