Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
DiscussionSort
DiscussionSort
0
This discussion has been closed.
Comments
What I would like to see is a way not to sort the discussions at all, that is, leave them in the order that they were created in.
Posted: Monday, 4 June 2007 at 1:40PM
Thank you, jim
Posted: Monday, 4 June 2007 at 9:33PM
Now, to push a point, what if I wanted discussions in only one particular category listed chronologically?
Posted: Tuesday, 5 June 2007 at 7:42AM
Not sure how this could work with the Discussion Overview discussion list.
Otherwise, you would have to set some kind of trigger to check if the post is in the auto-sink category and set the sink flag.
Any help would be appreciated. I really want to use this. Thanks.
In the following example, I am not selecting Category 3 and 11:
$s = &$DiscussionManager->DelegateParameters['SqlBuilder']; $s->AddWhere('t', 'CategoryID', '', 3, '<>', 'and'); $s->AddWhere('t', 'CategoryID', '', 11, '<>', 'and'); $s->AddWhere('t','Name','',$x.'%','LIKE');
and
$s = &$DiscussionManager->DelegateParameters['SqlBuilder']; $s->AddWhere('t', 'CategoryID', '', 3, '<>', 'and'); $s->AddWhere('t', 'CategoryID', '', 11, '<>', 'and'); $s->AddOrderBy('Name', 't', 'asc');
You would add as many AddWhere statements as needed to not select other Categories.
If you only wanted Category 3, you would change the <> (not equal) operator to = (and delete the other AddWhere line).
This seems to work when I test it on my forum. I hope it helps.
I want the "All Discussions" to show the way it used to and sort discussions alphabetically only on the category's page.