runboy
  • Posts: 50
  • Joined: 13/03/2008
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
  • Posts: 1558
  • Joined: 21/10/2008
Originally Posted by: runboy

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?


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


runboy
  • Posts: 50
  • Joined: 13/03/2008
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
  • Posts: 1077
  • Joined: 26/04/2011
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
  • Posts: 50
  • Joined: 13/03/2008
On second thought I guess you can just set up the upload directory as a virtual directory and upload to the same directory
Users browsing this topic
    Forum Jump  
    • You cannot post new topics in this forum.
    • You cannot reply to topics in this forum.
    • You cannot delete your posts in this forum.
    • You cannot edit your posts in this forum.
    • You cannot create polls in this forum.
    • You cannot vote in polls in this forum.

    About Us

    The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

    Powered by Resharper Donate with PayPal button

    Project Twitter Updates

    Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved