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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 poll script
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

VodkaFish
Average Member

USA
654 Posts

Posted - 21 March 2001 :  17:32:36  Show Profile  Send VodkaFish an AOL message  Send VodkaFish an ICQ Message  Send VodkaFish a Yahoo! Message
i have a poll script in asp (i downloaded it at www.tippedcow.com ). it works decently. there's only one issue - if you've never been to the site, it doesn't do the cookie-read thing right and it displays the results. the next time you come, you can vote (which is why i have few voters out of thousands of visitors. BUT - the rest of it works well. i'm sure it's the beginning of the script which starts like this:


<%' id of poll to display

ID = 51
if Not Cookies_Enabled or Request.Cookies("PollID") = CStr(ID) then
ShowDisplay
Else
ShowVote
End If

Function Cookies_Enabled()
Cookies_Enabled = request.serverVariables("HTTP_COOKIE") <> ""
end function


Function ConvertToPercent(total, sz)
If sz = 0 Then
ConvertToPercent = "0%"
Else
ConvertToPercent = FormatPercent(sz/total, 2)
End If
End Function

Sub ShowVote

%>


anyone know what i can change it to so first time visitors can vote?

btw - this poll counts users one by one, etc. i want to make an archive page, and i feel this would be to slow. so, i'm open to suggestions on that too.

also - if anyone thinks any of the poll scripts people have listed here are better, please point me to them thanx.

v ø d k â f ï § h

Edited by - vodkafish on 21 March 2001 17:33:04

Kerry
Average Member

USA
553 Posts

Posted - 21 March 2001 :  17:42:27  Show Profile  Visit Kerry's Homepage
If you're shopping for poll software, have you looked into PollMentor? It's by Stefan Holberg at http://www.aspcode.net/showart.asp?art_id=298

It's what the poll MOD here is based on.

-Kerry

Go to Top of Page

VodkaFish
Average Member

USA
654 Posts

Posted - 09 April 2001 :  20:01:55  Show Profile  Send VodkaFish an AOL message  Send VodkaFish an ICQ Message  Send VodkaFish a Yahoo! Message
** bump **

well, i am happy with how this poll works except for this one problem i have. i want to stick to cookies (i don't wanna store IPs), and i'd like to have the cookie last for a bit.

anyone have any clue? or should i list more info?

v ø d k â f ï § h
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.02 seconds. Powered By: Snitz Forums 2000 Version 3.4.07