1. 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?

Discussion in 'XenForo Development Discussions' started by Wuebit, Feb 26, 2011.

  1. Wuebit

    Wuebit 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.

  2. Mike

    Mike XenForo Developer Staff Member

  3. Wuebit

    Wuebit Well-Known Member

  4. Floris

    Floris Guest

    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
  5. Wuebit

    Wuebit Well-Known Member

    question how does

    public static function getSessionActivityDetailsForList(array $activities)
            return new 
    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?
  6. Wuebit

    Wuebit Well-Known Member

    Also where is the "controller public" ?
  7. Floris

    Floris Guest

    If you have a plugin in library called banana, so you have


    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.


    <?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'
  8. Wuebit

    Wuebit Well-Known Member

    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
  9. Floris

    Floris Guest

    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 ..
  10. Wuebit

    Wuebit Well-Known Member

    Yea.That's why i asked this question.
  11. Wuebit

    Wuebit Well-Known Member

    bumb anyone? would love to see who is on the main part of my site within Xenforo..

  12. Wuebit

    Wuebit Well-Known Member

    Guess this can't be done than :(

Share This Page