Author |
Topic |
|
Toreador
Starting Member
16 Posts |
Posted - 19 April 2002 : 09:32:09
|
Any time I try to change preferences for the Poll mod I get this error.
It seems to be with Admin_poll.asp
Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'SetConfigValue' /forum/admin_poll.asp, line 106
Browser Type: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)
Page: POST 82 bytes to /forum/admin_poll.asp
POST Data: Method_Type=Write_Configuration&strAdminPolls=1&strUserPolls=1&strWhoVotes=members
and it seems to stem from this section of code. elseif Request.Form("Method_Type") = "Write_Configuration" then
for each key in Request.Form if left(key,3) = "str" or left(key,3) = "int" then strDummy = SetConfigValue(1, key, ChkString(Request.Form(key),"SQLstring")) end if next Application(strCookieURL & "ConfigLoaded") = "" %>
anybody?
Edited by - Toreador on 19 April 2002 10:08:30 |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 19 April 2002 : 10:15:21
|
It means you overwrote your inc_functions.asp file with the one that came in poll mod zip file. And it is missing the SetConfigValue() function from it. You should really copy and paste the code into your files when installing a mod. It is really the best way to do it.
One main reason is the mod developer might have made some changes to that file that is not directly needed for the mod and you might end up with more problems that you could have avoided.
You can get a clean copy of the inc_functions.asp file from the Snitz Forums 2000 zip file and paste the poll mod code into there and upload it to your forum folder.
«------------------------------------------------------» Want to know when the next version comes out, as soon as possible? Join our Mailing Lists ! |
|
|
Toreador
Starting Member
16 Posts |
Posted - 19 April 2002 : 10:48:49
|
Well I checked to see what the problem was, couldn't find any. My inc_functions.asp was the old one with the small snipit of code pasted in at the top for the poll mod. I couldn't find any problems with it, so I just went ahead and copied your inc_functions.asp file over it. Seems to work fine now, so we will see if any other mods now have problems!! :) Thanks for the shove in the right direction though.
I have another question if you don't mind. How does the poll keep track of who has voted and who has not? Is it in the database or a cookie?
I am having a few users that can vote,. then go back in a few hours later and vote again. It sometimes shows the vote results, sometimes the vote page. Does the mod even only count unique votes?
I do have the mod set to members only, and I also wonder if changing the prefs would allow a revote from someone. Any info would be appreciated. Thanks.
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 19 April 2002 : 11:03:31
|
If you have it set to Members Only can vote, then it is stored only in the database of which member voted. Unregistered users cannot vote. And it shouldn't allow anyone to revote again using the Members Only option, unless they registered or used a new account and voted.quote: I am having a few users that can vote,. then go back in a few hours later and vote again.
Can you vote again after you have voted? quote: Does the mod even only count unique votes?
The poll mod counts all votes. If they are able to vote, then it is counted.
«------------------------------------------------------» Want to know when the next version comes out, as soon as possible? Join our Mailing Lists ! |
|
|
|
Topic |
|