2012-04-28, 05:44 PM
I wanted to know how to add conditions in templates ...
Example
Say I have a Menu which I only want to display to a particular User Group ,
Or say a Signature of a Particular Usergroup should also include a custom text in addition of their signature...
Please dont give me links to Plugins which can do the above examples, I want to know how to add these custom conditions in Templates by my self , if there is a Hook or something to be added ill do it...
I tried the "<?php if = " tags in templates but it does not check the condition at all , is there a way to do it?
Example
Say I have a Menu which I only want to display to a particular User Group ,
Or say a Signature of a Particular Usergroup should also include a custom text in addition of their signature...
Please dont give me links to Plugins which can do the above examples, I want to know how to add these custom conditions in Templates by my self , if there is a Hook or something to be added ill do it...
I tried the "<?php if = " tags in templates but it does not check the condition at all , is there a way to do it?