Show user's/guest's viewing a custom page's on Xen?

x4rl

Well-known member
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.

Thanks
 
That's what Mike linked to.

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
 
That's what Mike linked to.

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

Thank's
question how does

PHP:
public static function getSessionActivityDetailsForList(array $activities)
    {
        return new XenForo_Phrase('booru_online');
    }
know who's is on my 200k+ custom page's? from the phrase
Just trying to work all this out.

Do i have to add some code to the header of my custom page's also?
 
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
 
If the script has nothing to do with xenforo, it won't be used by xenforo, so it won't show 'unknown' when users browse to it ..
 
bumb anyone? would love to see who is on the main part of my site within Xenforo..

Thank's
 
Top Bottom