Author |
Topic |
|
muzishun
Senior Member
United States
1079 Posts |
Posted - 20 October 2004 : 23:08:06
|
I've got the Poll Mod installed, and I tried installing the site poll, but I'm getting a couple of errors with my config.asp file. It's claiming that there are variables not defined, but the forum itself works fine.
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'strCookieURL'
/forum/config.asp, line 153
And if I try to just add a 'Dim strCookieURL' line, I get the following error:
Microsoft VBScript runtime error '800a01f4'
Variable is undefined: 'strUniqueID'
/forum/config.asp, line 156
If I add a 'DimstrUnigueID' line, my entire site goes down. Here's a link to the files that I think have erros in them.
http://www.genuineimitation.org/default.txt http://www.genuineimitation.org/forum/config.txt http://www.genuineimitation.org/site_poll.txt
Any help figuring this out would be greatly appreciated. |
Bill Parrott Senior Web Programmer, University of Kansas Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com) Personal Website (www.chimericdream.com) |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 21 October 2004 : 01:49:41
|
That sounds like you the file you are putting in the includes are causing problems. Do you have an "Option Explicit" set in the file you are putting the site poll on?
What page are you testing the site poll from? Are you running the site_poll.asp file itself or have you included the site poll code into your website, and testing it from your website? |
Support Snitz Forums
|
|
|
muzishun
Senior Member
United States
1079 Posts |
Posted - 21 October 2004 : 02:47:46
|
I put an include line in the default.asp page of my site. I've got this line inside the <head> tags on the header file that's included in all pages of my site:
<script language="VBScript">Option Explicit</script>
Do I need to include it somewhere else instead/also? |
Bill Parrott Senior Web Programmer, University of Kansas Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com) Personal Website (www.chimericdream.com) |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 21 October 2004 : 03:03:22
|
quote: I put an include line in the default.asp page of my site.
Include to which file? The site poll file? You cannot include the site poll file into your website. Have you read the instructions in the site_poll.asp file?
You either link to the site poll file from your website, and modify the site poll page to fit win with the rest of your site OR copy the includes, the javascript, code from the site poll file, put them in your default.asp file on your site, and then include the sitepoll.asp into your file.
But before you even do that, you are going to have a problem with that Option Explicit. The forum code does not use Option Explicit so none of the variables are dimmed. So that is a big problem which I don't see an easy way out of. You would have to dim all the variables in config.asp, inc_func_common.asp and inc_func_secure.asp. Hopefully that won't open up more problems on the forum. |
Support Snitz Forums
|
|
|
muzishun
Senior Member
United States
1079 Posts |
Posted - 21 October 2004 : 05:04:38
|
I finally got it figured out. It took a long freaking time, and I had to declare a ton of variables outside the forum. The nice thing, though, is that I declared them inside a file that never gets called from the forum, so I don't have any conflicts with variables being redefined. Everything seems to be working so far... and I'm going to bed. Thanks for the help and the MOD, Davio. |
Bill Parrott Senior Web Programmer, University of Kansas Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com) Personal Website (www.chimericdream.com) |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 21 October 2004 : 18:19:33
|
Cool. Glad you got it working. I was really doubting that it would work. |
Support Snitz Forums
|
|
|
|
Topic |
|