15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Replace "guest name"-field with variable

Author Guest
#1 | Posted: 24 Sep 2013 17:11 
Hi to all,

I have a website with a basic login system. I dont want to integrate minibb completely. I just want to check if a session_id is set already , and when its set go get the username and post it instead of letting guests choose their nickname.
Does anyone know wich file i'll want to edit?

Thank you a lot in advance :)

Author Paul
Lead Developer
#2 | Posted: 24 Sep 2013 21:46 | Edited by: Paul 
MiniBB has just two files for authorization/logging procedure:

- bb_func_login.php - contains the code to handle the login routine itself, i.e. when a user submits the "Login" button after entering Username/Password on the main page, or internal thread pages. Most of the routine could be caught in setup_options.php or bb_specials.php, if you have something significantly different. In other cases, it's better to leave this file by default, then it will be easier in upgrades. But it's up to you.

- bb_cookie.php - the set of functions, which read the authorization cookie, parse its value and consider, if user is logged or not.

Most possibly you should take a look in both of files. Hope you know what to do next.
Good luck!

Specific miniBB Support Forums / Specific / Replace "guest name"-field with variable Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB