[DEV] Multiple Boards on a Single Database

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Suggested Hosts
the pips
Registered User
Posts: 511
Joined: Sat Mar 21, 2009 5:33 pm

[DEV] Multiple Boards on a Single Database

Post by the pips »

I'm developing a couple of mods that required a different set of categories, forums and posts depending on context. However, it was imperative that I didn't have to maintain a separate database, require users to login again or any other fudge.

Having had a eureka moment I realised it was actually quite straightforward so as promised I'm putting it together as a mod.
Modification Name: Multiple Boards
Author: The Pips

Modification Description: Allows one database to contain multiple boards but only maintain a single set of groups, users.

Confused? Imagine you've set up your 1st instance of PHPbb but you now want to set up a second. If you use the same config.php both instances will now be accessing exactly the same data. This mod will allow you to restrict which forums will be visible on each site. All you need to do is set a variable to identify which site you're on.

Modification Version: 0.0.1 Dev

Requirements: You'll need to modify your code to pass the board number required.

Features: Feature List.
  • Supports up to 10 different boards Done
  • Board selection by Forum ACP Done
Screenshots:
http://arvclub.co.uk/images/screenshots ... iboard.PNG
Demo URL:
http://multiboard.arvclub.co.uk Done

Modification Download: http://www.development.arvclub.co.uk/do ... 00.0.1.zip

Regards
Doug
Last edited by the pips on Sat Oct 20, 2012 8:03 pm, edited 10 times in total.
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany

Re: [DEV] Multiple Boards on a Single Database

Post by darkonia »

amazing great, thx for your work on this long awaited mod!
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
davide_at_debian
Registered User
Posts: 37
Joined: Thu Mar 22, 2012 4:43 pm

Re: [DEV] Multiple Boards on a Single Database

Post by davide_at_debian »

+1 mate, waiting for news!
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany

Re: [DEV] Multiple Boards on a Single Database

Post by darkonia »

can i use for every board a own style?
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [DEV] Multiple Boards on a Single Database

Post by keith10456 »

Following closely :arrow:
User avatar
Blue Blood
Registered User
Posts: 767
Joined: Sat Apr 11, 2009 7:09 am
Location: U§A
Name: Blue Blood

Re: [DEV] Multiple Boards on a Single Database

Post by Blue Blood »

This is great!!!

You have just organized my board!!!

Can't wait!!
the pips
Registered User
Posts: 511
Joined: Sat Mar 21, 2009 5:33 pm

Re: [DEV] Multiple Boards on a Single Database

Post by the pips »

darkonia wrote:can i use for every board a own style?
That's the plan. Each board will be able to have it's own default style.

As an example, I'm developing a number of mods. I'll be setting each of them up with their own code base but working on a single database. Users will only need to register once and then they'll be able to swap between the different boards,

Regards
Doug
User avatar
Meis2M
Translator
Posts: 1018
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری

Re: [DEV] Multiple Boards on a Single Database

Post by Meis2M »

Subscribe topic & Bookmark topic
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
Jessica
Former Team Member
Posts: 4342
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica

Re: [DEV] Multiple Boards on a Single Database

Post by Jessica »

interesting. will be keeping an eye on this
Pro-choice, Atheist, Pro-LGBT rights
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. - Albert Einstein
Alfadaveuk
Registered User
Posts: 18
Joined: Sun Jul 29, 2012 3:49 pm

Re: [DEV] Multiple Boards on a Single Database

Post by Alfadaveuk »

hello doug looks interesting :)

would this allow a social network style mod on 1 board and a normal portal on another ?????

doug could u make that drop down box perm open or tabs instead as some users miss items :)
the pips
Registered User
Posts: 511
Joined: Sat Mar 21, 2009 5:33 pm

Re: [DEV] Multiple Boards on a Single Database

Post by the pips »

Alfadaveuk wrote:hello doug looks interesting :)

would this allow a social network style mod on 1 board and a normal portal on another ?????

doug could u make that drop down box perm open or tabs instead as some users miss items :)
Sure, you can have different styles.

I only threw a menu together to demonstrate the features. To use this you'd modify your index or portal to set the correct board.

Regards
Doug
User avatar
Meis2M
Translator
Posts: 1018
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری

Re: [DEV] Multiple Boards on a Single Database

Post by Meis2M »

this mod means
we can use one database on multidomain?

means use one database for example.com , example.org , example.net ?
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
Blue Blood
Registered User
Posts: 767
Joined: Sat Apr 11, 2009 7:09 am
Location: U§A
Name: Blue Blood

Re: [DEV] Multiple Boards on a Single Database

Post by Blue Blood »

When I click
View unanswered posts • View unread posts • View new posts • View active topics
Will it show for all the boards?
User avatar
master412160
Registered User
Posts: 314
Joined: Sat May 22, 2010 5:45 pm
Name: Max Pen

Re: [DEV] Multiple Boards on a Single Database

Post by master412160 »

I'm wondering to what the user asked in post 1 and 2 above.

So with this mod I would be able to tweak anything of a board A and those changes wouldn't be present on board B?

Also nice mod!
Regards, Matt.
the pips
Registered User
Posts: 511
Joined: Sat Mar 21, 2009 5:33 pm

Re: [DEV] Multiple Boards on a Single Database

Post by the pips »

Meis2M wrote:this mod means
we can use one database on multidomain?

means use one database for example.com , example.org , example.net ?
Yes that's right. I've set up multiboard.arvclub.co.uk and development.arvclub.co.uk. Each one uses it's own code base but points at the same database. It's an excellent way to make sure my mods don't interfere with others.

Regards
Doug

Return to “[3.0.x] MODs in Development”