Alphabetical Sort Default By Forum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Phillip Phee
    New Member
    • Sep 2001
    • 10

    Alphabetical Sort Default By Forum

    How would one go about setting specific forums to display alphabetically by default? I have some forums in which the vbulleitn standard of the most recent post at the top make sense, but others that are more along the lines of archives, and alphabetical would be the most logical for them.

    Many thanks for the help.
  • tubedogg
    Senior Member
    • Feb 2001
    • 13602

    #2
    Would take some hacking.

    Please enter your license information in your profile. See the link in my sig for more info. Thanks!

    Comment

    • Phillip Phee
      New Member
      • Sep 2001
      • 10

      #3
      As requested, customer info has been added to profile. Next, just how much hacking are we talking? I can't afford any degradation in speed or reliability.

      Thanks again for your time and assistance.

      Comment

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

        #4
        Phillip,

        Your license info didn't take. You need to enter both your vB license and customer password into your user profile.

        To find out about the hacking, you really should ask in the Hacks Request forum.
        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

        • Phillip Phee
          New Member
          • Sep 2001
          • 10

          #5
          I redid the username/pass, I will submit a post in the hack forum.

          Many thanks...

          Comment

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

            #6
            Yep - it took this time. Thanks!
            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

            • Chen
              Senior Member
              • Jun 2001
              • 8388

              #7
              Couldn't find your thread in the Requests forum, so I guess I'll post this here.

              In forumdisplay.php, add this code:
              PHP Code:
              if ($forumid=='9')
                
              $sortfield='title'
              right before this:
              PHP Code:
              $sort[$sortfield]='selected'
              And change 9 to the ID of the forum you'd like to apply this to.
              Chen Avinadav
              Better to remain silent and be thought a fool than to speak out and remove all doubt.

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

              Comment

              • Phillip Phee
                New Member
                • Sep 2001
                • 10

                #8
                Muchas Gracias to you FireFly, I'll try it tonight and let you know the turn out.

                Comment

                • Phillip Phee
                  New Member
                  • Sep 2001
                  • 10

                  #9
                  FireFly,

                  If it is not too much to ask, can you tell me how to structure the same type of command for multiple forums? I have about 10 that I would like to apply that on.

                  Thanks again...

                  Comment

                  • Chen
                    Senior Member
                    • Jun 2001
                    • 8388

                    #10
                    Use this code:
                    PHP Code:
                    if ($forumid=='9' or $forumid=='10' or $forumid=='14' or $forumid=='3')
                      
                    $sortfield='title'
                    Got it?
                    Chen Avinadav
                    Better to remain silent and be thought a fool than to speak out and remove all doubt.

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

                    Comment

                    • Phillip Phee
                      New Member
                      • Sep 2001
                      • 10

                      #11
                      Yup, I got it. However I have one last question, is there a way to have it sort A-Z rather than Z-A as it is currently? Or am I doing somthing wrong?

                      Many Thanks...
                      Last edited by Phillip Phee; Tue 2 Oct '01, 8:44am.

                      Comment

                      • Chen
                        Senior Member
                        • Jun 2001
                        • 8388

                        #12
                        Sorry, didn't see your last post until now.

                        Instead of:
                        PHP Code:
                        if ($forumid=='9' or $forumid=='10' or $forumid=='14' or $forumid=='3')
                          
                        $sortfield='title'
                        Use this:
                        PHP Code:
                        if ($forumid=='9' or $forumid=='10' or $forumid=='14' or $forumid=='3') {
                          
                        $sortfield='title';
                          
                        $sqlsortorder='';
                          
                        $order['asc']='selected';

                        I think that should work.
                        Chen Avinadav
                        Better to remain silent and be thought a fool than to speak out and remove all doubt.

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

                        Comment

                        • Phillip Phee
                          New Member
                          • Sep 2001
                          • 10

                          #13
                          Thanks again, I am forever in your debt...

                          Comment

                          • Phillip Phee
                            New Member
                            • Sep 2001
                            • 10

                            #14
                            Status Update

                            Finished the changes this AM, it works like a charm. Thank you again for you help Chen, "big ups" to you...

                            Comment

                            • edpak
                              Member
                              • Jan 2001
                              • 93

                              #15
                              Thanks FireFly... Been looking for this bit of code for awhile...

                              Comment

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