Announcement

Collapse
No announcement yet.

How do I use conditionals with custom user profile fields?

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

  • How do I use conditionals with custom user profile fields?

    Basically, I want to display one header if the user has chosen option y in field x and another if the user has chosen option z.

    How do I go about doing that?

  • #2
    Originally posted by Martin CX
    Basically, I want to display one header if the user has chosen option y in field x and another if the user has chosen option z.

    How do I go about doing that?
    It is possible isn't it?

    It would really make changing the layout to stifle the voices of the very vocal minorities easy -- and creating different styles for all the different combinations of control panels, shoutboxes, thread-list windows and so on would be hell for both the users and the admins.

    Comment


    • #3
      Originally posted by Martin CX
      It is possible isn't it?

      It would really make changing the layout to stifle the voices of the very vocal minorities easy -- and creating different styles for all the different combinations of control panels, shoutboxes, thread-list windows and so on would be hell for both the users and the admins.
      Maybe I'm wrong here but couldn't you just create a child style under your current style (would inherit all of the templates uder your current style) and then just modify the header?
      sigpic
      Nation of Blue - Kentucky Wildcats Sports


      Some CMS Goodness: Add Avatar to Article

      Comment


      • #4
        Originally posted by reefland
        Maybe I'm wrong here but couldn't you just create a child style under your current style (would inherit all of the templates uder your current style) and then just modify the header?
        Hmmm... I want people to be able to decide whether:

        - they want the welcome panel on top, to the left, or to the right
        - the shoutbox off, to the left, or to the right
        - the thread window on top, at the bottom or to the left

        (and probably lots more later on)

        Can I do that without having to create nine different child styles (one for each possible combination)?

        Comment


        • #5
          Originally posted by Martin CX
          Hmmm... I want people to be able to decide whether:

          - they want the welcome panel on top, to the left, or to the right
          - the shoutbox off, to the left, or to the right
          - the thread window on top, at the bottom or to the left

          (and probably lots more later on)

          Can I do that without having to create nine different child styles (one for each possible combination)?
          I see what your getting at now. Me don't know a simple way to go about that...sorry.

          Scott Z.
          sigpic
          Nation of Blue - Kentucky Wildcats Sports


          Some CMS Goodness: Add Avatar to Article

          Comment


          • #6
            Don't be sorry. I don't know either. Thanks for trying to help.

            Comment


            • #7
              Originally posted by Martin CX
              Basically, I want to display one header if the user has chosen option y in field x and another if the user has chosen option z.

              How do I go about doing that?

              If you go to this link then you see a template mod I wrote using conditionals and custom userfields

              http://www.vbulletintemplates.com/mo...?threadid=4113


              Good luck

              Comment


              • #8
                Originally posted by SmartGnome
                Good luck
                Your mod looks very interesting. I'll look into it. Thank you.

                Comment


                • #9
                  Originally posted by Martin CX
                  Basically, I want to display one header if the user has chosen option y in field x and another if the user has chosen option z.

                  How do I go about doing that?
                  <if condition="$post[fieldx] == 'value'">blah</if>
                  To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson

                  Comment

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