The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Online Status Question

    Enalahs89
    Enalahs89
    Forumember


    Female Posts : 54
    Reputation : 5
    Language : English
    Location : In your dreams

    Solved Online Status Question

    Post by Enalahs89 September 13th 2015, 3:52 pm

    So, I was looking at this tutorial. It says it's only for phpbb3 and invision.

    I tried it on my forum (phpbb2) and it seems to work fine... except for always showing people offline even when they're online. Is there a way to change the code or something to make it work for phpbb2?


    Last edited by Enalahs89 on September 13th 2015, 10:30 pm; edited 1 time in total
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Online Status Question

    Post by Ange Tuteur September 13th 2015, 9:00 pm

    Hi @Enalahs89,

    This should be possible. Try going to Display > Templates > General and edit the viewtopic_body template. Edit

    Find :
    Code:
    class="post post--{postrow.displayed.U_POST_ID}"

    and replace it by :
    Code:
    class="post {postrow.displayed.ONLINE_IMG_NEW} post--{postrow.displayed.U_POST_ID}"

    Then save and publish the template. Add
    Enalahs89
    Enalahs89
    Forumember


    Female Posts : 54
    Reputation : 5
    Language : English
    Location : In your dreams

    Solved Re: Online Status Question

    Post by Enalahs89 September 13th 2015, 9:34 pm

    Well that worked except now it's showing both Online and offline for my status when I'm online. Confused

    http://prntscr.com/8fyrkm
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Online Status Question

    Post by Ange Tuteur September 13th 2015, 10:21 pm

    In the CSS, it looks like you modified this value to "inline" ( it means it's displayed ) :
    Code:
    .post.online #is_off.user_status{ display:inline }

    Change inline to none and it should disappear on posts where the user is online. Smile
    Enalahs89
    Enalahs89
    Forumember


    Female Posts : 54
    Reputation : 5
    Language : English
    Location : In your dreams

    Solved Re: Online Status Question

    Post by Enalahs89 September 13th 2015, 10:30 pm

    Oops. I must have forgotten to change it back once I got done messing around with it when I was trying to fix it to work in phpbb2 lol

    Thank you, Ange!

    Marked solved and ready for archive C:

    Oh! One more question. Does this feature not work when added to profiles too? Cause on the profiles it says "Online Offline"
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Online Status Question

    Post by Ange Tuteur September 13th 2015, 10:36 pm

    You're welcome ^^

    Topic archived

    Have a great day. Smile

      Current date/time is September 23rd 2024, 1:28 pm