good day dear laserlight,
first of all - many many thanks for the quick reply. Great to hear from you.
laserlight;11065717 wrote:From what I see, this plugin likely uses the same database as the one used by the Wordpress installation, hence if you have four different Wordpress installations, they will each have their own data for wp-participants-database. Therefore, the simple answer is: no, there is no way / method to run two or more sites on 1 instance of wp-participants-database.
The complex answer is of course yes, there is a way / method to run two or more sites on 1 instance of wp-participants-database, i.e., by modifying the plugin, but if you don't already know how to do this, your best bet is to contact the author, and you may need to pay the author or some other experienced Wordpress plugin developer to do this for you.
i like your words - since they encourage me in going ahead.
Years ago i had soemthing similar to do.
now i mused some times about this thing and thought we can do it like so: – regarding the the idea of running on a single database for multiple instances
Well – if we want to go like this and are aiming for the following:
creating two instances of WP on a single domain. For example,
Like so:
wp1.domain.com and
wp2.domain.com ….to use a single database (same comments/posts and yes: same Participant-database-plugin that you mention – cf. https://wordpress.org/plugins/participants-database/ )
The simplest way of doing that is just conditionally defining the environment variables in wp-config.php like this:
/** Define alternate home and siteurl based on $_SERVER host var */
if ( strpos ( $_SERVER['SERVER_NAME'], 'wp2' ) !== false ) {
define( 'WP_HOME', 'http://wp2.domain.com' );
define( 'WP_SITEURL', 'http://wp2.domain.com' );
}
laserlight with this – i guess that this may do the trick:
What do you think!?