![]() |
Login Function
Hi all,
Can anyone tell me if it is possible to send the login function a URL to which the user will be be redirected after logging in, instead of going to the forum home? Also, in order to use vB variables such as username and userid on non vB pages, what files do I need to include and how can I access the variables? Thanks :) |
edit member.php
you can find the redirects there, section login.. you need to include global.php, then you can use the $bbuserinfo array. |
Thanks Xenon :)
I have the following code, but it produces a blank page: PHP Code:
Any ideas how to make it work? One more thing. I need to use vB's database to authenticate for some other stuff on my site. that means my own script will connect to the database. So I'm wondering how can I check if a user has activated his account in my SQL queries. |
hmm, you can try this part:
PHP Code:
|
worked like a charm. Thanks again :D
|
:)
you're welcome |
All times are GMT. The time now is 12:35 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|