The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How To Sort On A Custom Field?
I'm trying to use vB as a task list for a particular client and I've almost got it working like I would like. However, because vB sorts on the most recent post, it throws a kink into everything.
Is there anyway to add a field to forumdisplay.php that can act as a sort field? In other words, replace the "Rating" column with "Priority" and allow the poster to enter a number "1, 2, 3, etc." in the post. From there the forum would sort on that field instead of the last post date. I've found the Search/Sort/Order in thread view hack, which looks like a killer hack, but without the new column in which to sort on, I don't think it will work. If anyone has any ideas, or thoughts to share, that'd be great. If you feel like writing this hack - all the better! :bunny: |
#2
|
||||
|
||||
Ok, what about this, any way to sort the topic list by title, instead of by date, by default? I know you can do it if you click the header, but can this be set by default?
|
#3
|
||||
|
||||
Ok, I found my answer to some extent. If you edit your "forumdisplay_forumbit" templates you can change the following code from
Code:
<a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"> Code:
<a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]&sortorder=asc&sortfield=title"> ====================== Why Do I Want This? ====================== I'm putting together a forum to act as a task/project list. Since vB, by default, sorts by date, this means that posts can get "out of wack." By starting each post with a "#" I can in effect create a prioritized task list. ======================== What's Missing ======================== The only thing missing is that I can see using this template mod in forums where I don't want this effect in ALL forums. Is there a hack out there that will allow you to have separate forumdisplay_forumbits for different parts of vB? In other words, have forumid #1 have one set of forumdisplay_forumbits and forumid #2 have a different set? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|