FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Login in and out via the API
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Login in and out via the API [message #31119 is a reply to message #31112] Mon, 03 April 2006 13:51 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Importing archive mailing lists (existing mailing lists) into FUDforum
Next Topic: File permissions
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Oct 28 06:31:26 GMT 2024

Total time taken to generate the page: 0.05212 seconds