The Arcive of vBulletin Modifications Site. |
|
Login Function Details »»
|
|||||||||||||||||||||||||
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 ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
edit member.php
you can find the redirects there, section login.. you need to include global.php, then you can use the $bbuserinfo array. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
hmm, you can try this part:
PHP Code:
|
|
#5
|
|||
|
|||
|
worked like a charm. Thanks again
|
|
#6
|
||||
|
||||
![]() you're welcome |
![]() |
|
|