vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: vForums :: Support :: How do I use ifnot board id? - View Topic
Topic Rating: *****
Printable View
ashkir
Full Member
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 34
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
How do I use ifnot board id? (17th Feb 11 at 9:45am UTC)
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.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: How do I use ifnot board id? (17th Feb 11 at 3:58pm UTC)
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}
 



Image
 Printable View

All times are GMT+0 :: The current time is 1:03pm
Page generated in 1.7294 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums