vForums Support > vForums :: Support :: > How do I use ifnot board id?

How do I use ifnot board id? - Posted By ashkir (ashkir) on 17th Feb 11 at 9:45am
How do I use the ifnot board id?

Code:
 
  1. {if:"{id}"!="AN_ID_HERE"}{total_topics} Topics - {total_posts} Posts{/ifnot:id}
 


So I can modify it to be this:

{if:"{id}"!="general"}{total_topics} Topics - {total_posts} Posts{/ifnot:id}

And have the inside text displayed? The start is the same as the if field, how does the not id get declared?

How do you get the id to work? do you have to type board_boardname or just boardname?

I can't get this to work, seemingly from the current display:

Code:
 
  1. {if:"{id}"=="elishmarazar"}{total_topics} Parts{/if}{if:"{id}"!="elishmarazar"}{total_topics} Topics - {total_posts} Posts{/ifnot:id}
  2.  
 


I want the board Elishmarazar to show "parts" instead of the both topics/posts of what I want every other board to show.

Re: How do I use ifnot board id? - Posted By Ross (admin) on 17th Feb 11 at 3:58pm
I believe it needs the {board_id} variable rather than just {id}. The end tag {/if} is the same as for the first one you had. So:

Code:
 
  1. {if:"{board_id}"=="elishmarazar"}{total_topics} Parts{/if}{if:"{board_id}"!="elishmarazar"}{total_topics} Topics - {total_posts} Posts{/if}