subdomains or subdirectories using the same db for users?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
schwim
Registered User
Posts: 120
Joined: Sat Jun 04, 2005 8:03 am

subdomains or subdirectories using the same db for users?

Post by schwim » Thu May 23, 2013 6:27 pm

Hi there everyone,

I'm playing around with an idea which would require separate forums to be running on their own subdomains while sharing the same phpbb_users. Is such a thing even possible?

If not any ideas on something that might allow similar functionality would be greatly appreciated.

Thanks for your time!
json

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21724
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: subdomains or subdirectories using the same db for users

Post by Mick » Thu May 23, 2013 6:44 pm

schwim wrote:If not any ideas on something that might allow similar functionality would be greatly appreciated
Please explain what you would like your end product to be.
"The more connected we get the more alone we become" - Kyle Broflovski

schwim
Registered User
Posts: 120
Joined: Sat Jun 04, 2005 8:03 am

Re: subdomains or subdirectories using the same db for users

Post by schwim » Thu May 23, 2013 6:57 pm

Hi there Mick and thanks for the reply.

I'm considering a network of enthusiast sites, separated by subdomains/subdirectories. For instance:

hampsters.umbrellasite.com

and

parachuting.umbrellasite.com

etc., ad nauseum.

Each site would have their own forum, located in their subdomain/subdirectory, but I'm trying to figure out if I can have the systems share the userbase, so if bob wants to participate in more than one forum, he doesn't have to manage a user account for more than one subdomain.

It seems like having the forums all use the same database and each forum using a different prefix while they all use the same prefix for the users might work. I'm not savvy enough to know this, however, so I thought I would ask.

Thanks again for taking the time to reply,
json

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21724
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: subdomains or subdirectories using the same db for users

Post by Mick » Thu May 23, 2013 7:04 pm

Wouldn't it just be easier to have one board with a category called "hampsters" and another called "parachuting" etc? That way Bob would be able to post wherever he's allowed without membership issues.
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
Phaxe
Registered User
Posts: 12
Joined: Mon May 06, 2013 10:34 pm
Location: Norway
Name: Christian

Re: subdomains or subdirectories using the same db for users

Post by Phaxe » Thu May 23, 2013 7:06 pm

As Mick said, would be easier that way :)

But if you really want it the way you describe, this could probably help you get started

https://www.phpbb.com/kb/article/share- ... bb-boards/

schwim
Registered User
Posts: 120
Joined: Sat Jun 04, 2005 8:03 am

Re: subdomains or subdirectories using the same db for users

Post by schwim » Thu May 23, 2013 7:06 pm

The site will contain much more than the forum, as it's part of a system that includes classifieds, links, downloads, etc. The point of the segregation is to have it feel more like a dedicated community and less like a site that's trying to cater to 27 completely different interests.

schwim
Registered User
Posts: 120
Joined: Sat Jun 04, 2005 8:03 am

Re: subdomains or subdirectories using the same db for users

Post by schwim » Thu May 23, 2013 7:08 pm

Phaxe wrote:As Mick said, would be easier that way :)

But if you really want it the way you describe, this could probably help you get started

https://www.phpbb.com/kb/article/share- ... bb-boards/
Thanks very much for the link. I'll try to find something a little less antique-y :D

User avatar
Phaxe
Registered User
Posts: 12
Joined: Mon May 06, 2013 10:34 pm
Location: Norway
Name: Christian

Re: subdomains or subdirectories using the same db for users

Post by Phaxe » Thu May 23, 2013 7:14 pm

schwim wrote:Thanks very much for the link. I'll try to find something a little less antique-y :D
Works the same way in phpBB3 too. The TABLES are defined so you can just do the same based on what I linked. Same file location too.

schwim
Registered User
Posts: 120
Joined: Sat Jun 04, 2005 8:03 am

Re: subdomains or subdirectories using the same db for users

Post by schwim » Thu May 23, 2013 7:20 pm

This topic seems to disagree, with 8 pages of people not getting it to work sans any serious issues, if I'm reading it correctly.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51889
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: subdomains or subdirectories using the same db for users

Post by Brf » Thu May 23, 2013 7:59 pm

Phaxe wrote: Works the same way in phpBB3 too. The TABLES are defined so you can just do the same based on what I linked.
Nope. That article only works for phpBB2.
With phpBB3, your permissions will not work properly.

User avatar
Phaxe
Registered User
Posts: 12
Joined: Mon May 06, 2013 10:34 pm
Location: Norway
Name: Christian

Re: subdomains or subdirectories using the same db for users

Post by Phaxe » Thu May 23, 2013 8:00 pm

Brf wrote:Nope. That article only works for phpBB2.
With phpBB3, your permissions will not work properly.
Yea I know, but its the closest you get without too much modification no?

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51889
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: subdomains or subdirectories using the same db for users

Post by Brf » Thu May 23, 2013 8:02 pm

What good is it if the permisisons do not work?

If you go to the previously linked article:
schwim wrote:This topic
and go back to the very first page, it tells how to fix that problem.

schwim
Registered User
Posts: 120
Joined: Sat Jun 04, 2005 8:03 am

Re: subdomains or subdirectories using the same db for users

Post by schwim » Thu May 23, 2013 8:27 pm

thanks very much, BRF. I'm trying to hop around the 100 posts in the topic, looking for the fixes listed for various issues, but I'm breaking more than I'm fixing unfortunately. I'll give it the old college try for a while longer and just figure out another way to do what I'd like to do via other means if I can't get it working seamlessly.

Thanks for your help, everyone!
json

Locked

Return to “[3.0.x] Support Forum”