This product allows you to designate certain usergroups whose members will have access to the advanced poll voting permission options that you select as active. These advanced options are on a per poll basis, that is, each poll can have its own set of advanced permission settings. The setting from which you can choose are:
Minimum Post Count: Users will be required to have at least the designated number of posts before being able to vote on polls.
Minimum Length Of Membership: Users will be required to have been a member of the forum for at least the designated number of days before being able to vote on polls.
Recent Post Requirement: Users will have to have posted during the last number of designated days before being able to vote on polls.
Reputation Points: Users will be required to have at least the designated number of reputation points before being able to vote on polls.
Infraction Points: Users will be required to have no more than the designated number of infraction points before being able to vote on polls.
User Groups: Users will be required to be a member of at least one of the designated usergroups before being allowed to vote on polls.
As of version 2.0, you now have global settings that will apply to all polls, and can only be overridden by users with access to the advanced options.
A user who has access to these advanced options, will see them when creating/editing a poll as follows:
Updates:
Version 1.0.1:
Minor bug fixes.
Version 1.1:
Product now overrides usergroup and forum permissions to allow members of designated usergroups to vote.
Version 1.2:
When editing polls, entries with 0 as value display as blank.
Version 1.3:
Added setting to allow for selecting managing usergroups who can restrict poll voting by usergroup.
Version 1.4:
Added "Infraction Points" as an advanced poll option.
Version 1.5:
Added the option to require users to reply first to the poll thread before being allowed to vote.
Version 2.0:
Added settings for global options, that can only be overridden by users with access to the per poll advanced options.
Compatibility:
Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.
Backup/Warning:
This product does alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.
As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.
I should have mentioned, all of the text on the new advanced options (the titles and descriptions) is phrased so you can translate, or change it as you see fit. Just look for global phrases that begin with:
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'usergroups ) VALUES ( 523, 0, 0, 0, 0, '4,2,16,15,35,6,5,13,' at line 3 Error Number : 1064 Request Date : Sunday, January 8th 2017 @ 09:06:35 PM Error Date : Sunday, January 8th 2017 @ 09:06:35 PM Script : http://www.manshor.net/forum/poll.php?do=postpoll&t=260571 Referrer : http://www.manshor.net/forum/poll.php?t=260571&polloptions=5 IP Address : 169.255.108.131 Username : ���� ������� Classname : vB_Database_MySQLi MySQL Version : 5.5.52-cll
Stack Trace:
#0 vB_Database->halt() called in [path]/includes/class_core.php on line 1403 #1 vB_Database_MySQLi->execute_query() called in [path]/includes/class_core.php on line 444 #2 vB_Database->query_write() called in [path]/poll.php(339) : eval()'d code on line 26 #3 eval() called in [path]/poll.php on line 339
Another issue, when trying to delete any thread even if it didn't have a poll I get an error message
PHP Code:
Fatal error: Call to a member function query_write() on null in /home/manshor/public_html/forum/includes/class_dm_threadpost.php(1545) : eval()'d code on line 1
Another issue, the system didn't let unregistered users to vote on the poll even if I add unregistered group to the group list that can vote if I disabled it in the usergroup global options (usergoup seetings) and in forum permissions.