Add banners depending on profile field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vitesse
    Member
    • Jun 2005
    • 36
    • 3.0.7

    Add banners depending on profile field

    Hi there

    I would like to add some banner links at the bottom of my forum but still have them relevant to the user. Our site is a car modiying site so I'm thinking of adding a single selection menu profile field with all the car manufacturers listed...i.e ford, MG-Rover, Opel etc etc, but would like to display maybe 5 image links in the forumhome template (under the who's online box but have different links depending on what selection the user has made for their car make in the profile so i get some Ford links if they selected Ford, Rover for Rover etc..you get the idea

    Is this possible to do as i'm unsure of how to go about it , any help would really be appreciated.

    Thanks
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    That is possible. You can use conditionals like this in the templates:

    Code:
    <if condition="$bbuserinfo[[color=red]fieldX[/color]] == 'Opel'">
    	BANNER CODE FOR OPEL HERE
    </if>
    Where fieldX is the field indentifier of the profile field as shown in the:

    Admin CP -> User Profile Fields -> User Profile Field Manager

    Comment

    • Vitesse
      Member
      • Jun 2005
      • 36
      • 3.0.7

      #3
      Thankyou ever so much for that....Works perfectly just wanted to make my site a little more personalised for visitors and this should to the trick

      Thanks again, greatly appreciated

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...