![]() |
Polls only in certain forums
Is there a way to only allow polls in certain forums? I want to be able to turn it off in some forums and leave it on in others.
|
since you already installed advanced templates, you can edit newthread template and disable "submit poll" checkbox according to forumid and usergroupid variables.. ;)
|
Dang! Why didn't I think of that? I have been using your hack for almost everything and that didn't even occur to me. DOHH!!! Dummy me. Thanks for reminding me of that. ;)
|
Quote:
*me runs to find it and install* :) |
Quote:
|
actually, this can be done in the forum permissions section of the control panel. It has to be done per usergroup, but it can be done.
|
Sinan, it worked like a charm. A simple
[[($forumid==38)]] $polloptions [[/($forumid==38)]] took care of my problem. Thanks again. ;) Also, is there a way to do an array for more forums here or would I have to do the "$forumid==38 OR $forumid==41 OR $forumid==112" code? |
Quote:
[[($forumid==38 OR $bbuserinfo[usergroupid]==6)]] $polloptions [[/($forumid==38 OR $bbuserinfo[usergroupid]==6)]] Quote:
|
You're right, as usual. The wife even caught me on that one. I better watch myself with you two around. ;)
By the way, what does this mean? "latter" |
Quote:
BTW, templates are never the solution for denying permissions. All they can do is remove the interface but people can still send the actual data. |
Quote:
|
Quote:
Quote:
1- Only 0.01% people would be able to pass it through by coding a script that can HTTP_POST poll data to your server 2- Even a script that can HTTP_POST poll data will not help them because poll is created only if post is hidden in database and they can not make it hidden even with the script they will code. Besides what if they can? Does it help them to bypass our solution? No! they'll be able to post a poll to a unallowed forum and get a good old BAN in return.. ;) Quote:
you have to do the "$forumid==38 OR $forumid==41 OR $forumid==112" way.. |
Logician, yes it can be turned off per forum per usergroup. You can enable it all over the board for usergroup x but turn it off for that usergroup in forum 3. All you have to do is use the custom settings for the usergroup in that forum.
Amy |
Amy, I originally wanted to turn it off per forum, not per usergroup. ;)
It is a lot easier and faster to do it the template way instead of having to go through each forum and set it. In the beginning, I just wanted to turn it off for all forums except 1. Then, with Logician's reminder, I decided to turn it off for all forums but that one and leave it on only for the Admin board-wide. This way is faster and a heck of a lot easier, especially if I ever wanted to change it for any reason. Thank you, Logician. ;) |
You are correct, Boofo. The template way is much easier. I just felt compelled to point out that it could be done without a hack just in case somebody came along later who didn't have Logician's hack installed.
Of course, I probably would have done it the lazy way with a query in phpmyadmin. ;) Amy |
I thought of that, too, but extra queries is not the way to go, for me, anyway. I have enough of those already. And thanks to Logician, I can't get much lazier than I already am since using his hack. ;)
|
Amy means to run 1 query in phpmyadmin to set usergroup permissions for the relevant forums, not add queries to your forum. :)
|
Oops! Sorry, Amy. My bad. ;)
|
Quote:
|
All times are GMT. The time now is 01:15 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:
|