Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


display whosonline in content area above discussions with pro

fh111fh111 Vanilla Padawan ✭✭
edited December 2011 in Questions
This discussion is related to the WhosOnline addon.

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

  • fh111fh111 Vanilla Padawan ✭✭

    never mind i figured out how to do it!

  • well and how did u do it?

    kjaonline
  • 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

    422
  • 422422 Developer MVP

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

    422 Real Estate Australia , now open Check it out

    fh111
  • fh111fh111 Vanilla Padawan ✭✭

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

    422
Sign In or Register to comment.