Online Status Download 2.0

Indonesian Arsalan Shah 1 month ago

This component is a by Dominik so credit goes to him, it shows online status of user on profile page near user name. Tested only on GoBlue theme.

What has changed?

  • Fixed Empty linefeed on ossn.en.php file
  • Removed echo in callback as never echo anything in callback.
  • Changed callback to extend view of profile page.
  • Remove black RGB background
  • Remove unwanted mutation observer code (1.2)

Since JS code is generated by chatgpt by Dominik, I have no time to read all code and to understand the flow.

Image

Comments
German Dominik L Replied 4 weeks ago

thank you, with updated user verified component it's working

Indonesian Arsalan Shah Replied 4 weeks ago

I think he need to update his premium social network build if he is trying on old build it may not work because of old Verified user component has no hook so he need to update at least user verified component

German Michael Zülsdorff Replied 4 weeks ago

Dominik,
lately you often wrote something like "I installed the component on a fresh Ossn installation" ...

Same environment here, or other 3rd party components involved this time?

German Dominik L Replied 4 weeks ago

Thanks for providing this

I downloaded version 2.0 but there is no online status, do I overlook something?

German Michael Zülsdorff Replied 1 month ago

2.0 is working fine now. Basically.
But the colors may run out of sync if a member status has changed.
Here: when I visited my friend Honey, she was still offline.
Short time later, she logged in: Right column gets correct green update, but the dot beneath the name remains red.
enter image description here

Same issue with EighteenMale BTW.

I'll provide a helper component trying to fix the issue.

Indonesian Arsalan Shah Replied 1 month ago

EigteenMale is exactly how i fixed this component both extends profile instead of echo in callback.

ossn_extend_view('profile/pages/profile', 'EighteenMale/ExtendProfile');  

and

ossn_extend_view('profile/pages/profile', 'online_status');

I believe sometime chatgpt didn't work well 🤣🤣🤣but i am still happy that he is trying. At least he should not gave up as we are always here help him step by step. I think he gets frustrated because we go step by step.

German Michael Zülsdorff Replied 1 month ago

Thanks for fixing, Arsalan.
And ... yes. it's a little frustrating that Dominik's initial release appeared to be such a show stopper. Because 8 months ago he already asked which way to extend a profile page, and I provided the EighteenMale component with detailed comments as a working example. Actually, there's no big difference displaying age and gender or the online state of a member.

Component

Developer: Arsalan
License GPL v2
Type: Uncategorized
Requires Ossn Version : 7.6
Latest Version: 2.0
Last Updated 1 month ago
Repository Url View Repository

Versions