View Full Version : Certain number of posts before voting
nymyth
05-13-2003, 11:44 PM
Sup people, what i want is to be able to assign a certain number of posts to be posted before that member is allowed to use our poll function....im using 2.2.9, does anyone have anything like this....please???
Peace
Logician
05-14-2003, 09:36 AM
edit poll.php, find:
if ($action=="pollvote") {
after that add:
if ($bbuserinfo[posts]<X) {show_nopermission();exit;}
Replace X with post number. This will disallow them to vote in polls. If you want them to do nothing with polling (eg not create polls either), put the hack code after:
require("./global.php");
nymyth
05-17-2003, 06:13 PM
I couldnt find:
if ($action=='pollvote'){
did you mean add it after this:
if ($HTTP_POST_VARS['action'] == 'pollvote' OR ($action == 'pollvote' AND $s == $session['dbsessionhash'])) {
Peace
Logician
05-19-2003, 03:43 PM
yep.. different vb version :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.