![]() |
Certain Post Count to create Polls
Is there a hack to do this because poll making has went hay wire at my forum and we wanna limit it somehow.
|
I haven't tested this, but it should work:
Run the following query: Code:
INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL,25,'Minimum posts to make a poll?','minpostpoll','0','Minimum number of posts that a user is required before they can post polls. Set this to 0 to disable it.','','3'); In newthread.php find: Code:
if ($permissions['canpostpoll']) { Code:
if ($bbuserinfo[posts] < $minpostpoll){ Code:
<tr> Once you've installed the hack just go to your admin control panel, click vbulletin options, then click "Polls" and set the minimum number of posts to whatever you want. Thats it. |
All times are GMT. The time now is 08:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|