vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Polls only in certain forums (https://vborg.vbsupport.ru/showthread.php?t=50382)

Boofo 03-18-2003 09:02 AM

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.

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

Quote:

Today at 11:48 AM Logician said this in Post #2
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

Quote:

Today at 01:59 PM a-drive said this in Post #4


.... :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

Quote:

Today at 10:44 PM Boofo said this in Post #7
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)]]



Quote:

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

Quote:

Today at 03:27 PM amykhar said this in Post #6
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.


All times are GMT. The time now is 10:16 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
  • Page Generation 0.01190 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete