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

display whosonline in content area above discussions with pro

fh111fh111 Vanilla Padawan ✭✭
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

Answers

  • Options
    fh111fh111 Vanilla Padawan ✭✭

    never mind i figured out how to do it!

  • Options

    well and how did u do it?

  • Options
    fh111fh111 Vanilla Padawan ✭✭
    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';
    }

    to

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

    after that, just minor css adjustments

  • Options
    422422 Developer MVP

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

    There was an error rendering this rich post.

  • Options
    fh111fh111 Vanilla Padawan ✭✭

    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.