• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

Wuebit

Well-known member
#1
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
 
F

Floris

Guest
#4
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
 

Wuebit

Well-known member
#5
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?
 
F

Floris

Guest
#7
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'
 

Wuebit

Well-known member
#8
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
 
F

Floris

Guest
#9
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 ..