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.

display whosonline in content area above discussions with pro

This discussion is related to the Who’s Online addon.
fh111fh111 ✭✭
edited December 2011 in Vanilla 2.0 - 2.8

i am using the pro version

how can i display the plugin in the content area ABOVE the discussions?

i figured out how to get it on the content page by doing > public function AssetTarget() {

  //return 'Foot';
  return 'Content';

i also managed to adjust the format

it now shows below all the discussion, but i want it to show before.

how can i achieve that?
any help appreciated


  • never mind i figured out how to do it!

  • well and how did u do it?

  • fh111fh111 ✭✭
    edited December 2011

    in default.master.php i added another div with id content and RenderAsset('BeforeContent')

      < div id="Panel"><?php $this->RenderAsset('Panel'); ?></div>
      < div id="Content"><?php $this->RenderAsset('BeforeContent'); ?>< /div>
      < div id="Content"><?php $this->RenderAsset('Content'); ?></div>

    and in class.whosonlinemodule.php i changed

    public function AssetTarget() {
    //return 'Foot';
    return 'Content';


    public function AssetTarget() {
    //return 'Foot';
    return 'BeforeContent';

    after that, just minor css adjustments

  • Wont having two divs with same id cause issues. All div ids should be unique

    There was an error rendering this rich post.

  • true thanks for pointing that out. i forgot to change it, but it did not give me any problems.

Sign In or Register to comment.