Log in

View Full Version : Polls only in certain forums


Boofo
03-18-2003, 09:02 AM
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.

Logician
03-18-2003, 09:48 AM
since you already installed advanced templates, you can edit newthread template and disable "submit poll" checkbox according to forumid and usergroupid variables.. ;)

Boofo
03-18-2003, 09:53 AM
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. ;)

Chris Gwynne
03-18-2003, 09:59 AM
Today at 11:48 AM Logician said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=368528#post368528)
since you already installed advanced templates, you can edit newthread template and disable "submit poll" checkbox according to forumid and usergroupid variables.. ;)

.... :o sounds like a good hack, YOU? made.

*me runs to find it and install* :)

Logician
03-18-2003, 06:24 PM
Today at 01:59 PM a-drive said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=368534#post368534)


.... :o sounds like a good hack, YOU? made.

*me runs to find it and install* :)
It's not actually the hack requested in this thread. It's moreover a mechanism (kinda way to program your templates) so it can be used in this way too.. :)

amykhar
03-18-2003, 06:27 PM
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.

Boofo
03-18-2003, 06:44 PM
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?

Logician
03-18-2003, 06:50 PM
Today at 10:44 PM Boofo said this in Post #7 (https://vborg.vbsupport.ru/showthread.php?postid=368728#post368728)
Sinan, it worked like a charm. A simple

[[($forumid==38)]]
$polloptions
[[/($forumid==38)]]

took care of my problem. Thanks again. ;)

I say use this:

[[($forumid==38 OR $bbuserinfo[usergroupid]==6)]]
$polloptions
[[/($forumid==38 OR $bbuserinfo[usergroupid]==6)]]



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?
latter

Boofo
03-18-2003, 07:14 PM
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"

filburt1
03-18-2003, 07:15 PM
Today at 03:27 PM amykhar said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=368723#post368723)
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.

What the lady said.

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.

Boofo
03-18-2003, 07:21 PM
Today at 03:15 PM filburt1 said this in Post #10 (https://vborg.vbsupport.ru/showthread.php?postid=368770#post368770)


What the lady said.

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.

If they can't see the polloption, they can't use it. ;)

Logician
03-18-2003, 07:28 PM
Today at 11:15 PM filburt1 said this in Post #10 (https://vborg.vbsupport.ru/showthread.php?postid=368770#post368770)
[B]

What the lady said.

The posted request was not turn polls off per usergroup basis but per forum basis. It can not be done by default vb permissions..

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.
Obviously.. But provided solution will do the trick:
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.. ;)

By the way, what does this mean? "latter"
hehe it means latter is true. That is:
you have to do the "$forumid==38 OR $forumid==41 OR $forumid==112" way..

amykhar
03-18-2003, 08:54 PM
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

Boofo
03-18-2003, 09:15 PM
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. ;)

amykhar
03-18-2003, 09:19 PM
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

Boofo
03-18-2003, 09:46 PM
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. ;)

Erwin
03-18-2003, 09:52 PM
Amy means to run 1 query in phpmyadmin to set usergroup permissions for the relevant forums, not add queries to your forum. :)

Boofo
03-18-2003, 09:55 PM
Oops! Sorry, Amy. My bad. ;)

Logician
03-18-2003, 10:24 PM
Today at 12:54 AM amykhar said this in Post #13 (https://vborg.vbsupport.ru/showthread.php?postid=368826#post368826)
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.

You are absolutely right, my apologies.. :)