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.
How to use PostDiscussionOptionsRender
Hello,
I'd like to add some text on the index.php below every discussion entry. Directly below the line with Category, Started by, Comments.....
How can I make this work inside an extension??
I don't know how to handle it...
can someone help me please
I'd like to add some text on the index.php below every discussion entry. Directly below the line with Category, Started by, Comments.....
How can I make this work inside an extension??
I don't know how to handle it...
can someone help me please
0
This discussion has been closed.
Comments
if ($Context->SelfUrl == "index.php") { $Context->AddToDelegate("DiscussionList","PostDiscussionOptionsRender","Test"); function Test(&$DiscussionManager) { echo '<li>This is a test</li>'; } }
echo '<li>This is a test</li>';
Try:
$DiscussionManager->DelegateParameters['DiscussionList'] .= '<li>This is a test</li>';
$Context->AddToDelegate("DiscussionGrid","PostDiscussionOptionsRender","Test")