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.

how i can show thumb of photo user on Who's Online??

edited November 2011 in Vanilla 2.0 - 2.8
i want to show photo thumb user on who's online, that's default script for who's online :
<strong <?php echo ($User->Invisible == 1 ? 'class="Invisible"' : '')?>> <?php echo UserAnchor($User); ?> </strong> <?php echo Gdn_Format::Date($User->Timestamp); ?>
and only show text of name and timestamp,
please help me how i can change that script to show photo thumb user like who's online on vanillaforums.org, thx for u're response...
hungle88Douglas_Thor

Best Answer

  • AoleeAolee Hobbyist & Coder ✭✭
    edited November 2011 Answer ✓
    im afraid im using the 0.8 version of whosonline, maybe you have the 1.3 version, you can just compare the 1.3 version with mine and copy the necessary changes.

    here's the link to my whosonline avatar verion

    http://pinoyau.info/plugins/WhosOnline-aolee.zip

    @platon : lol where did you get that info :P


    vanillerkang_andi
«1

Answers

  • AoleeAolee Hobbyist & Coder ✭✭
    do you have the pro version? or the free one?
  • Aolee is the master of displaying avatars
  • edited November 2011
    @Aolee free version... :)
  • AoleeAolee Hobbyist & Coder ✭✭
    edited November 2011 Answer ✓
    im afraid im using the 0.8 version of whosonline, maybe you have the 1.3 version, you can just compare the 1.3 version with mine and copy the necessary changes.

    here's the link to my whosonline avatar verion

    http://pinoyau.info/plugins/WhosOnline-aolee.zip

    @platon : lol where did you get that info :P


    vanillerkang_andi
  • wow.., thx @Aolee, i just replace n works.., very thx guys... :D
  • AoleeAolee Hobbyist & Coder ✭✭
    edited November 2011
    ok just observe it a bit more, bec if im not mistaken the timestamp field datatype of 0.8 is different with the 1.3 version. :) not sure, might have an impact
    kang_andi
  • @Aolee ok thx.., one more time, why my thumb picture in who's online different with my profile picture?? what's wrong??
  • AoleeAolee Hobbyist & Coder ✭✭
    can i see your site?

    mine (http://pinoyau.info/) works
  • edited November 2011
    ouch..., i'm forget to change this... :D
    ->Select('u.UserID, u.Photo, u.Name, w.Timestamp, w.Invisible') ->From('Whosonline w')
    Thx for u're response... :)
  • AoleeAolee Hobbyist & Coder ✭✭
    yup that's the most impt thing :D
  • I just installed this version but it doesnt match my theme now like the original text version did.
    See http://www.dougsoutdoors.net/discussions

    did i forget something?

  • AoleeAolee Hobbyist & Coder ✭✭
    edited November 2011
    I just installed this version but it doesnt match my theme now like the original text version did.
    See http://www.dougsoutdoors.net/discussions

    did i forget something?

    doesn't match your theme? or didn't worked at all?

    a. doesn't match your theme => play with the css inside the class.whosonlinemodule.php

    b. didn't worked at all? => what version do you have? haven't tested on vanilla older than 2.0.18 . sorry dont have time to check on lower version.
    Douglas_Thor
  • Sorry i should of been more clear.
    It DID work and worked well, but it didnt match the theme.

    My theme has green boxes, but the WHos Online module came up as a light grey box with a black border.

    Im going to look at the class file you suggest, but to be honest, i dont understand what im looking at that well.

  • @Aolee I got it!

    I had to remove this from the code:
    style="background:none repeat scroll 0 0 #F5F5F5;"

    Now it matches. Thank You very much for your help!

  • sahotataransahotataran Developer, Bay Area - CA ✭✭✭
    oh so i have more recent hacked version of the WhosOnline to display User Image.
    Any body who wants it can PM me. Thanks

    There was an error rendering this rich post.

  • oh so i have more recent hacked version of the WhosOnline to display User Image.
    Any body who wants it can PM me. Thanks
    Hi

    is you hack compatible with the latest versions?

    Cheers

  • sahotataransahotataran Developer, Bay Area - CA ✭✭✭
    @kylelrving
    i run it with vanilla 2.0.18.1

    There was an error rendering this rich post.

  • @sahotataran do you think it will work with WhosOnline Pro?

    Cheers
  • sahotataransahotataran Developer, Bay Area - CA ✭✭✭
    i am not sure. i just modified 1.3 and it works fine.
    i am not sure whats different in whosonline pro version. i never used that

    There was an error rendering this rich post.

  • 422422 Developer MVP

    So playing with this, got it working with images. So thats cool.

    But wanted to add tipsy or similar to the title tag so on hover we get tooltip. Any suggestions guys

    There was an error rendering this rich post.

Sign In or Register to comment.