PDA

View Full Version : Checking Forum ID from template postbit


toucan42
09-26-2007, 10:02 PM
I am interested in knowing the forum id from within the template postbit in order to create a conditional around the Edit Post button.

<if condition="$thread[forumid]==##">
different edit post code here
<else />
normal edit post button code here
</if>

but it seems my if condition isn't appreciated.

Alternatively is there a way to suppress or change the target of the edit post button on a per forum basis?

Analogpoint
09-27-2007, 03:16 AM
Your condition worked fine for me.

<if condition="$thread[forumid] == 2">
forum 2
<else />
some other forum
</if>