PDA

View Full Version : Poll Restriction by Postcount


Floris
06 Feb 2003, 15:04
#### Poll Restriction by Postcount ####

---- Huh?: User needs X posts before they can vote on a poll
---- Type: Source code modification (very quick and simple one)
---- Status: Final 1.1 - for vBulletin 2.2.9
---- Author: xiphoid (info@creations.nl) (http://www.creations.nl/)
---- Help: Why? This is too simple :P
---- Why did you make this: It was requested here: http://www.vbulletin.com/forum/showthread.php?threadid=64673 by bromyaur

---- What Changed from 1.0 to 1.1:
* Installer script (code & credits all goto TECK (though changed to my liking))
* Administrator Control Panel Settings
* ACP Setting to turn it ON/OFF
* ACP Setting to set the post limit
* The template is automaticly added to each style set you have
* The Error Template now automaticly shows the (right) set post limit


---- Upgrade instructions are in the attached .zip file (see .txt)

bromyaur
06 Feb 2003, 15:09
thank you very much, you are too kind.....

clicking install

KuraFire
06 Feb 2003, 15:11
hehe :)
:up:

Floris
06 Feb 2003, 15:21
Screenshot 01

Floris
06 Feb 2003, 15:22
Screenshot 02

Floris
06 Feb 2003, 15:23
Screenshot 03

bromyaur
06 Feb 2003, 15:31
Works flawlessly and only took 5 minutes..

thank you much

Martin64
06 Feb 2003, 16:16
Nice. :) I did something similar to this here, but it was just a tiny code change and doesn't give a specific error message (just standard no permission):

http://www.vbulletin.org/forum/showthread.php?s=&threadid=48491

Floris
06 Feb 2003, 16:27
Originally posted by Martin64
Nice. :) I did something similar to this here, but it was just a tiny code change and doesn't give a specific error message (just standard no permission):

http://www.vbulletin.org/forum/showthread.php?s=&threadid=48491

I searched for your hack, but couldn't find it, so wrote my own. It is so simple, but.. oh well :) hehe

N9ne
06 Feb 2003, 19:13
Will this little update make it so:

a use of the ismoderator function:
If the user is a moderator (or supermod and admin), he will see another option on the "add poll" screen. This will be:

Minimum posts required to vote on this poll.

Also, it should be so the thread starter can vote on the poll regardless of his/her post count.

If this isn't in the update (which I doubt it will), maybe you could make an addon for the hack which does so? I'd really appreciate it :D. Thanks.

Dean C
06 Feb 2003, 19:29
Xiphoid i made a version for this if you'd like to see my code - very similar to my other hacks i released today based on postcounts. I thought i'd not release my version as it would conflict with yours :).

- miSt

Floris
06 Feb 2003, 20:03
Update:

The hack has been updated to version 1.1
Now it is like it was requested. I consider this complete.
But ofcourse, feel free to release add-ons by attaching your own code to this thread.

Dean C
07 Feb 2003, 16:54
Btw the link is downloading as a txt file still :p

Floris
07 Feb 2003, 17:41
Originally posted by Mist
Btw the link is downloading as a txt file still :p
What do you mean?
The attachment in the first post is a .zip file which contains the .txt and .php file.

Dean C
07 Feb 2003, 19:44
I can see very well its a zip file but when you click it it opens up the textfile that was there before :)

- miSt

N9ne
07 Feb 2003, 20:55
Does v1.1 make it so the thread starter who posts the poll can vote on the poll regardless of postcount + he can set the min. post count in order for users to vote on poll?

Floris
07 Feb 2003, 21:46
no

vfxtalk
09 Sep 2003, 12:40
THANKS a million for this hack, i have needed something like this for a while :)

Will it work at v2.3.0 & 2.3.2 ??

CHeers mate

Paul

noppid
09 Sep 2003, 12:45
Works on 2.3.0 here just fine.

vfxtalk
09 Sep 2003, 12:55
excellent...thanks alot guys!!

Paul

vfxtalk
11 Sep 2003, 00:30
another little 'tweaking' request ....

How would you make this awesome hack ONLY effect a nominated forum ??

ie: is there a way to make this hack only effect a choosen forum ??

Cheer and beers

Paul

ET240
18 Jun 2006, 18:21
any of this kind support on 3.5.4 ?

SBlueman
31 Jul 2007, 13:39
Does this work for 3.5.4 and above?

SBlueman
01 Aug 2007, 04:56
Does this work for 3.5.4 and above?

Anyone?

SBlueman
07 Aug 2007, 04:24
any of this kind support on 3.5.4 ?

Does this work for 3.5.4 and above?

Anyone?

Still wondering...:confused:

bc3tech
17 Aug 2007, 18:53
Still wondering...:confused:
ditto!