Author |
Topic |
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 07 June 2001 : 16:59:55
|
Use the mod_dbsetup.asp file from the snitz_polls.zip file. There are a few different versions out there.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 07 June 2001 : 17:43:40
|
OK here we go, someone want to test this before I make it available in the MOD W/CODE topic??
http://www.nineinchnailz.com/poll_addon.zip
I've tested it quite extensively and had great results.
Included in the file is the mod_dbsetup, polls_more.dbs and a readme for editing topic.asp, post.asp and post_info.asp
Good luck...
Dayve |
|
|
wii
Free ASP Hosts Moderator
Denmark
2632 Posts |
Posted - 07 June 2001 : 17:51:53
|
YEAHHHHH !!!!!!
I will test it right now !!!!!!
Hang on...
|
|
|
wii
Free ASP Hosts Moderator
Denmark
2632 Posts |
Posted - 07 June 2001 : 18:49:47
|
Sorry ! didnīt work.
I got "expected statements" errors in topic.asp and post.asp
Maybe I did something wrong, can you modify my files (topic/post/post_info) for me?
http://www.virtue.nu/wii/mycode.zip
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 07 June 2001 : 19:11:55
|
quote:
Sorry ! didnīt work.
I got "expected statements" errors in topic.asp and post.asp
Maybe I did something wrong, can you modify my files (topic/post/post_info) for me?
http://www.virtue.nu/wii/mycode.zip
it should work, I had someone else do it for their forum without any problems but I will look at your code. unfortunately I will not be able to review it until late tonight or Saturday. I have a wedding to attend tomorrow...
the zip file above, is that a working example with 8 choices or is it your attempt at the 20 choices? I ask because instead of trying to debug your code, it would probably be quicker for me to add the code in your working files.
I will also put a working demo up tonight for your review of the working product.
Dayve
Edited by - dayve on 07 June 2001 19:13:07 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 07 June 2001 : 19:21:04
|
in the meantime, you can review my actual working files. I would not replace your files with these because I have some other mods that may cause you other problems.
topic.asp post.asp post_info.asp
maybe you can quickly find a mistake compared to your coding..
Dayve |
|
|
wii
Free ASP Hosts Moderator
Denmark
2632 Posts |
Posted - 07 June 2001 : 19:22:43
|
the zip above is from my working code (with 8 choices) - it would be great if you could insert yours into them, so Iīm sure itīs not me, which is probably why my test didnīt work.
|
|
|
wii
Free ASP Hosts Moderator
Denmark
2632 Posts |
Posted - 07 June 2001 : 19:27:31
|
Oh thanks - but I will not be able to use these for my working forum, since itīs heavily modified also. Iīll check them out!
quote:
in the meantime, you can review my actual working files. I would not replace your files with these because I have some other mods that may cause you other problems.
topic.asp post.asp post_info.asp
maybe you can quickly find a mistake compared to your coding..
Dayve
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 07 June 2001 : 19:45:49
|
I just meant you could review the coding, I knew you couldn't use them but hey, I am so confident this process works that I went live with mine so check out this example:
Demo with 20 Choices
I will review and edit your code...
Dayve
Edited by - dayve on 08 June 2001 11:02:15 |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 07 June 2001 : 20:21:33
|
I recently shared some code with someone so only moderators and admins can create polls. I like my members to create polls so I don't have a problem, but I can see with additional choices that it could quite possibly be abused. I am going to edit my code so members are limited to 10 and admin/moderators have the full 20. let me know if you are interested in that code as well..
Dayve |
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 08 June 2001 : 01:12:21
|
this should do it...
Download Zip for wii ONLY!
if you receive any errors, make sure you annotate the exact line numbers and error messages but it looks like its going to work from what I can tell.
DAVIO: care to test this too? just download the zip file I posted earlier..
Dayve
Edited by - dayve on 08 June 2001 01:17:43 |
|
|
wii
Free ASP Hosts Moderator
Denmark
2632 Posts |
Posted - 08 June 2001 : 03:09:05
|
dayve - I canīt download the file ?
can you mail it to me wii@onebox.com ?
thanks.
my members are not allow to post polls, but I donīt mind giving them 20 choices if I one day decide to give them permission.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 08 June 2001 : 11:03:33
|
I sent it to you...
Dayve |
|
|
wii
Free ASP Hosts Moderator
Denmark
2632 Posts |
Posted - 08 June 2001 : 15:21:16
|
thanks - Iīve done some testing of the code at my PWS.
it works, but with 1 bug - this is how it looks (screenshot) when doing a test with 20 answers:
http://www.alphawhales.f2s.com/images/error_poll1.gif
If I edit the poll and write the 20 answers again, it works perfectly - strange....?!
Also, we need to edit the default.asp with this additional code for the "features poll".
thanks - this is really great.
|
|
|
dayve
Forum Moderator
USA
5820 Posts |
Posted - 08 June 2001 : 18:30:59
|
quote:
thanks - Iīve done some testing of the code at my PWS.
it works, but with 1 bug - this is how it looks (screenshot) when doing a test with 20 answers:
http://www.alphawhales.f2s.com/images/error_poll1.gif
If I edit the poll and write the 20 answers again, it works perfectly - strange....?!
Also, we need to edit the default.asp with this additional code for the "features poll".
thanks - this is really great.
that's weird, looks like some shared variables happening there, I will review the code I sent you. btw, I don't use the feature forum and to be honest, not sure if you would want to with a forum that has up to 20 choices but I will look into fixing that part too. all it really is is changing 8 to 20, it really is kind of simple so check out the code..
Dayve |
|
|
Topic |
|