Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Poll Mod Tweak
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

techknow
Junior Member

USA
149 Posts

Posted - 03 April 2007 :  13:39:49  Show Profile  Visit techknow's Homepage  Reply with Quote
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  Show Profile  Visit Jezmeister's Homepage  Reply with Quote
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<
Go to Top of Page

GPCasali
Starting Member

Australia
8 Posts

Posted - 24 August 2013 :  17:57:57  Show Profile  Reply with Quote
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.
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 25 August 2013 :  05:54:11  Show Profile  Reply with Quote
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.
Go to Top of Page

GPCasali
Starting Member

Australia
8 Posts

Posted - 25 August 2013 :  15:52:52  Show Profile  Reply with Quote
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
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 25 August 2013 :  21:35:17  Show Profile  Reply with Quote
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
Go to Top of Page

GPCasali
Starting Member

Australia
8 Posts

Posted - 27 August 2013 :  21:44:53  Show Profile  Reply with Quote
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
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 28 August 2013 :  04:31:57  Show Profile  Reply with Quote
Good job Carefree.

Support Snitz Forums
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 28 August 2013 :  09:17:24  Show Profile  Reply with Quote
Thanks, it's something I had done a LONG time ago but had forgotten to document so had to reinvent the wheel a bit.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07