<!-- IF S_ONLINE -->
Posted July 13th 2017, 3:58pm
Is there any way to get
<!-- IF S_ONLINE -->
to work on the index page ?

It appears that the above statement is working only in memberlist_view.html and ucp_pm_viewmessage.html i'm trying to put a online icon on the index page.
φ
Posts: 15
Joined: August 4th 2012, 3:52am
Likes Given: 2
Likes Received: 1
<!-- IF S_ONLINE -->
Posted July 13th 2017, 8:05pm
I'm not sure what you are asking here. The index page already displays a list of online users. And if the current user is logged in, it means they are online, so the S_REGISTERED_USER template variable would provide that information.
φ
Posts: 1600
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
<!-- IF S_ONLINE -->
Posted July 14th 2017, 11:43am
<!-- IF S_ONLINE -->
gives if the user is online or offline in short i want the online image on the index this Image but the <!-- IF S_ONLINE --> fails on the index but works only on these pages memberlist_view.html and ucp_pm_viewmessage.html
φ
Posts: 15
Joined: August 4th 2012, 3:52am
Likes Given: 2
Likes Received: 1
<!-- IF S_ONLINE -->
Posted July 14th 2017, 1:21pm
Hmm. I guess you could be talking about the notifications display. If so, you'll need to talk to the phpBB devs who wrote the notifications system. The online data might already be there, and if not, the devs might have had the foresight to add a hook to allow extensions to generate online data.

Other than notifications, there is nothing on the default index page where using that image would make any sense. If a user is logged in, they are online! Are you trying to add the image to the output from an extension?
φ
Posts: 1600
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
<!-- IF S_ONLINE -->
Posted July 14th 2017, 7:53pm
<!-- IF S_ONLINE -->
controls the online image i posted in my reply and yes i want that image in a custom box on the index
φ
Posts: 15
Joined: August 4th 2012, 3:52am
Likes Given: 2
Likes Received: 1
<!-- IF S_ONLINE -->
Posted July 14th 2017, 9:44pm
If this is for an extension, then you should contact the author of the extension. Hopefully they can tell you how to modify their extension to output online information in a template variable.
φ
Posts: 1600
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
<!-- IF S_ONLINE -->
Posted August 16th 2017, 2:22pm
Solved by using a js script.
φ
Posts: 15
Joined: August 4th 2012, 3:52am
Likes Given: 2
Likes Received: 1

Who is online

Users browsing this forum: No registered users and 1 guest