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

Login/user box outside of xF directory

Discussion in 'XenForo Pre-Sales Questions' started by DekuLink, Nov 8, 2010.

  1. DekuLink

    DekuLink Member

    One of the most troublesome things I had with vBulletin is that it was almost impossible to implement a login box that displayed the user's information (Name, avatar, number of messages, etc) when they were logged in on the main site. I know there are bridges for Wordpress and other CMSs, but nothing for just a plain HTML site.

    I was thinking that since Kier was starting from scratch, that they would make it easy to implement a user box outside of the XenForo directory. I'm making a layout for my site and plan to upgrade to XenForo, but I need to know before I buy, if it is possible to implement a login box that displays the user's info when logged in, outside of the forums.

    Is it?
  2. DekuLink

    DekuLink Member

    Oh come on. I hate to double-post, but does nobody have anything to say on the matter?
  3. Mike

    Mike XenForo Developer Staff Member

    If you're willing to use PHP, then it would be possible - though it will need to be made a bit easier.

    To use pure HTML/JS, it'd have to be done with a call to a specific JS script, which could potentially leak info about the user you are logged in as, which creates a possible security issue (or at least an information disclosure issue).
  4. DekuLink

    DekuLink Member

    Well, I would obviously be using PHP. What do you mean by "it will need to be made a bit easier."?
  5. DekuLink

    DekuLink Member

    *Ahem* Again, I hate to double post, but I'd like a little more info on how easy/hard it would be to do this.
  6. Mike

    Mike XenForo Developer Staff Member

    There is just some code that needs to be moved out so it's easier to get the current session info. Right now it's tied to controllers, which makes integration into a separate, mostly static page more of a challenge.
  7. Shelby

    Shelby Active Member

    To answer the original posters question. No. Currently you can not do what you want unless you hack the original code and by doing so, open yourself up for exploit.
  8. Digital Doctor

    Digital Doctor Well-Known Member

    Did you try Logician's WebTemplates ?
    WebTemplates VB Integrated CMS (Content Management System)

    vB 3.8 = http://www.vbulletin.org/forum/showthread.php?t=186644
    vB 4 = http://www.vbulletin.org/forum/showthread.php?t=250202

    I don't think it has what you want but probably could be tweaked to do it.

  9. DekuLink

    DekuLink Member

    Are you sure I can't just have a login box, using the same included files, send the request to the login file and have it redirect to the home page, and copy the same session code from the source code and just pull info from the DataBase to display?

    I've tried tweaking it, and it's not what I'm looking for, exactly.

Share This Page