Multiple installations on a partial shared database

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
loukas79
Registered User
Posts: 55
Joined: Sat Feb 11, 2023 1:47 pm

Multiple installations on a partial shared database

Post by loukas79 »

Hello guys.
If in the phpbb root folder, i create additional phpbb installations in subfolders, is there a way for all these installations to use a common database for specific features? For example users, groups and ranks.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6600
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Multiple installations on a partial shared database

Post by thecoalman »

Nothing is impossible but that would require significant modification/extension. Nothing I'm aware of.

Just an FYI, you can apply different styles to individual forums creating the illusion of multiple forums. Different logos, color etc. Couple of minor edits to overall_header.html and they could look fully independent. Not sure what reason you would have for multiple installs other than that?
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
loukas79
Registered User
Posts: 55
Joined: Sat Feb 11, 2023 1:47 pm

Re: Multiple installations on a partial shared database

Post by loukas79 »

thecoalman wrote: Tue Feb 04, 2025 1:39 am Nothing is impossible but that would require significant modification/extension. Nothing I'm aware of.

Just an FYI, you can apply different styles to individual forums creating the illusion of multiple forums. Different logos, color etc. Couple of minor edits to overall_header.html and they could look fully independent. Not sure what reason you would have for multiple installs other than that?
My purpose is an experimental project and i want to create a forum that will have the same users and each installation will have a different language and boards. That is, the main domain will have an official language of GB English, with the structure site /my_domain.com/index.php
In the header navbar there will be a language switch, which will redirect to another installation inside the root folder and will have a structure /my_domain.com/es/index.php
Now the es subfolder will have Spanish installed as the default language and the table will have Spanish only categories and topics.
The same will be done with other subfolders, eg it, fr, bg, etc.
I have thought of another way for something like this, but i don't know how to translate the links and their descriptions from one language to another, which come from plugins like pages, header link etc. I will face the same problem again with static pages, for example from the pages add-on. I don't think i can insert language variables for text inside the pages mod and site maker.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6600
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Multiple installations on a partial shared database

Post by thecoalman »

The language is set by the user when they register so that is probably not something you want to mess with anyway. That only controls the language for common things like "notification", "post reply" and "submit" for example. Topic titles, posts etc are whatever language they are posted in.

Not sure if there is any extension for changing the language for anonymous users per forum but it shouldn't be that difficult.
loukas79 wrote: Tue Feb 04, 2025 1:42 pm In the header navbar there will be a language switch,
You can do this with the jumpbox.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
loukas79
Registered User
Posts: 55
Joined: Sat Feb 11, 2023 1:47 pm

Re: Multiple installations on a partial shared database

Post by loukas79 »

Τhecoalman, i'm sure it all does and there are certainly ways that some have created for their own use. Because i have accounts on some blackhat forums on the darkweb (only to those running on phpBB :lol: :lol: ) and i have seen in phpbb installations known extensions working in strict mode (sorry, but i am allergic to javascript :mrgreen: ), while the normal versions do not. The day before yesterday i used this extension https://www.phpbb.com/customise/db/exte ... bcode_box/ in strict mode in such a forum and it worked perfectly.
When i asked the admin how he did it, he said he replaced the javascript junk with some python and html. But they don't make them available to the public and i have found many modified extensions, but also unpublished ones.
Anyway, thanks for your time and answers. I will experiment in my spare time.

Return to “[3.3.x] Support Forum”