Announcement

Collapse
No announcement yet.

What Styles are we All using

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

  • What Styles are we All using

    This is a small hack that will show each users current selected style in showthread. For a demo just follow one of my links in my forum (chins & quills) and find your way to a thread.

    Open showthread.php and find:
    Code:
    attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
    add this after it on the same line
    Code:
    ,style.title as styletitle
    find this in showthread.php
    Code:
    LEFT JOIN user ON user.userid=post.userid
    add this after it on the next line
    Code:
    LEFT JOIN style on (user.styleid = style.styleid)
    open up the postbit template and place this where you like
    Code:
    Style: <a href='index.php?styleid=$post[styleid]'>$post[styletitle]</a></smallfont>
    Link it to whatever you want.

  • #2
    cool, hack, I will give it a try

    thx freddie
    snyx
    MSN: [email protected] | MAIL: [email protected] | FOLIO: mholman.com

    Comment


    • #3
      Nice little hack !

      Thx dude

      Comment


      • #4
        hmmm i saw rangersfan on my forum earlier today

        i got a similar code on my forum http://animeboards.com/t21182/s.html

        but can't remember where or who i got this from hehe
        :: 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


        • #5
          whoops kevin made it alot easier than above

          http://vbulletin.com/forum/showthrea...hlight=styleid
          :: 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


          • #6
            works well.
            Thanks.
            eva2000:
            you said is a styleid,but this hack can display a styletitle.

            Comment


            • #7
              Originally posted by ztsky
              works well.
              Thanks.
              eva2000:
              you said is a styleid,but this hack can display a styletitle.
              yeah i just realised that

              i like styleid better since someone may have a very long styletitle and mess with postbit's cell widths
              :: 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


              • #8
                Originally posted by eva2000
                hmmm i saw rangersfan on my forum earlier today

                i got a similar code on my forum http://animeboards.com/t21182/s.html

                but can't remember where or who i got this from hehe
                I forget why I went to your forum...

                Comment


                • #9
                  Originally posted by freddie
                  I forget why I went to your forum...
                  maybe it was regarding this http://vbulletin.com/forum/showthrea...threadid=23042 ?
                  :: 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


                  • #10
                    a suggestion

                    just looked at your page and I have a small suggestion

                    you style hack points back to the main forum page. why not have it point to the current thread so when you click it, the same page is loaded in that style instead of sending you away fromt he thread you were reading.


                    http://www.chins-n-quills.com/forums...9184&styleid=1

                    http://www.chins-n-quills.com/forums...9184&styleid=7

                    Comment


                    • #11
                      You may do that if you wish, I had thought about it but didn't get around to doing it.

                      Comment


                      • #12
                        If you want to do that than link to this:

                        <a href='showthread.php?styleid=$post[styleid]&postid=$post[postid]&s=$session[sessionhash]#post$post[postid]'>$post[styletitle]</a>

                        Comment


                        • #13
                          another show style hack

                          I made a simple hack to show statistics what is the user's choice of the style.
                          At the same time anyone can change the style for the current session by one click .
                          It's here .
                          Sorry, all pages in Russian.
                          But you need not read, just take a look.

                          Comment


                          • #14
                            Thanks, it's working great but my default style isn't listed....just my 2nd stlye shows up.



                            Any ideas on how to have the default style listed? I use a custom style as my default and allow ppl to choose the vBulleting style from their profile.
                            TheGenomeCollective - Home ::: TheGenomeCollective - Forums

                            Comment


                            • #15
                              Hi

                              I am having trouble geting this hack to work since I have upgraded to 2.0.3.

                              I have re-installed the hack?

                              Should this work with this version?

                              Thanks
                              Mark

                              Comment

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