[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!
Anti-Spam Guide
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 »

Blue Blood wrote:When I click
View unanswered posts • View unread posts • View new posts • View active topics
Will it show for all the boards?
The plan is to restrict the displayed results to only those in the current board. The mods to search.php look to be reasonably straight forward.

Famous last words :lol:

Regards
Doug
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 »

master412160 wrote: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!
Some settings are by their nature global. Really all this mod does is to present a subset of the forums. Each forum can be set to display in 1 or more boards. Of course all of the phpbb features still apply.
Did you have a specific setting you were thinking of?

Regards
Doug
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 »

Assuming that this mod doesn't allow board A and B to have different usergroups then:

A feature that would allow the admin to choose if the usergroups of board A are the same as board B.


Other then that I don't know anything for now to suggest.

Also on your board: multiboard.arvclub.co.uk/ and development.arvclub.co.uk/

the user count don't match. I assume that the mod isn't in effect yet or not working yet? :)

When do you think you'll release this mod? In weeks, months time?

Edit: I also wonder if the user his/her profile info will be the same on board A as on board B?

Or will the only thing similiar to board A and B be the user count and usergroups?

Will the user have the same password, e-mail on board A and B? :P
Last edited by master412160 on Sun Aug 19, 2012 1:09 pm, edited 4 times in total.
Regards, Matt.
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 »

it would be nice if you can release a version for beta testers. :ugeek:
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.
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 »

master412160 wrote:Assuming that this mod doesn't allow board A and B to have different usergroups then:

A feature that would allow the admin to choose if the usergroups of board A are the same as board B.
One of the objectives of this mod was to allow you to have the same users on different boards. If you want to segregate them, I guess they could be put into groups that only have access to the forums for each board.
master412160 wrote: Other then that I don't know anything for now to suggest.

Also on your board: multiboard.arvclub.co.uk/ and development.arvclub.co.uk/

the user count don't match. I assume that the mod isn't in effect yet or not working yet? :)
I'd split them temporarily to test something without affecting the other. Should be ok now.
master412160 wrote: When do you think you'll release this mod? In weeks, months time?
I'm working on putting the first release together right now. Hopefully I'll have a package for download within the week.
master412160 wrote: Edit: I also wonder if the user his/her profile info will be the same on board A as on board B?

Or will the only thing similiar to board A and B be the user count and usergroups?

Will the user have the same password, e-mail on board A and B? :P
Users and their associated information only occur once so all of their details will be the same across every board.

Regards
Doug
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 »

So a custom profile field made on board A would be shown on board B to?

Thanks for the info!
Regards, Matt.
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 »

the pips wrote:
Blue Blood wrote:When I click
View unanswered posts • View unread posts • View new posts • View active topics
Will it show for all the boards?
The plan is to restrict the displayed results to only those in the current board. The mods to search.php look to be reasonably straight forward.

Famous last words :lol:

Regards
Doug
If board A has a new post and I'm on board B and click view new post I would like to see all the new post on all the boards.

I have a Multi Make Car Forum.(Imports)
Board A Honda
Board B Mazda
Board C Nissan
etc
etc
board X Classifieds

I want to keep each Car make segregated to keep the layout clean and minimal but I want all users to be able to see what each board is posting with out switching to see.
Also because the classified section will be a board by it self.

So I would like it so the results show across all the boards.
This would be awesome!!
Maybe a ACP setting to share search results across all boards or single boards.

Thanks!!
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 »

Hi,
I've just posted v0.0.1 Alpha. I haven't had a lot of time recently so I hope I've got everything in there.
If you're feeling adventurous try installing it on a TEST system. I wouldn't want to mess up anyone's live system.

Regards
Doug
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 »

Thanks for the download!

I downloaded it but before I start installing it on a test board I would like to ask if you can write the code for this?
Please don't forget that you need to set the board number. You can do this by setting the appropriate board number in index php or calling set_board(VALUE) where value equals the board.
I don't understand how to do it. :)

Also your demo url is down.
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 »

master412160 wrote:Thanks for the download!

I downloaded it but before I start installing it on a test board I would like to ask if you can write the code for this?
Please don't forget that you need to set the board number. You can do this by setting the appropriate board number in index php or calling set_board(VALUE) where value equals the board.
I don't understand how to do it. :)
Somewhere around line 29 is the call to the display forums function.

Code: Select all

display_forums('', $config['load_moderators'], false, $board);
I've modified the function to accept an additional parameter - $board. To display the standard board you should set this to 1. To display another board set it to 2, 4, 8 etc
The board number is stored in the session table so you don't need to change it anywhere else.
master412160 wrote: Also your demo url is down.
You caught me right in the middle of applying another db mod! Should be ok now.

Regards
Doug
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 »

Somewhere around line 29 is the call to the display forums function.
I made it like this then:

Code: Select all

display_forums('', $config['load_moderators'], false, $board2);
Installed it but I got an error:
Parse error: syntax error, unexpected '=' in /includes/functions_display.php on line 58 when I'm on index.

This is line 58:

Code: Select all

		$sql_where. = ' AND left_id > ' . $root_data['left_id'] . ' AND left_id < ' . $root_data['right_id'];
Also when I go to install:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in createmultiboard.php on line 63
Regards, Matt.
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs

Re: [DEV] Multiple Boards on a Single Database

Post by canonknipser »

$sql_where. = has to be $sql_where .= (space before and not after the dot) ;)
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
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 »

Thank you that fixed it! Only now the install bug remains. :)
Regards, Matt.
User avatar
martin123456
I've Been Banned!
Posts: 726
Joined: Sat Mar 05, 2011 7:44 pm

Re: [DEV] Multiple Boards on a Single Database

Post by martin123456 »

As above on install

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in createmultiboard.php on line 63

Code: Select all

<!-- IF S_CODE_UNTIDY and S_MESS_ON_INDEX Good If_Not_TIDY_Then_SUBMIT -->
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 »

master412160 wrote:Thank you that fixed it! Only now the install bug remains. :)
I've corrected createmultiboard.php and rebuilt the package. Download it from the same place.

Regards
Doug

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