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
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 19:22 Go to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
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

Re: The usage of {IF:} in templates [message #33957 is a reply to message #33956] Thu, 28 September 2006 19:41 Go to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
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


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

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

Current Time: Sat Oct 05 03:19:28 GMT 2024

Total time taken to generate the page: 0.03229 seconds