The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
External Page Login and Variables
Hey,
I'm looking to make a login form whereby I can login using a page on the root (as opposed to the forums which are located at /forum). I've managed to make a login form that logs the user in, and redirects them back to the root, and they are logged in. What I can't get to work though, is getting access to the vB variables (to show username, avatar etc). If I include global.php then the login form doesn't work. I've been at this for ages and just can't seem to get it to work. Was wondering if anyone has got this to work? Just to clarity, I have other pages outside the forum which I would like people to be able to navigate around whilst logged in, and be shown as logged in, and have access to their user variables. Here's the code I have: PHP Code:
PHP Code:
|
#2
|
|||
|
|||
try with the require once the location the file is from your calling file.
like PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
The strange thing is, as soon as I do that, the login won't work
Here's my fill code now: PHP Code:
As I say though, when I add that PHP at the top, it doesn't even login. Any help would be greatly appreciated. I'm actually beginning to wonder if this is possible? It must be though. |
#4
|
|||
|
|||
|
#5
|
|||
|
|||
|
#6
|
|||
|
|||
|
#7
|
|||
|
|||
Not 100% with you here.
My forum is at /forum My test.php script to login is at /test.php What should I put at the top to allow me to access the variables? |
#8
|
|||
|
|||
|
#9
|
|||
|
|||
|
#10
|
|||
|
|||
you are using vbulletin 4 and create the template with the template system or using an extern php/html file?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|