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 11

BulliesofNCCurtisOdenTorbjorntc74422 +6 guests

who is online pro

This discussion is related to the WhosOnline addon.

I bought pro version , but i didn't see avatars online members....

Comments

  • hbfhbf
    Posts: 654

    pro version doesn't do that out of the box. you can modify the code to do that if you like.

  • Posts: 9

    can you help me?

  • hbfhbf
    Posts: 654 Accepted Answer

    There are already some threads on how to accomplish this, so do a few searches and it should turn up what you need.

    But fundamentally you will need to edit

    public function ToString() in class.whosonlinemodule.php such that instead of returning $User->Name it returns < img src=\"".Url('uploads/'.ChangeBasename($User->Photo, 'p%s'))."\" alt=\"".$User->Name."\" title=\"".$User->Name."\" />

    you'll have to play with the SQL queries to get the photo info (need to join tables) and a few other minor tweaks. But this should get you in the ball-park i would assume.

Sign In or Register to comment.