MyBB Hacks

Full Version: Template Conditionals Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys. I have installed the Template Conditionals plugin and I'm willing to check for the user's profile_field...
How can I do it?

Thank you very much and congratulations for this great community and plugins.
In which page/template?
Header Templates>header_welcomeblock_member
Something like this:

PHP Code:
<if CODE HERE then>
<a href="#">CODE</a>
<else>
</if>

Try this:
Example for FID 3 - Sex:

Code:
<if $mybb->user['fid3'] == 'Male' then>
Whatever here should be displayed for Male only.
<else>
Whatever here should be displayed for not Male.
</if>

Thank you. That solved my problem. Just changed the fid to fit my needs Smile
Glad you've solved the problem, Skiilz Smile
Reference URL's