How do I show skin selection in postbit?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xyabber
    Senior Member
    • Dec 2004
    • 219

    How do I show skin selection in postbit?

    How do I show user's skin selection in postbit?

    I tried the following but it just shows my selection for everybody, not theirs. :P

    Code:
    <if condition="$bbuserinfo['styleid'] == '1'">
     Skin: Mint
    </if>
    <if condition="$bbuserinfo['styleid'] == '11'">
     Skin: Classic
    </if>
    <if condition="$bbuserinfo['styleid'] == '12'">
     Skin: Dark
    </if>
    Thanks in advance!
  • Xyabber
    Senior Member
    • Dec 2004
    • 219

    #2
    Any help here would be really appreciated. Thanks in advance..

    Comment

    • MoMan
      Senior Member
      • Oct 2005
      • 345
      • 3.8.x

      #3
      Use $userinfo. $bbuserinfo is the array of values for YOU only
      Adam

      Admin of PentaxForums.com, premiere photography forum for Pentax users (Big-Board).

      Comment

      • MoMan
        Senior Member
        • Oct 2005
        • 345
        • 3.8.x

        #4
        Also note that with the implementation above, it'll display their default skin choice, not their current skin.
        Adam

        Admin of PentaxForums.com, premiere photography forum for Pentax users (Big-Board).

        Comment

        • Xyabber
          Senior Member
          • Dec 2004
          • 219

          #5
          Thanks for your help ...
          Originally posted by MoMan
          Also note that with the implementation above, it'll display their default skin choice, not their current skin.
          Why is this? Is there a way to display current skin?

          Comment

          • MoMan
            Senior Member
            • Oct 2005
            • 345
            • 3.8.x

            #6
            AFAIK current skin selection is cookie-based, so you'd have to check the cookie. I don't know how exactly to do that- I suppose it would be worth searching the web if you'd like to pursue it.
            Adam

            Admin of PentaxForums.com, premiere photography forum for Pentax users (Big-Board).

            Comment

            • Xyabber
              Senior Member
              • Dec 2004
              • 219

              #7
              Figured it out.
              To do this, you need:


              Comment

              • MoMan
                Senior Member
                • Oct 2005
                • 345
                • 3.8.x

                #8
                Those look handy. I use the mobile skin on my site as well- guess I could have it display if a post was made from a mobile device (although the mobile skin system already includes this information within the post itself).
                Adam

                Admin of PentaxForums.com, premiere photography forum for Pentax users (Big-Board).

                Comment

                • Xyabber
                  Senior Member
                  • Dec 2004
                  • 219

                  #9
                  I recall one of the mobile skin threads on .org telling you how to display mobile info under a user's post .... I did it for a bit with my last mobile skin and it showed mobile phone info too.

                  Comment

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