Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Vanilla 2.2.1 is now available.
Please upgrade to 2.2 here. The 2.0 and 2.1 branches are no longer being updated.

[Documentation] BeforeDiscussionMeta in single category

I have a question about the DiscussionPrefix plugin.

I have edited the plugin to change the prefix to a label like the 'closed' label. Works good, except for the single categories. The function "DiscussionsController_BeforeDiscussionMeta_Handler" doesn't seem to work there. Also the original function 'DiscussionsController_BeforeDiscussionTitle_Handler' that is used by the plugin doesn't work in the single categories. On the homepage and in the tag lists both functions do work.

I've tried anything but I can't find a solution for this. I hope someone can help me (and others) out with this.

Thanks a lot in advance!

Tagged:

Best Answer

  • peregrineperegrine MVP
    edited May 2012 Answer ✓
      public function CategoriesController_BeforeDiscussionMeta_Handler(&$Sender) {
           $this->DiscussionsController_BeforeDiscussionMeta_Handler($Sender);
        }
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Answers

  • peregrineperegrine MVP
    edited May 2012 Answer ✓
      public function CategoriesController_BeforeDiscussionMeta_Handler(&$Sender) {
           $this->DiscussionsController_BeforeDiscussionMeta_Handler($Sender);
        }
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • You said TIA, but if it works for you, you might accept answer if you come back.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • That works like a charm! Thank you very much!!!

Sign In or Register to comment.