Announcement

Collapse
No announcement yet.

how to prevent something in certain forums??

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

  • how to prevent something in certain forums??

    hi

    i want to prevent reputation in certain forums in my board

    how to do that please

    i try

    Code:
    <if condition="$forum[forumid] != X"></if>
    but it is for single forum i want to prevent rep icon in multiple forums

    so please can tell me the exact code and how to apply

    thanks

  • #2
    Try this:

    HTML Code:
    <if condition="in_array($forum['forumid'], array(x, y, z))">
    stuff
    </if>
    (Although I would probably just write a plugin to disable it. But, if you don't like writing plugins, then the template edit is the best way to do it.)

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment


    • #3
      Originally posted by Lynne View Post
      Try this:

      HTML Code:
      <if condition="in_array($forum['forumid'], array(x, y, z))">
      stuff
      </if>
      (Although I would probably just write a plugin to disable it. But, if you don't like writing plugins, then the template edit is the best way to do it.)
      thanks lynne for the code

      i prefer template edit

      is that cause any server load if the forum big or not??

      thanks

      Comment

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