![]() |
External Login Question
Hi there,
I'm new to PHP and modding vb, but I have a page that I want users to be able to log into using their vb5 info. I'm following the instructions in David Grove's guide to set this up. In his example, he's got a form that displays: Code:
////////////////////////// display a login form Sorry if this is a dumb question. Thanks for your help! |
In his example, it is the same file where his sample code is. He could have also set the form action to blank and it will also go to the same page when the form is submitted.
|
Excellent, thank you. That seems to work fine. Two other questions..
What would I have to add to other pages for it to check to see if a user was logged in and a member of a certain usergroup? I want only members of group xyz to be able to access this page. And how do I do a log out form? Thanks! |
Is that a vBulletin page or an external page?
To logout, call the logout() method in user API and passing logouthash which you can find in the userinfo of the logged in user. |
Quote:
|
Call the fetchUserinfo() method of the user API passing the userid of the logged in user.
PHP Code:
|
All times are GMT. The time now is 07:12 PM. |
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:
|