Forums

Same content, but several instances (7 posts)

  1. iovialis
    Member
    Posted 6 months ago #

    I am looking for following solution and want to ask, how this is possible:

    Using 2 or more instances with the same content (posts, pages, comments, categories), but different settings for WordPress (themes, widgets, plugins).

    I tried to copy all tables of the WP-DB ("Master") to another ("Slave"), but left only the wp_options and used an own one for that new instance. This worked and would fit my need.

    The only problem: If someone comments at the second instance and I do a DB-replication from "Master" to "Slave", these comments are overwritten; also there would be a time delay until the updates of the "Master" are copied to "Slave".

    Is there a solution to use several "Option-tables" for different WP-Instances, but all other tables with content for 2 or more WP-installations?

    Thanks for help!

  2. SwansonPhotos
    Member
    Posted 6 months ago #

    You seem quite adapt at these tasks...the only thing I can suggest is reviewing this article :table prefix (as used in WPMU, for example).

  3. shirazdrum
    Member
    Posted 6 months ago #

  4. iovialis
    Member
    Posted 6 months ago #

    @shirazdrum: I'd like to have a subdomain for mobile devices, using the WordPress Mobile Pack.

    @SwansonPhotos: Thanks, I was thinking about this solution, too: Using the table prefix 'wp_' for the main installation, and e.g. 'wp_mob_' only for the option-table at the second instance.

    The question is, how (and where) to tell WordPress to use different option-tables, but the same other tables. I was thinking about a "core hack" to add a second prefix at the second instance in all files, which use the option-table. But which files are effected? And is there a more "beautiful" solution?

  5. SwansonPhotos
    Member
    Posted 6 months ago #

    There is a solution to your issue as long as you try to think of a workaround and not 'it must be done this way'.

  6. SwansonPhotos
    Member
    Posted 6 months ago #

    Also, try WPTouch and for measure pull one of my sites on a mobile device.

  7. shirazdrum
    Member
    Posted 6 months ago #

    You are trying to reinvent the wheel and the hard way at that too. As Swanson pointed out, you can use already made plugins that do quite well for what you need. Another option is to use a separate style-sheet for mobile devices:

    http://www.smashingmagazine.com/2010/11/03/how-to-build-a-mobile-website/

Reply

You must log in to post.

About this Topic