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

Check if visitor is logged in from outside of forum

Discussion in 'XenForo Development Discussions' started by altgg, Jan 14, 2014.

  1. altgg

    altgg New Member

    I'm working on a portion of our main site, and it would be awesome if I could show some different content to users who are logged in on our forums (in a sub folder of our main site).

    Could someone please point me in the right direction, to some documentation of the authentication process, or any docs on checking the logged in state of users from outside of the forum.

    I have direct database and cookie / session access, so I'd prefer to write my own compact script.

  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Is this written in PHP? I would be rather easy to instantiate the XenForo framework and then use XenForo_Visitor in your scripts.
  3. altgg

    altgg New Member

    Yeah, we're using php for the main site too. I'll google creating an istance of the framework and checking out thexeforo_vistior.

    Thanks for the heads up!

    A lot of people use xenforo, but I've been finding it hard to get my google-fu to turn up useful developer info.
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

  5. altgg

    altgg New Member

    Thanks again for your help!

Share This Page