The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
You need to be much more specific as to the error...
|
#3
|
|||
|
|||
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 |
#4
|
||||
|
||||
It would help if unregistered guests could view the forum.
|
#5
|
|||
|
|||
Sorry. It's open for guests now.
|
#6
|
||||
|
||||
hmm, i don't see a parse error, also normally this code above shouldn't produce any error
|
#7
|
|||
|
|||
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?
|
#8
|
||||
|
||||
be sure, that no sortfield isn't set already in the url or somewhere
|
#9
|
|||
|
|||
Can you be more specific? What should I look for and where?
|
#10
|
||||
|
||||
if sortfield=bla bla is specified in the url or in the code before the switch
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|