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.

Is it possible to modify discussion listing ?

edited July 2006 in Vanilla 1.0 Help
Hi all, Is it possible to modify discussion listing via extensions ? I am working on a simple extension and i want to add some information from my extention ... Thanks

Comments

  • MarkMark Vanilla Staff
    Sure. You may need to have a delegate added, though. I can add them to the source and they will be available in the next minor upgrade.
  • That will be great. If we can extend vanilla as much as possible without changing core files, we won't have trouble in upgrade process.
  • MarkMark Vanilla Staff
    Exactly.
  • Let me provide simple delegate for this; FILE ./themes/discussion.php; find $DiscussionList .= '</ul> </li>'; ?> at the end of file and replace with; $this->DelegateParameters['Discussion'] = &$Discussion; $this->DelegateParameters['DiscussionList'] = &$DiscussionList; $DiscussionList .= $this->CallDelegate('PostDiscussionOptionsRender'); $DiscussionList .= '</ul> </li>'; ?> I hope you consider this. Thanks
  • MarkMark Vanilla Staff
    Okay, I made that change with one minor difference. I just call the delegate, I don't append it to the DiscussionList variable. There is no need since you've made the discussionlist variable a delegate parameter that gets passed by reference. You can see the change in svn here: http://lussumo.com/svn/vanilla/trunk/themes/discussion.php
  • Thank you Mark, I hope i can contribute as much as possible to vanilla.
This discussion has been closed.