Author |
Topic |
|
techknow
Junior Member
USA
149 Posts |
Posted - 03 April 2007 : 13:39:49
|
Is it possible to tweak the poll mod so that the results are not visible until the poll is closed?
Frankly, this is a really good voting script. I have a need for a good secure voting script and this seems to be it...
< |
|
Jezmeister
Senior Member
United Kingdom
1141 Posts |
Posted - 03 April 2007 : 13:54:25
|
yep should be possible, when you get the checks as to whether a user has voted before or not you just need to add a check for whether the poll is open or closed... it may even be simpler than that if its been coded seperately to skip the voting if you've already voted and display results - all you'd need to do then is add a check as to whether the poll is open or closed to the latter< |
|
|
GPCasali
Starting Member
Australia
8 Posts |
Posted - 24 August 2013 : 17:57:57
|
Hi there...
My apologies for resurrecting a very old thread, but this is EXACTLY my predicament.
Unfortunately, I am a complete noob at coding and have been entrusted to manage a SnitzForum web site for a non profit association... and I am the most tech savvy of the lot!!
So I have been asked to hide the poll results until the poll is officially closed.
At the moment, members who have voted tend to tell non voters the partial status of the poll; this has been found to greatly influence their vote.
Can any kind soul help me with a bit of code and where to insert it so I can achieve this outcome... without breaking everything?
Most appreciative. |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 25 August 2013 : 05:54:11
|
It's not too difficult but a database mod is necessary and five files have to be changed: "config.asp", "inc_poll.asp", "post.asp", "post_info.asp", and "topic.asp". Since you're new to coding, it would probably be a big job for you. Instead, I recommend you post links to the five files in ".txt" format and I'll make the changes for you.
First, before posting the link to "config.txt", remove the line with the database connection string. |
|
|
GPCasali
Starting Member
Australia
8 Posts |
Posted - 25 August 2013 : 15:52:52
|
Most thankful for the kind offer!!
I can send you the five files via email, as they are all small in size.
Alternatively, I can send you links to copies of these files that I have placed in my Dropbox.
Or do you need access to the FTP root directory?
Cheers |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 25 August 2013 : 21:35:17
|
Just Email them, but zip them first. Most Email providers will block .asp file extensions. I sent you mail so you'll have my address. |
Edited by - Carefree on 25 August 2013 21:37:25 |
|
|
GPCasali
Starting Member
Australia
8 Posts |
Posted - 27 August 2013 : 21:44:53
|
Just to report back that it's all been sorted and only thanks to CareFree!
I owe him a debt of infinite gratitude for donating some time to sort out the code in our forum asp files to make the change possible.
Now the mod is complete, with all polls having a handy "auto closing" setting and only displaying results once the poll has closed.
Kudos to CareFree and thanks to this very handy forum.
Cheers Paul |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 28 August 2013 : 09:17:24
|
Thanks, it's something I had done a LONG time ago but had forgotten to document so had to reinvent the wheel a bit. |
|
|
|
Topic |
|