• 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

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

Mike

XenForo developer
Staff member
#3
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).
 

Mike

XenForo developer
Staff member
#6
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.
 

Shelby

Active member
#7
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.
 

Digital Doctor

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

"WebTemplates" is a vBulletin integrated Content Management System which allows you to create vb integrated "HTML" pages in your vb admin cp very easily. The pages can inherit your vbulletin skin/style, can recognize logged-in user, can be applied permissions per user or usergroup basis, can keep visit logs, hit counts and do many more.
 
#9
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.

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?

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.
I've tried tweaking it, and it's not what I'm looking for, exactly.