The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I display the user cookie information through PHP?
I want to write a custom login box for my homepage. Using the navbar template, I think I can finish the login part of it. I just need to submit to the login.php using a form.
The tricky part is emulating the information once the user is logged in. I want to use PHP to find the information set by the cookie. When you log into the standard forums, the login box contains this information: Quote:
Quote:
Thanks Roy |
#2
|
|||
|
|||
I do pretty much the same thing on my site. The way I did it was first check to see if the visitor has $_COOKIE['bbuserid'] set. If that is set, it means he is logged in, in which case you don't want to show the login form.
Code:
if($_COOKIE['bbuserid']) { //show login form } else { //show user info } For the user information i ran a query against the vb_user table based on the $_COOKIE['bbuserid'] id. Hope that helps. |
#3
|
|||
|
|||
Perfect! Just what I needed.
Roy |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|