FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » The usage of {IF:} in templates
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
The usage of {IF:} in templates [message #33956] Thu, 28 September 2006 15:22 Go to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
I want to use the template code {IF:} to do something like this:

{IF: ($obj->user_id="1")} Blah {ENDIF}


However, the above does not work as intended

Perhaps I cannot use the array thingy within the {IF:} and have to use {DEF:} first to define the grab from the array as a regular variable?


IE - If the user ID of the poster of a message is a special number I wish to output something different.


If anyone have any hints, that would be swell.


[Updated on: Thu, 28 September 2006 15:30]

Report message to a moderator

Re: The usage of {IF:} in templates [message #33957 is a reply to message #33956] Thu, 28 September 2006 15:41 Go to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
Umm, i seem to have forgotten that fancy extra = thingy, duh. How silly of me, that is what you get when a chef tries to code.

Got it working now, sorry to have bothered anyone


Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Disabling all e-mail notifications?
Next Topic: new user creation
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Oct 22 17:15:46 EDT 2017

Total time taken to generate the page: 0.00636 seconds