The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I would like to be able to have just one forum be alpha sorted by the thread name as opposed to the deafult last post time.
A plug in for this would be great. Thank you ![]() |
#2
|
|||
|
|||
![]()
Andy-
Try this: Find the forumbit template that calls the forum on your forumhome (this will vary depending on your forum hierarchy). In that template, Find: Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"> <strong>$forum[title]</strong> </a> Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]<if condition="$forum[forumid] = ##">&order=asc&sort=title</if>"> <strong>$forum[title]</strong> </a> This should cause that forum to be displayed in ascii order by title. --don |
#3
|
||||
|
||||
![]()
Alternatively you could use https://vborg.vbsupport.ru/showthread.php?t=93074
|
#4
|
|||
|
|||
![]()
Hi darnoldy,
Thank you for your help. Your example works almost perfect. First I had to change the "=" to "==". The problem with the your solution is if a user makes a post in the thread or clicks on the bread crumb, the alpha sorting is lost. I ended up modifying the forumdisplay.php as follows. This works perfect. Code:
Find: if ($vbulletin->GPC['sortorder'] != 'asc') REPLACE it with: if ($vbulletin->GPC['sortorder'] != 'asc' AND $foruminfo['forumid'] != 'XX') Find: $sqlsortfield = 'lastpost'; $sortfield = 'lastpost'; REPLACE it with: if ($foruminfo['forumid'] == 'XX'): $sqlsortfield = 'thread.title'; $sortfield = 'thread.title'; else: $sqlsortfield = 'lastpost'; $sortfield = 'lastpost'; endif; |
#5
|
||||
|
||||
![]()
Andy, you should use Kirby's hack for that. That way you can change it for whatever forum you want to and not have to touch any php files.
![]() |
#6
|
|||
|
|||
![]() Quote:
Quote:
Quote:
--don |
#7
|
|||
|
|||
![]() Quote:
1 Product XML with 2 Queries, 9 Plugins, 15 Phrases and 2 Settings 4 Template Edits I only needed to add a few lines to the php file. I always prefer a simple solution to one that changes a lot of things. |
#8
|
||||
|
||||
![]()
But with the hack, this is now an option in each forum and there is no direct editing of php files so upgrading vb will be a snap and you would not have to re-edit the file or re-install the hack. The product system really is remarkable.
|
#9
|
||||
|
||||
![]()
@Andy
If you just want to set the Default in Admin CP and don't need/want a UserCP Option and Thread Start Date, you would just have to import the XML of my Hack - that's it (no Template Edits). |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|