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.
[Vanilla 2 RC2] Ideas for attaching content after the Userinfo Box?
I am just working on a new Plugin and I want to attach another Box panel after the "About" on the left side in a User's Profile.
That part (the About) is being created from the userinfo.php-View. Unfortunately, there is only an Event inside the <div></div> to attach custom output.
My workaround for the moment is, that I copy the View-file "userinfo.php" to my Theme folder and add the following code in the very bottom:
Have you guys any proposals how I could attach my content without having to edit the userinfo-View? Is there probably a different, better approach?
Thank you,
Oliver
That part (the About) is being created from the userinfo.php-View. Unfortunately, there is only an Event inside the <div></div> to attach custom output.
My workaround for the moment is, that I copy the View-file "userinfo.php" to my Theme folder and add the following code in the very bottom:
<?phpThis does work like a charm - but makes my Plugin too static to distribute at a later stage.
}
$this->FireEvent('AfterShowAbout');
Have you guys any proposals how I could attach my content without having to edit the userinfo-View? Is there probably a different, better approach?
Thank you,
Oliver
0
Comments
Vanilla Forums COO [GitHub, Twitter, About.me]
Tell me if that works.
Vanilla Forums COO [GitHub, Twitter, About.me]
Thank you very much for this great tipp, @Tim!