Re: Login in and out via the API [message #31119 is a reply to message #31112] |
Mon, 03 April 2006 13:51 |
Ilia
Messages: 13241 Registered: January 2002
Karma:
|
Senior Member Administrator Core Developer |
|
|
matt(at)bikernight(dot)co(dot)uk wrote on Sun, 02 April 2006 16:36 | HI
I've managed to get my own registration script to insert a corresponding record in the fud registration table using fud_add_user. I've also disabled users from being able to register directly to the fud forum as I want them to use my own registration and login. When a user logins into my site I also call external_fud_login to set the correct information for the forum. Then they log out of my site I also call external_fud_logout.
|
That's is correct.
Quote: |
However, I don't want them to see the logout link within the forum templates. Nor do I want them to be able to view or change their SETTING ( they can if they click on the User_CP link)!
|
The simple solution is to edit the usercp.tmpl template and remove the User CP and the Logout links.
Quote: |
Also if they are NOT logged in and looking at the forums and suddenly decide to post a comment, they are show
"Login Form
ERROR: Insufficient Privileges
Anonymous users are not allowed to create topics."
followed by the fud forum login.
I need them to be redirected to my login.
|
The permissions error is handled via invl_inp_err() function inside err.inc.t, change it to redirect the to the desired page.
FUDforum Core Developer
|
|
|