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.

Display 'x' characters of text beneath discussion title?



  • check this

    I need hep from someone more experienced with vanilla hooks

    I am using DiscussionsController_AfterDiscussionTitle_Handler() in my plugin to add text
    but when I am on category listing, this is not fired
    any ideas?
  • This is great! Thanks! I'm getting an error when I try to edit the plugin settings:

    Fatal error: Call to undefined function T() in /WWW/publicradio/pijsand01/Garden/plugins/DiscussionExcerpt2/views/discussionexcerpt2.php on line 5
  • vizionaviziona New
    edited April 2010
    this is because I am using the very latest vanilla2 version

    try updating vanilla and check then
  • It's not firing because that view file is being included from a different class. you've defined your hook as DiscussionsController_Afte... so it's only gonna get called if discussions.php is handling the request. Adding in something like
    public function CategoriesController_AfterDiscussionTitle_Handler(&$Sender) {
    would fix it.
  • Thanks - I updated to the latest files on Git and it works!
  • @NickE - thanks for fix and explanation - all clear now
  • plugin updated to work with stable vanilla
Sign In or Register to comment.