+ Reply to Thread
Results 1 to 10 of 10

Thread: Sorting Threads Default...

  1. #1
    Member edpak is on a distinguished road
    Join Date
    Jan 2001
    Location
    Ontario, Canada
    Posts
    93
    I've been scouring all the templateds for the past few hours and I'll be damned if I can find the template that allows you to change the default from this:

    <select name="sortorder">
    <option value="asc" >ascending</option>
    <option value="desc" selected>descending</option>
    </select>

    <b>To This:

    <select name="sortorder">
    <option value="asc" selected>ascending</option>
    <option value="desc" >descending</option>
    </select>

    Can anybody please advise me where to go and locate the correct template or file???...

    I would also like to change the default for "sorting titles" from "Last Post Time" to "Thread Title"...
    Last edited by edpak; Fri 16th Feb '01 at 3:32pm.
    Ed (newbie Cannuck)
    TalkStox.com

  2. #2
    Senior Member Robert Basil is on a distinguished road Robert Basil's Avatar
    Join Date
    Sep 2000
    Location
    Chandler, AZ 85225
    Age
    43
    Posts
    231
    Originally posted by edpak
    I've been scouring all the templateds for the past few hours and I'll be damned if I can find the template that allows you to change the default from this:

    <select name="sortorder">
    <option value="asc" >ascending</option>
    <option value="desc" selected>descending</option>
    </select>

    <b>To This:

    <select name="sortorder">
    <option value="asc" selected>ascending</option>
    <option value="desc" >descending</option>
    </select>

    Can anybody please advise me where to go and locate the correct template or file???...

    Ed:

    Template:

    forumdisplay_threadslist


    Look for this text:

    <select name="sortorder">
    <option value="asc" $order[asc]>ascending</option>
    <option value="desc" $order[desc]>descending</option>
    </select>
    Robert Basil
    Professional forum administrator.
    VB.com Member #1,157 (September, 2000)
    VB.org Member #404 (October, 2001)

  3. #3
    Member edpak is on a distinguished road
    Join Date
    Jan 2001
    Location
    Ontario, Canada
    Posts
    93
    I know exactly where it is.... LOL...

    Then what???
    Ed (newbie Cannuck)
    TalkStox.com

  4. #4
    vBulletin Team Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke's Avatar
    Join Date
    Aug 2000
    Location
    So. California
    Age
    38
    Posts
    34,676
    Blog Entries
    1
    It changes depending on the users current selection. This is controlled in the code.
    Wayne Luke
    Get started with your own social network.
    Purchase and download vBulletin today.
    vBCodex (Running vB 4.0 Suite) - Take your vBulletin Community to the next level. Modification tips, tricks and support.

  5. #5
    Member edpak is on a distinguished road
    Join Date
    Jan 2001
    Location
    Ontario, Canada
    Posts
    93
    Wayne...

    Do you know which file one can go to to change the code... It would be very simple to do If I knew which file it was sitting in...

    I need this change because of the nature of my site... (ton's of corporate names) and we like them in alphabetical order...

    Easiest solution for me would be to have the page's default into an ascending order and by thread title's.. Would save a lot of repetitious threads and give the site some order...
    Ed (newbie Cannuck)
    TalkStox.com

  6. #6
    vBulletin Developer Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham's Avatar
    Join Date
    May 2000
    Location
    California
    Age
    35
    Posts
    13,941
    Blog Entries
    16
    forumdisplay.php
    vBulletin Developer since Dec 2000

  7. #7
    Member edpak is on a distinguished road
    Join Date
    Jan 2001
    Location
    Ontario, Canada
    Posts
    93
    Freddie... Thank You sir and one last question if you don't mind...

    I take it this is the area that I have to change from this...

    >>>switch ($sortfield) {
    case 'title':
    case 'lastpost':
    case 'replycount':
    case 'views':
    case 'postusername':
    case 'voteavg':
    break;

    default:
    $sortfield='lastpost';
    <<<

    To this....

    >>>switch ($sortfield) {
    case 'title':
    case 'lastpost':
    case 'replycount':
    case 'views':
    case 'postusername':
    case 'voteavg':
    break;

    default:
    $sortfield='title';
    <<<
    Ed (newbie Cannuck)
    TalkStox.com

  8. #8
    vBulletin Developer Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham is just really nice Freddie Bingham's Avatar
    Join Date
    May 2000
    Location
    California
    Age
    35
    Posts
    13,941
    Blog Entries
    16
    That would default the lists to be sorted by title.
    vBulletin Developer since Dec 2000

  9. #9
    Member edpak is on a distinguished road
    Join Date
    Jan 2001
    Location
    Ontario, Canada
    Posts
    93
    Hot Damn I'm getting good at guessing this stuff out...

    Even at 50 the friggin brain cells still keep on ticking...


    ThankYou Sir...
    Ed (newbie Cannuck)
    TalkStox.com

  10. #10
    Member edpak is on a distinguished road
    Join Date
    Jan 2001
    Location
    Ontario, Canada
    Posts
    93
    Oh... OH...

    Methinks I jumped for joy a tad to soon...

    The Ascending/Descending default has got me screwed up...

    I have no idea as how to change this (and I'm assuming I'm in the right spot)...

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

    Please advise..
    Ed (newbie Cannuck)
    TalkStox.com

+ Reply to Thread

Similar Threads

  1. Change default sorting of memberlist php
    By boatdesign in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 2
    Last Post: Wed 11th Feb '04, 8:35pm
  2. How do I set the default sorting in Whos Online by time?
    By Dream in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 0
    Last Post: Mon 29th Sep '03, 5:41pm
  3. Sorting Threads
    By tribedude in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 1
    Last Post: Mon 3rd Jun '02, 5:11pm
  4. Sorting threads
    By Ne0 in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 2
    Last Post: Tue 17th Jul '01, 4:15pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts