Announcement

Collapse
No announcement yet.

Display forum elements dependent on profile fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Display forum elements dependent on profile fields

    I've added a little box to my forums (I put it into the navbar template) and since I'm sure not all of my users will find it useful, I want to give them the possibilty to turn it off.
    I already made a profile field for this.

    Now, how do I make the display of the box dependent on the profile field?

    I know how to do it for the postbit, but how do I do this for the navbar?
    Is this even possible?

    I assume it's similar to the way you add it to the postbit.
    PHP Code:
    <if condition="$post['field12']==Yes"
    *Insert text here* :)

  • #2
    There's a template just for the navbar, it should work with the same code there?

    Comment


    • #3
      Nope it doesn't.

      As <if condition="$post['field12']==Yes"> already indicates, this is just for the postbit.

      I need it for the navbar
      *Insert text here* :)

      Comment


      • #4
        Sorry, I didn't read nearly carefully enough!

        Comment

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