Announcement

Collapse
No announcement yet.

How do I show skin selection in postbit?

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

  • 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!

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

    Comment


    • #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


      • #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


        • #5
          Thanks for your help ...
          Originally posted by MoMan View Post
          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


          • #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


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

              http://www.vbulletin.org/forum/showthread.php?p=1137190
              http://www.vbulletin.org/forum/showthread.php?t=133805

              Comment


              • #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


                • #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...
                  X