Announcement

Collapse
No announcement yet.

display/identify styleid a member is using?

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

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

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

    Comment


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


      • #4
        No problem.

        Comment


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

          Comment


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


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


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


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


                  • #10
                    Where is that query?

                    Comment


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


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


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


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