Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Template Conditionals Help
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #1
Template Conditionals Help
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.

[Image: 468x602b.png]
11-16-2010 03:53 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Template Conditionals Help
In which page/template?

11-16-2010 04:03 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #3
RE: Template Conditionals Help
Header Templates>header_welcomeblock_member
Something like this:

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


[Image: 468x602b.png]
(This post was last modified: 11-16-2010 04:55 AM by Skiilz.)
11-16-2010 04:47 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: Template Conditionals Help
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>


11-16-2010 04:54 AM
Find all posts by this user Quote this message in a reply
Skiilz Offline
Member
***
Posts: 198
Joined: Nov 2010
Post: #5
RE: Template Conditionals Help
Thank you. That solved my problem. Just changed the fid to fit my needs Smile

[Image: 468x602b.png]
(This post was last modified: 11-16-2010 05:09 AM by Skiilz.)
11-16-2010 05:09 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #6
RE: Template Conditionals Help
Glad you've solved the problem, Skiilz Smile

11-16-2010 05:11 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: