Poll Mod Tweak - نوشته شده در (1880 Views)
Junior Member
techknow
مطلب: 149
149
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...
<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Senior Member
Jezmeister
مطلب: 1141
1141
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<
نوشته شده در
Starting Member
GPCasali
مطلب: 8
8
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.
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
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.
نوشته شده در
Starting Member
GPCasali
مطلب: 8
8
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
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
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.
نوشته شده در
Starting Member
GPCasali
مطلب: 8
8
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
نوشته شده در
Development Team Member
Davio
مطلب: 12217
12217
Good job Carefree.
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
Thanks, it's something I had done a LONG time ago but had forgotten to document so had to reinvent the wheel a bit.
 
شما باید یک متن وارد کنید