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

Delegate parameter requested

edited February 2008 in Vanilla 1.0 Help
I need a line in /themes/settings_applicants_form.php:

$this->DelegateParameters['Applicant'] = &$Applicant;

around line 38, right before
$this->DelegateParameters['ApplicantList'] = &$ApplicantList; $this->CallDelegate('PostEmailAddress');

This is for ApplicantsIP. Thanks.

Comments

  • Options
    edited December 2007
    I need 3 delegates in /themes/discussion.php
    right after $LastUrl it looks like this
    $LastUrl = GetLastCommentQuerystring($Discussion, $this->Context->Configuration, $CurrentUserJumpToLastCommentPref); $this->CallDelegate('PreDiscussionRender'); $DiscussionList .= ' <li id="Discussion_'.$Discussion->DiscussionID.'" class="Discussion'.$Discussion->Status.($Discussion->CountComments == 1?' NoReplies':'').($this->Context->Configuration['USE_CATEGORIES'] ? ' Category_'.$Discussion->CategoryID:'').($Alternate ? ' Alternate' : '').'">'; $this->CallDelegate('PreDiscussionOptionsRender'); $DiscussionList .= '<ul> <li class="DiscussionType">

    and one right at the bottom
    </li>'; $this->CallDelegate('PostDiscussionRender'); ?>
  • Options
    Also in that same file discussion.php the Delegate Parameters are assigned at the bottom, which means as it renders the very first Discussion it doesn't have the DiscussionList delegate parameter for me to use. I suggest moving it to the top right after the $LastUrl.
  • Options
    in Vanilla.Class.Comment.php
    line 185 add a delegate parameter and call delegate
    $this->DelegateParameters['DataSet'] = &$DataSet; $this->CallDelegate('PostGetPropertiesFromDataSet');

    in Vanilla.Control.CommentGrid.php
    line 56 add a delegate parameter
    $this->DelegateParameters['CommentManager'] = &$CommentManager;
  • Options
    ^^^ bumpity bump. YES please I'd also like both of those in the previous post.

    Mark, are you still adding these or is dinoboff or someone doing this type of stuff now?
  • Options
    IIRC, all were added and will be in the next release of Vanilla. (svn export http://lussumo.com/svn/vanilla/trunk/) All except for the latest CommentManager request, a different workaround was found for that one so it wasn't added.
  • Options
    Oh, sweet! Thanks for the heads-up.

    Now, when you say "next release" do you mean Vanilla2?? :) Or is there going to be more releases in the 1.1 branch?
  • Options
    1.x will probably live on for bug and security fixes since it appears that Vanilla 2 will be PHP 5 only. There are quite a few bug fixes pending, so I suppose another release will come out when they get cleaned up--or if a security problem is found before that.
This discussion has been closed.