[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!
Scam Warning
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 » Mon Aug 06, 2012 6:08 pm

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
Contact:

Re: [DEV] Multiple Boards on a Single Database

Post by darkonia » Mon Aug 06, 2012 6:44 pm

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 » Tue Aug 07, 2012 10:49 am

+1 mate, waiting for news!

User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [DEV] Multiple Boards on a Single Database

Post by darkonia » Tue Aug 07, 2012 11:40 am

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
Blue Blood
Registered User
Posts: 762
Joined: Sat Apr 11, 2009 7:09 am
Location: U§A
Name: Blue Blood
Contact:

Re: [DEV] Multiple Boards on a Single Database

Post by Blue Blood » Wed Aug 08, 2012 4:40 am

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 » Wed Aug 08, 2012 7:06 am

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: 870
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] Multiple Boards on a Single Database

Post by Meis2M » Wed Aug 08, 2012 8:37 am

Subscribe topic & Bookmark topic
phpBB persian international support
Ultimate SEO Friendly URL - Extension
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM

User avatar
Jessica
Former Team Member
Posts: 4341
Joined: Sun Jul 18, 2010 2:53 pm
Location: Pennsylvania, USA
Name: Jessica
Contact:

Re: [DEV] Multiple Boards on a Single Database

Post by Jessica » Wed Aug 15, 2012 12:14 am

interesting. will be keeping an eye on this
Please do not PM me for support unless it is absolutely necessary
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 » Wed Aug 15, 2012 10:02 pm

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 » Thu Aug 16, 2012 7:30 pm

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: 870
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] Multiple Boards on a Single Database

Post by Meis2M » Thu Aug 16, 2012 9:47 pm

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
Ultimate SEO Friendly URL - Extension
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM

User avatar
Blue Blood
Registered User
Posts: 762
Joined: Sat Apr 11, 2009 7:09 am
Location: U§A
Name: Blue Blood
Contact:

Re: [DEV] Multiple Boards on a Single Database

Post by Blue Blood » Fri Aug 17, 2012 4:19 am

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
Location: Belgium, Flanders
Name: Max Pen
Contact:

Re: [DEV] Multiple Boards on a Single Database

Post by master412160 » Sat Aug 18, 2012 11:16 am

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!

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 » Sat Aug 18, 2012 8:47 pm

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

Locked

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