I just discovered about Flarum and honestly, even if you suggest to not use it on a production environnement but unfortunatelly I Will 😉 (Why ? It doesn't matter if I get hacked, since it will be a nice point aswell since I will detect a new bug in Flarum that I will fix ... and repeat this process again and again until it will be more secure ).
Anyway let's talk about my question:
I want to create subdomain for each language, for example:
But this separated forums must have the same user table, in other words ... if one of the users register for an account from ENGLISH forum ... he will be able to login too into the French forum.
And my approach is simple:
- For each forum, I will add prefix to the tables (english_table)
Except users table.
So here come the problem, the code is somehow problematic for me ... I am new and do not know the structure used for flarum nether the framework ... if it was a pure PHP I can make the modifications easily but here I am lost.
Please, what is the function reponsible to add the prefix for users table ? Or, what is the script class that interact with users table ?
Your help is welcomed, thanks.