YAFLogo

runboy
  • runboy
  • 77% (Friendly)
  • YAF Lover Topic Starter
10 years ago
I have two different sites with different domains/layout, but content is somewhat similar. I would like to use the same database (users/posts) for forums on both sites.

What is the best way to do this?

Sponsor
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
10 years ago

I have two different sites with different domains/layout, but content is somewhat similar. I would like to use the same database (users/posts) for forums on both sites.

What is the best way to do this?

Originally Posted by: runboy 

By using a remote database server. Please, make Google you friend.

runboy
  • runboy
  • 77% (Friendly)
  • YAF Lover Topic Starter
10 years ago
I am wanting to know how to best setup YAF for this purpose. The 2 sites are on the same server. The database is already located on a different server.

How would you best setup the files? Of course you could have two different sets of files, but then there would be issues with uploaded files/avatars etc. unless you use the same directory for those. Would there be any problems with working under different applications in this scenario?

Another option would be to use the same file set and just differentiate the theme depending on domain.

In the previous forum software I used, you could configure this so it worked great. Just wondered if anybody had done it with YAF

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader YAF Version: YAF 3.1.16
10 years ago
You can use the same database for both forum sites. I've done this already. You just use the same connection string.

As for files such as avatars, etc, those will be stored in the file structure of whichever domain they were uploaded from.

If User3 uploads GIF1 to DomainA, it won't be shown on DomainB because it's not in the same directory on the server. If you store image files ON the database, then you can have two forums with the same content, same users, but you can use two completely different theme designs.

runboy
  • runboy
  • 77% (Friendly)
  • YAF Lover Topic Starter
10 years ago
On second thought I guess you can just set up the upload directory as a virtual directory and upload to the same directory