Is there a way to Show user's/guest's viewing a custom page's on Xenforo's online user's? I used to be able to do it on (the other forum software) so i wondered is there a way to do this here.
Sorry Mike should of added some more detail. I mean for none xenforo page's, I run a gallery and would love to show the user's/guests on the online now part (Online now: 78 (members: 28, guests: 50))
Make a file called Listener.php with that code in there after <?php
And make a unique phrase.
Then add the phrase in the system saying like .. Viewing Gallery Section
Make a file called Listener.php with that code in there after <?php
And make a unique phrase.
Then add the phrase in the system saying like .. Viewing Gallery Section
If you have a plugin in library called banana, so you have
public_html/xenforo/library/banana/
Then put ControllerPublic/ inside there, with index.php in it, using the above code. And you're good to go.
I mentioned Listener.php earlier, freud-slip, since I was working on a listener file. Never mind that part.
library/banana/ControllerPublic/index.php:
Code:
<?php // show users browsing my custom page
public static function getSessionActivityDetailsForList(array $activities)
{
return new XenForo_Phrase('booru_online');
}
And then make a phrase called booru_online linked to your product, with content: 'Viewing Gallery'
Ok thanks for that, but I don't think we mean the same thing or am an idiot and don't understand this at all.
There is no addon/plugin, all i have is xenforo and a gallery *custom script nothing at all to do with xenforo* which am trying to show people on this script in xenforo