- if a user votes without logging in, is asked to login and the pollvote still counts
(2 new templates,error_pollvotenologin, error_pollvoteinvaliduser)
- Graphical view of poll results available. Template pollyesvote has a new variable $pollbargraph. If you
do not want to have the graphical view, simply remove the variable.
- poll icon ist now not needed to be inserted into the vBulletin icon db.
- new file pollmodule.php - hacks in files only reference to it, much less code to enter into the new files!
- speed enhancements and less mysql calls.
Overall features
- Let registered users post a new thread that has a poll integrated in it
- Let registered users vote on the poll
- Multiple votes impossible as userid is stored on vote
- Define # of poll options in CP
- Limit who can post a poll by usergroups (from the control panel)
- Designed to be easily translated. Only some text is hard coded (see localisation section below)
- Fully templateable - you can customise the look of the poll
- Users who can not post can not vote as well
- Make sure person did not vote, press back, and vote again
- Admin/Moderator edit of Polls at all times
- Edit Poll while no votes (for user who started the poll thread)
- vB code parse for options
- closing a thread == close a poll
- Admin delete
- View results without voting
- Close a poll (admin/mod/author)
- Graphical view of votes (bar graph and/or pie graph) **NEW**
Note to upgraders: Due to a change in the how data is stored, the new poll is not backwards compatible. Therefore, you will need to run updatepoll.php
The poll hack will be intergrated into vBulletin 2.0, so if you are in no hurry, you should better wait
[Edited by doron on 11-04-2000 at 06:00 AM]
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
i installed pollhack and it is work well. But whin someone not choos any option it gaives me an error in email :
Database error in vBulletin: Invalid SQL: INSERT INTO pollvote (pollvoteid,pollid,votedate,voteoption,userid) VALUES (NULL,17,981810256,,204)
mysql error: You have an error in your SQL syntax near '204)' at line 1
mysql error number: 1064
Date: Saturday 10th of February 2001 08:04:16 AM
Script: /forums/poll.php3
Referer: http://mydomain.com/forums/poll.php3
i installed pollhack and it is work well. But whin someone not choos any option it gaives me an error in email :
Database error in vBulletin: Invalid SQL: INSERT INTO pollvote (pollvoteid,pollid,votedate,voteoption,userid) VALUES (NULL,17,981810256,,204)
mysql error: You have an error in your SQL syntax near '204)' at line 1
mysql error number: 1064
Date: Saturday 10th of February 2001 08:04:16 AM
Script: /forums/poll.php3
Referer: http://mydomain.com/forums/poll.php3
How can i solve this ?
Thank you ..
the newest version should check if a option is not selected and should push a error to the user...
I have just downloaded the poll hack from vBulletin.org.
I have gone through all the tasks without error (as far as I know)
At stage 8 when I am testing all the changes:
8. Create a test poll in your test forum, and let people vote/reply to it, to make sure that the poll script is working fine. Do this with entering this into your url bar: http://www.domainname.com/forum/poll...poll&forumid=x
where x is the forumid of the test forum or whatever forum you want to test it in.
At this point when I do this I simply get a white page. No errors or anything.
I am sure that this is a very simple issue but am not clued up enough to work out what I have done.
If someone could offer some advice it would be very much appreciated.
Originally posted by twiglet I have just downloaded the poll hack from vBulletin.org.
I have gone through all the tasks without error (as far as I know)
At stage 8 when I am testing all the changes:
8. Create a test poll in your test forum, and let people vote/reply to it, to make sure that the poll script is working fine. Do this with entering this into your url bar: http://www.domainname.com/forum/poll...poll&forumid=x
where x is the forumid of the test forum or whatever forum you want to test it in.
At this point when I do this I simply get a white page. No errors or anything.
I am sure that this is a very simple issue but am not clued up enough to work out what I have done.
If someone could offer some advice it would be very much appreciated.
TIA.
Tim
what is your domain name? be sure to replace domainname.com/forum/ with the location of your forum.