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.
Options

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

  • Options
    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.
  • Options
    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.
  • Options
    MarkMark Vanilla Staff
    Exactly.
  • Options
    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
  • Options
    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
  • Options
    Thank you Mark, I hope i can contribute as much as possible to vanilla.
This discussion has been closed.