Announcement

Collapse
No announcement yet.

Alphabetical Sort Default By Forum

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

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

  • #2
    Would take some hacking.

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

    Comment


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


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


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

          Many thanks...

          Comment


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


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


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

                Comment


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


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


                    • #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...
                      Phillip Phee
                      New Member
                      Last edited by Phillip Phee; Tue 2 Oct '01, 9:44am.

                      Comment


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


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

                          Comment


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


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