Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorjimw
    • CommentTimeJun 3rd 2007
     # 1
    This extension sorts the Discussions alphabetically for those of you using Vanilla in the context of arranging Discussions used as Book titles or CD titles, etc. A menu of the beginning letters of the Discussions found is displayed at the top of the screen. If you mouse over the letter-link, you will see a count of the number of the Discussions. If you click on a letter, you will be taken to a page with just those Discussions beginning with that letter.

    I have tested this with a few themes and it may require you to do some style tweaking.

    In the next version, I will add the menu to the Panel.
  1.  # 2
    Sounds pretty cool!
    •  
      CommentAuthorVaz
    • CommentTimeJun 3rd 2007 edited
     # 3
    Is there a demo site where I can see this extension in action?
    •  
      CommentAuthorjimw
    • CommentTimeJun 3rd 2007
     # 4
    It's now on my site.
    •  
      CommentAuthorWanderer
    • CommentTimeJun 3rd 2007
     # 5
    Another great one Jim!
    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

    •  
      CommentAuthorjimw
    • CommentTimeJun 4th 2007
     # 6
    So, you would like to see the "letter" menu, but not have the discussions auto-sorted. I could add an option to allow this.
    Thank you, jim
    •  
      CommentAuthorWallPhone
    • CommentTimeJun 4th 2007
     # 7
    The chronological extension leaves them in place. They don't bump, so it effectively sinks every discussion.
    •  
      CommentAuthorWanderer
    • CommentTimeJun 4th 2007
     # 8
    No need for the "letter" menu either, one of my discussions is for podcast episodes, it's annoying when a new post in an old episode/discussion brings it to the top.

    Posted: Monday, 4 June 2007 at 9:33PM

  2.  # 9
    Try the chronological extension Wanderer.
    •  
      CommentAuthorWanderer
    • CommentTimeJun 4th 2007
     # 10
    Thanks Minisweeper, that did the trick beautifully.
    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

    •  
      CommentAuthorWallPhone
    • CommentTimeJun 4th 2007
     # 11
    Chronological can be set up to fire only when viewing the category directly-- i.e. CategoryID=x appears in the URL--then when all discussions are lumped together they will bump like normal.

    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.
    • CommentAuthorJaline
    • CommentTimeJul 26th 2008
     # 12
    thanks!
    • CommentAuthorJaline
    • CommentTimeJul 26th 2008 edited
     # 13
    I would love to use this. However, whenever I install it the site goes blank. The content is still there, but you can't see anything (it's just a white screen). Any idea on why this is occurring? This also means that when I want to deactivate the extension I have to go into conf/extentions.php to delete the entry line for DiscussionSort (through FTP and an HTML editor), because I can't access any aspect of the site (online).

    Any help would be appreciated. I really want to use this. Thanks.
    •  
      CommentAuthordkodr
    • CommentTimeNov 8th 2008
     # 14
    Could this be tweaked so that one could choose which categories to sort?
    •  
      CommentAuthorjimw
    • CommentTime2 days ago
     # 15
    I will look into choosing categories.
    •  
      CommentAuthorjimw
    • CommentTime1 day ago
     # 16
    There are 2 places in the code that need to be modified to restrict Category selection. Both need to be changed.
    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.
Add your comments
    Username Password
  • Format comments as