![]() |
Alphabetize thread list order in single forum
I want to sort the thread display of one single forum by alphabetical order.
Having tried this suggestion https://vborg.vbsupport.ru/showthrea...threadid=42383 I think I'm misunderstanding the placement of the code. Finding this in forumdisplay.php: switch ($sortfield) { case 'title': case 'lastpost': case 'replycount': case 'views': case 'postusername': case 'voteavg': break; default: $sortfield='lastpost'; } it says to replace $sortfield='lastpost'; with $sortfield='title'; and to limit it to one forum it says replace it with an if-clause: if($foruminfo[forumid]==x) $sortfield='title'; elseif($foruminfo[forumid]==y) $sortfield='rating'; else $sortfield='lastpost'; Since I don't want any sorting by rating I did this: switch ($sortfield) { case 'title': case 'lastpost': case 'replycount': case 'views': case 'postusername': case 'voteavg': break; default: if($foruminfo[forumid]==163) $sortfield='title'; else $sortfield='lastpost'; } But I'm getting a parse error with it. Can someone point out my error? |
You need to be much more specific as to the error...
|
I typed in in manually and now I'm not getting a parse error. But it's not putting the thread in alphabetical order. Take a look:
http://216.92.20.151/discussions/for...s=&forumid=163 |
It would help if unregistered guests could view the forum. ;)
|
Sorry. It's open for guests now. :)
|
hmm, i don't see a parse error, also normally this code above shouldn't produce any error
|
I rewrote it manually (before I had cut and pasted) and now it's not giving me an error. But it's not alphabetizing the threads so basically it's not doing what I need it to do. Any suggestions?
|
be sure, that no sortfield isn't set already in the url or somewhere ;)
|
Can you be more specific? What should I look for and where?
|
if sortfield=bla bla is specified in the url or in the code before the switch
|
All times are GMT. The time now is 09:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|