Quote:
Originally Posted by Frosty
<if condition="in_array($foruminfo['forumid'], array(X))">
<else />
<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />
</if>
Replace X with the id of your forum where you don't want the buttons showed...
|
Frosty's way is actually good for blocking it in one or more forums... You can replace X with multiple forumids like:
2
or
2, 3, 4
And that would disable in forumids 2, 3, and 4.
Code:
if condition="in_array($foruminfo['forumid'], array(2, 3, 4))">
If you really only needed to block in 1 forum the slightly more efficient code (and probably easier to understand) is:
Code:
<if condition="$foruminfo['forumid'] == X">
<else />
<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />
</if>
and even one better would be to remove the <else /> and use the condition "if NOT equal to"
Code:
<if condition="$foruminfo['forumid'] != X">
<input type="submit" class="button" name="sbutton" id="{$editorid}_save" value="$vbphrase[submit_new_thread]" accesskey="s" tabindex="1" />
<input type="submit" class="button" name="preview" value="$vbphrase[preview_post]" accesskey="r" tabindex="1" />
</if>