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

Categories

In this Discussion

Who's Online 14

CurtisOdenericgillettefh111peregrinetc74 +9 guests

display whosonline in content area above discussions with pro

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

Comments

  • Posts: 89

    never mind i figured out how to do it!

  • Posts: 143 1 like

    well and how did u do it?

  • Posts: 89 1 like

    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

  • 422422
    Posts: 2,109 1 like

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

    ♥ I love Vanilla. VanillaSkins | on Twitter | on Facebook | Available Freelance | Take the Vanilla Test | Free Downloads

  • Posts: 89 1 like

    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.