Resource icon

Poll Creation: Mods and Admin Only

EQnoble

Well-known member
EQnoble submitted a new resource:

Poll Creation: Mods and Admin Only - Allows for polls to only be created by Administrators and Moderators.

These edits will make the options for creating a poll only display to admins and mods.

  • Login to your xenforo admin control panel

  • Go to: Appearance -> Templates -> (Select the style you want this to apply to)

  • Edit Template: Thread Create

  • Find:
    Code:
    <h3 class="textHeading">{xen:phrase post_poll}</h3>
    Add this before it:
    Code:
     <xen:if is="{$visitor.is_admin} OR {$visitor.is_moderator}">
    so that it looks like this:
    Code:
    <xen:if is="{$visitor.is_admin} OR...

Read more about this resource...
 
I've added a separate poll forum also which i'd like all users to be able to use.

Code:
 <xen:if is="{$visitor.is_admin} OR {$visitor.is_moderator} OR {$forum.node_id} == 17}">
 
Last edited:
I've added a separate poll forum also which i'd like all users to be able to use.

Do you know what how i'd add to this to allow?

something like?

Code:
 <xen:if is="{$visitor.is_admin} OR {$visitor.is_moderator} OR {$forum.node_id} == 17}">
Heh, that is exactly what you could do to accomplish that
 
Top Bottom