Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Login, Group membership check

Aloittaja BlackRookSix, tammikuu 21, 2006, 01:29:28 IP

« edellinen - seuraava »

BlackRookSix

I am attempting to use smf_api.php to build an include page that does:

  -  Login the user using their cookie, just as the board does.  If not, it forces them to the login page.

  -  Check that the user is a member of group X on the boards.  I only need to check one group, since it is configured as a supergroup.


Any pointers would be appreciated, as the documentation, forums and actual php files are a mountain to read through just to find these two (seemingly) small needs.

Dannii

Are you sure you need to use smf_api.php instead of SSI.php? I'm not familiary with smf_api.php, but I know SSI.php can do these simply and a whole lot more, and allows you to easily use the user_info array.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Advertisement: