Step 1 : Set plugin with the parameters of FluxBB.
Step 2 : Migrate user accounts from Piwigo to FluxBB.

After these 2 main steps, the plugin is fully functional and you will not have to return to this pages.

*** For the maintenance of already active connections ***
Maintenance : Synchronize tables (in case an addition, an update or a user deletion mismatched) allows to update passwords and email addresses and see users intruder (But you should not need to use ).

WARNING !! For safety, consider making a backup of your database, especially ###_user tables before any action.
'; $lang['Config_Title'] = 'Plugin setup'; $lang['Config_Disclaimer'] = ' Check the settings of your FluxBB installation and correct them if necessary.
Change, if any, the behavior of the plugin at your convenience.'; $lang['FluxBB_Prefix'] = 'FluxBB Prefix tables :'; $lang['FluxBB_Admin'] = 'Username of the Piwigo administrator.'; $lang['Guest'] = 'Username of the FluxBB Guest user.'; $lang['User'] = '
FluxBB\'s administrator name must be the same
'; $lang['Details'] = 'Level of detail in reports of operations.'; $lang['Details_true'] = ' --> View all details of the results of operations.'; $lang['Details_false'] = ' --> Shows that most of the results of operations'; $lang['Del_Pt'] = 'Removal of topics and posts when the user is deleted.'; $lang['Del_Pt_true'] = ' --> Delete all'; $lang['Del_Pt_false'] = ' --> Don\'t delete topics and posts'; $lang['Confirm'] = 'Delete confirmation on the administration actions in the audit.'; $lang['Confirm_true'] = ' --> Delete confirmation'; $lang['Confirm_false'] = ' --> Confirmation mandatory before actions in audit'; $lang['save_config'] ='Settings saved'; $lang['Audit_Btn'] = 'Audit'; $lang['Sync_Btn'] = 'Synchronization'; $lang['Sync_Title'] = 'Synchronize accounts from Piwigo to FluxBB'; $lang['Sync_Text'] = '
You\'ve already used the plugin to link your Piwigo (plugin update) and / or your FluxBB forum is not empty of users!

-> This means that your forum owns users.

- Synchronization detect the data by comparing the usernames, passwords (encrypted) and their email address in both tables [PrefixPWG]_user and [PrefixFluxBB]_user.
- Then update the table of correspondence as well as password and email address for each account from Piwigo to FluxBB except Piwigo Guest and FluxBB Anonymous.
- Finally indicate mislead orphaned accounts that exist only in one of the 2 ###_user tables.

At the end of the operation, launch an audit and check for possible duplicates users in FluxBB. If so, delete the oldest (sorting FluxBB users according to their date of registration).
'; $lang['Sync_Check_Dup'] = 'Analyzing tables of user accounts of Piwigo and FluxBB to control duplicates'; $lang['Advise_Check_Dup'] = 'Impossible to continue the synchronization if you have duplicates in the User Account of Piwigo or FluxBB.

'; $lang['Sync_Link_Break'] = 'Analysis of repairable links between accounts in Piwigo and FluxBB'; $lang['Sync_Link_Bad'] = 'Analysis of bad relationships between accounts in Piwigo and FluxBB'; $lang['Sync_DataUser'] = 'Analysis of passwords and email addresses between accounts in Piwigo and FluxBB'; $lang['Sync_PWG2FluxBB'] = 'Analysis of existing accounts in Piwigo and missing in FluxBB'; $lang['Sync_FluxBB2PWG'] = 'Analysis of existing accounts in FluxBB and missing in Piwigo'; $lang['Sync_OK'] = 'Synchronization OK

'; $lang['Audit_PWG_Dup'] = 'Audit of Piwigo\'s accounts table'; $lang['Error_PWG_Dup'] = 'Error in Piwigo\'s accounts table, there are duplicates: '; $lang['Advise_PWG_Dup'] = 'WARNING! You must make these corrections in Piwigo before continuing
use Piwigo\'s user manager to resolve the problem.
'; $lang['Audit_FluxBB_Dup'] = 'Audit of FluxBB\'s accounts table'; $lang['Error_FluxBB_Dup'] = 'Error in FluxBB\'s accounts table, there are duplicates: '; $lang['Advise_FluxBB_Dup'] = 'WARNING! You must make these corrections in FluxBB before continuing
use the icons to delete users from FluxBB and resolve the problem.
'; $lang['Audit_Link_Break'] = 'Audit of repairable links between Piwigo and FluxBB accounts'; $lang['Error_Link_Break'] = 'Broken link between Piwigo and FluxBB accounts: '; $lang['New_Link'] = 'Account linked: '; $lang['Audit_Link_Bad'] = 'Audit of bad links between Piwigo and FluxBB accounts'; $lang['Error_Link_Del'] = 'Error in the link table between 2 users: '; $lang['Link_Del'] = 'Remove of link: '; $lang['Error_Link_Dead'] = 'Error in the link table, dead links: '; $lang['Link_Dead'] = 'Remove of dead links '; $lang['Error_Link_Dup'] = 'Error in the link table, there are duplicates: '; $lang['Link_Dup'] = 'Remove of duplicates '; $lang['Audit_Synchro'] = 'Audit of the synchronization of passwords and email addresses between Piwigo and FluxBB accounts'; $lang['Error_Synchro'] = 'Bad synchronization of account: '; $lang['Error_Synchro_Pswd'] = 'on password'; $lang['Error_Synchro_Mail'] = 'on email address'; $lang['Audit_Synchro_OK'] = ' : Data synchronization OK'; $lang['Sync_User'] = 'Account synchronization : '; $lang['Audit_PWG2FluxBB'] = 'Audit of the existing accounts in Piwigo and missing in FluxBB'; $lang['Error_PWG2FluxBB'] = 'The Piwigo account not in FluxBB: '; $lang['Add_User'] = 'Adding in FluxBB of account: '; $lang['Audit_FluxBB2PWG'] = 'Audit of the existing accounts in FluxBB and missing in Piwigo'; $lang['Error_FluxBB2PWG'] = 'The FluxBB account not in Piwigo: '; $lang['Del_User'] = 'Removal from FluxBB of account : '; $lang['Audit_OK'] = 'Audit OK

'; $lang['Mig_Btn'] = 'Migration'; $lang['Mig_Title'] = 'Migration of accounts from Piwigo to FluxBB'; $lang['Mig_Text'] = '
USE ONLY IF you have never used the plugin to link Piwigo to FluxBB AND IF your forum is empty of users !!!

--> In this case, your table [PrefixFluxBB]_user of FluxBB must be empty of any account except the 2 accounts guest and administrator.

- The migration will first remove the links between accounts of Piwigo and FluxBB.
- Then WILL DELETE ALL FluxBB ACCOUNTS except the 2 accounts guest and administrator.

WARNING IF YOU HAVE ANY SPECIAL ACCOUNTS IN FluxBB == DO NOT USE THIS FUNCTION !!!

- Finally, the migration will create all Piwigo\'s accounts in FluxBB, except the guest.

If errors occur during operation, correct the cause of the problem and retry the operation of migration (at the time only you can renew the migration).
'; $lang['Mig_Disclaimer'] = '
NEVER PERFORM MIGRATION FOR UPDATING !!!
'; $lang['Mig_Start'] = 'Migration of accounts from Piwigo to FluxBB'; $lang['Mig_Del_Link'] = 'Deleting links between accounts of Piwigo and FluxBB'; $lang['Mig_Del_AllUsers'] = 'Deleting FluxBB accounts'; $lang['Mig_Del_User'] = 'Deletion of the account: '; $lang['Mig_Add_AllUsers'] = 'Transferring Piwigo accounts'; $lang['Mig_Add_User'] = 'Transfer of account: '; $lang['Mig_End'] = 'Migration done !'; $lang['Title_Tab'] = 'Register_FluxBB - Version: '; // --------- Starting below: New or revised $lang ---- from version 2.2.2 $lang['No_Reg_advise'] = 'About the registration of users on the forum FluxBB

For better integration, it is advisable to make the following 3 changes to your FluxBB forum (Warning: These changes will disappear when updating the forum):
* In FluxBB\'s administration panel, change "Allow new registrations" to NO (in: Options - Registration)

* Modify the file : [FluxBBRoot]/lang/English/register.php by replacing the following line:
\'No new regs\' => \'This forum is not accepting new users.\'
with :
\'No new regs\' => \'<a href="http://[YourPiwigoRoot]/register.php" > Go here to register </a><br/><br/>\'

Of course you should also make the same change for other languages of your FluxBB forum.

* Modify the file : [FluxBBRoot]/login.php by replacing the line 69:
message($lang_login[\'Wrong user/pass\'].\'<a href="login.php?action=forget">
with :
message($lang_login[\'Wrong user/pass\'].\'<a href="../[VotreRacineDePiwigo]/identification.php">

and at line 216:
<a href="login.php?action=forget" tabindex="5">

with :
<a href="../[VotreRacineDePiwigo]/identification.php" tabindex="5">


'; // --------- End: New or revised $lang ---- from version 2.2.2 ?>