ascending and descending threads

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pagefault
    New Member
    • Mar 2001
    • 23

    ascending and descending threads

    Is it possible to sort one thread in descending order and all other threads by ascending order?

    In the admin console you can only choose one way for all threads, but I want to change a special forum the other way. Is it possible with templates?
  • Mike Sullivan
    Former vBulletin Developer
    • Apr 2000
    • 13327
    • 3.6.x

    #2
    No, you'll have to hack it to change the default case.

    Comment

    • claytonp
      Member
      • Oct 2001
      • 33

      #3
      Hello,

      I would like ALL of my forum threads to be in ascending order by default.

      Can you please tell me how this can be done ?


      Regards,

      Clayton.
      Regards,

      Clayton

      Comment

      • Chen
        Senior Member
        • Jun 2001
        • 8388

        #4
        In your Admin CP => Change Options. Look under "Thread display options", it should be there somewhere.

        Also can you please enter your license information in your profile? See my sig for more info. Thanks!
        Chen Avinadav
        Better to remain silent and be thought a fool than to speak out and remove all doubt.

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

        Comment

        • claytonp
          Member
          • Oct 2001
          • 33

          #5
          Hello,

          Many thanks for your reply.

          However, I have already checked the "Thread Display options" and the only sort field is "Order of posts within a thread" - which sorts the posts and not the threads themselves. Unfortunately, I have to keep on clicking the "ascending" box each time I visit (or refresh) the thread list.

          With regards to my profile, when you say licensing information, are you referring to my ICQ number ?? If so, what should I do as I am new to this.


          Regards,

          Clayton
          Regards,

          Clayton

          Comment

          • Chen
            Senior Member
            • Jun 2001
            • 8388

            #6
            Sorry, I thought you were referring to the posts inside a thread.

            In forumdisplay.php, add this code:
            PHP Code:
            if ($sortorder="" or !isset($sortorder))
              
            $sortorder="asc"
            right after this code:
            PHP Code:
            // complete form fields on page
            $daysprunesel[$daysprune]='selected'
            What you need to enter in your profile is your vBulletin license number, and password.
            When you purchased vBulletin you got an e-mail, with a number and a password, that you use to enter the members area.
            You need to enter both the number and the password in your profile, here. (at the bottom)
            Chen Avinadav
            Better to remain silent and be thought a fool than to speak out and remove all doubt.

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

            Comment

            • claytonp
              Member
              • Oct 2001
              • 33

              #7
              Hello,

              Many thanks for your reply - I shall try this later on.

              With regards to the profile, I have now completed the customer number and password, however when I submitted the modifications, it blanked out the password box. Is this right ??

              I would have expected something like ****** in this field.


              Many thanks for all your help.


              Regards,

              Clayton.
              Regards,

              Clayton

              Comment

              • Chen
                Senior Member
                • Jun 2001
                • 8388

                #8
                Originally posted by claytonp
                With regards to the profile, I have now completed the customer number and password, however when I submitted the modifications, it blanked out the password box. Is this right ??
                Yup, that's ok. Thanks!
                Chen Avinadav
                Better to remain silent and be thought a fool than to speak out and remove all doubt.

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

                Comment

                • claytonp
                  Member
                  • Oct 2001
                  • 33

                  #9
                  Hello,

                  Unfortunately, this did not work:


                  // complete form fields on page
                  $daysprunesel[$daysprune]='selected';
                  if ($sortorder="" or !isset($sortorder))
                  $sortorder="asc";

                  // look at sorting options:
                  if ($sortorder!='asc') {
                  $sqlsortorder='DESC';
                  $order['desc']='selected';
                  } else {
                  $sqlsortorder='';
                  $order['asc']='selected';

                  I thought it may have been the if statement, however I also tested this by commenting out this if statement, but it still did not work.

                  Regards,

                  Clayton
                  Regards,

                  Clayton

                  Comment

                  • Chen
                    Senior Member
                    • Jun 2001
                    • 8388

                    #10
                    Damnit, sorry about that.

                    Use this code:
                    Code:
                    if ($sortorder=[color=red]=[/color]"" or !isset($sortorder)) {
                      $sortorder="asc";
                    }
                    Chen Avinadav
                    Better to remain silent and be thought a fool than to speak out and remove all doubt.

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

                    Comment

                    • claytonp
                      Member
                      • Oct 2001
                      • 33

                      #11
                      Hello,

                      Great stuff, it works !

                      Many thanks for all your help - I didn't expect replies so quickly !



                      Regards,

                      Clayton
                      Regards,

                      Clayton

                      Comment

                      • Midoria
                        New Member
                        • Oct 2007
                        • 8
                        • 3.6.x

                        #12
                        Originally posted by claytonp
                        However, I have already checked the "Thread Display options" and the only sort field is "Order of posts within a thread" - which sorts the posts and not the threads themselves. Unfortunately, I have to keep on clicking the "ascending" box each time I visit (or refresh) the thread list.
                        I'm actually trying to sort the posts so that it's in descending order (newer posts at the bottom), but when I go to the "Thread Display Options" in the Admin CP I don't have an option to sort posts. I CAN however sort theads. Anyone? Help!

                        Comment

                        • Jose Amaral Rego
                          Senior Member
                          • Feb 2005
                          • 11058
                          • 1.1.x

                          #13
                          Originally posted by Midoria
                          I'm actually trying to sort the posts so that it's in descending order (newer posts at the bottom), but when I go to the "Thread Display Options" in the Admin CP I don't have an option to sort posts. I CAN however sort theads. Anyone? Help!
                          You might want to stick with vBulletin version forum that you have and not post in older versions, as it may confure other members that do have these older version running on their site.

                          A choice to customize how you want to read a thread.
                          User CP -> Edit Options -> Thread Display Options -> Thread Display Mode

                          Here you can choose the display mode for threads. For a full explanation of the modes, please view this help page.
                          New registrants to your forum
                          Admin CP -> vBulletin Options -> vBulletin Options -> User Registration Options -> Default Registration Options -> Options -> Thread Display Mode: [Linear - Oldest First]

                          Existing users
                          Admin CP -> Maintenance -> Execute SQL Query -> Automatic Query{drop down menu}: [Post - Oldest First]

                          To run queries you first need to give yourself permission to run queries in the Admin CP. To do this, edit this section of config.php:

                          // ****** USERS WITH QUERY RUNNING PERMISSIONS ******
                          // The users specified here will be allowed to run queries from the control panel.
                          // See the above entries for more information on the format.
                          // Please note that the ability to run queries is quite powerful. You may wish
                          // to remove all user IDs from this list for security reasons.
                          $canrunqueries = 'x';
                          ...with x being your userid number.

                          Comment

                          • Midoria
                            New Member
                            • Oct 2007
                            • 8
                            • 3.6.x

                            #14
                            Thank you!

                            Comment

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