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

Home » FUDforum » How To » The usage of {IF:} in templates
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
The usage of {IF:} in templates [message #33956] Thu, 28 September 2006 19:22 Go to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma:
Senior Member
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 19:30]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Previous Topic: Disabling all e-mail notifications?
Next Topic: new user creation
Goto Forum:
  

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

Current Time: Wed Nov 27 19:28:30 GMT 2024

Total time taken to generate the page: 0.04402 seconds