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?
Since JS code is generated by chatgpt by Dominik, I have no time to read all code and to understand the flow.
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.
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.