Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Render Van2Shout on Activity page

phreakphreak Vanilla*APP (White Label) & Vanilla*Skins Shop MVP

Hi all,

I'd like to render Van2Shout just on the Activity page above the activity form. I guess these two function are important to change, but i have no clue which Controller is the one in charge of defining the place where it gets rendered.

public function Base_Render_Before($Sender) {
if(VAN2SHOUT_ASSETTARGET != 'Panel')
return;
$this->includev2s($Sender);
}

public function DiscussionsController_Render_Before($Sender) {
if(VAN2SHOUT_ASSETTARGET != 'Content')
return;
$this->includev2s($Sender);
}

Am i on the right track and can someone point me what i need to set in there?

Thanx

  • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
  • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla

Comments

  • hgtonighthgtonight ∞ · New Moderator
    edited September 2013

    Should be able to add it to the activity controller.

    public function ActivityController_Render_Before($Sender) {
      if(VAN2SHOUT_ASSETTARGET != 'Content')
        return;
    
      $this->includev2s($Sender);
    }
    

    Untested.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • phreakphreak Vanilla*APP (White Label) & Vanilla*Skins Shop MVP

    Uhh, thanx @hgtonight. :)

    Works as promised!

    • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
    • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
Sign In or Register to comment.