Announcement

Collapse
No announcement yet.

Removing new thread button

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Removing new thread button

    How do I do this? Whats the code to remove it? But I only want to remove it from 2 of my forums and not the others. Thanks

  • #2
    Hello,

    Thank you for contacting vBulletin Support.

    This is untested, and I am not sure if it works for showthread. But here goes .. I believe this is the template conditional you can use for showthread template to not show the button.

    Find the code in showthread template first that makes the new thread button. Around it add this conditional:
    Code:
    <if condition="!in_array($forumid, array(X,Y))">Show newthread button if the forumid is not x or y</if>
    This basically means that if the forum id does match x or y, it will not show the new thread button. Don't forget to replace x and y with the two forum id you wish to exclude.

    I hope this is what you're looking for, and if you require any further help just let me know.


    All the best,

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X