display/identify styleid a member is using?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • George L
    Former vBulletin Support
    • May 2000
    • 32996
    • 3.8.x

    display/identify styleid a member is using?

    How would i go about being able to display the styleid a member is using in the postbit template ?
    :: Always Back Up Forum Database + Attachments BEFORE upgrading !
    :: Nginx SPDY SSL - World Flags Demo [video results]
    :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]
  • tubedogg
    Senior Member
    • Feb 2001
    • 13602

    #2
    I think $post[styleid] would do it.

    Comment

    • George L
      Former vBulletin Support
      • May 2000
      • 32996
      • 3.8.x

      #3
      thanks that worked
      :: Always Back Up Forum Database + Attachments BEFORE upgrading !
      :: Nginx SPDY SSL - World Flags Demo [video results]
      :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

      Comment

      • tubedogg
        Senior Member
        • Feb 2001
        • 13602

        #4
        No problem.

        Comment

        • Black Tiger
          Senior Member
          • Mar 2001
          • 668

          #5
          Is there also such easy way to display the stylename?
          Like $post [stylename] or something like that?
          Greetings, Black Tiger

          Comment

          • Black Tiger
            Senior Member
            • Mar 2001
            • 668

            #6
            I now put $post[styleid] in there, but there seems to be a small problem.

            We've got 3 styles on our board.
            1.) Default
            2.) style1
            3.) style3

            But in the postbit of the users, Numbers appear from 0 to 4. From 0-4=5 but we only have 3 styles. Any idea how this is possible or how to fix this?
            Greetings, Black Tiger

            Comment

            • Steve Machol
              Former Customer Support Manager
              • Jul 2000
              • 154488

              #7
              That's because a new consecutive number is assigned whenever a new style is added. So if you've deleted a style, the old numbers will no longer appear. Not sure how to fix this since it's not really a bug. You'd probably need to use phpMyAdmin to modify your database. I'd be careful though since I'm not sure if this would have any bad repercussions.
              Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
              Change CKEditor Colors to Match Style (for 4.1.4 and above)

              Steve Machol Photography


              Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


              Comment

              • Black Tiger
                Senior Member
                • Mar 2001
                • 668

                #8
                Thanks, that could be the issue indeed. I added 2 test styles which where later deleted.
                I'll have a look with phpmyAdmin if I can find anything.
                Greetings, Black Tiger

                Comment

                • Black Tiger
                  Senior Member
                  • Mar 2001
                  • 668

                  #9
                  Hmmz... something is not good, maybe bug?
                  SQL-query:

                  UPDATE style SET Ttyleid = '2', replacementsetid = '2', templatesetid = '1', title = 'Satfun', userselect = '1' WHERE styleid = '3'

                  MySQL said: Unknown column 'Ttyleid' in 'field list'

                  Typo here: Ttyleid instead of Styleid.

                  I corrected it manually now, but maybe this is a bug?
                  Last edited by Black Tiger; Tue 6 Nov '01, 4:31pm.
                  Greetings, Black Tiger

                  Comment

                  • tubedogg
                    Senior Member
                    • Feb 2001
                    • 13602

                    #10
                    Where is that query?

                    Comment

                    • Chen
                      Senior Member
                      • Jun 2001
                      • 8388

                      #11
                      That is not a query from vBulletin as the styleid is never changed (through vB).
                      Chen Avinadav
                      Better to remain silent and be thought a fool than to speak out and remove all doubt.

                      גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

                      Comment

                      • Black Tiger
                        Senior Member
                        • Mar 2001
                        • 668

                        #12
                        Correct, like the posting said I'd go try with phpmyadmin so it's a phpmyadmin query.

                        I took phpmyadmin, and clicked on browse at the "styleid" and then on "edit" next to the styleid I wanted to change.

                        The I clicked on "save" and this command including the typo came out.

                        Thinking phpmyadmin is just reading what's in the database, I thought the Ttyle in stead of Style was a table typo.
                        I ofcourse can also be wrong.
                        Greetings, Black Tiger

                        Comment

                        • Sufian
                          Member
                          • Oct 2001
                          • 40

                          #13
                          Originally posted by Black Tiger
                          Is there also such easy way to display the stylename?
                          Like $post [stylename] or something like that?
                          Yes, is this possible?
                          Admin @ HardwareGeeks.com

                          Comment

                          • Zachery
                            Former vBulletin Support
                            • Jul 2002
                            • 59097

                            #14
                            you could write a condition

                            <if condition"$post[styleid] == '1'">Style Default<else />

                            so on and so forth... i belive

                            Comment

                            Related Topics

                            Collapse

                            Working...