Using Rezgo Plugin 2.1.1 in MultiSite
-
MultiSite doesn’t work in Rezgo due to pathing issues. This needs to be fixed in the Rezgo plugin, but for now I made the following changes.
First, don’t install it as a Network plugin, but rather on individual sites.
Then before activation, make the following change in config.rezgo.php from:
define("REZGO_DIR", strstr(preg_replace('/(https?\:\/\/)/', '', WP_PLUGIN_URL), '/') . "/$plugin_dir/rezgo"); // The web root you want to precede links, the default is "" (empty) for root // to change to your own custom directory, add it like /my_directory or /my/directory define("REZGO_URL_BASE", strstr(preg_replace('/(https?\:\/\/)/', '', WP_PLUGIN_URL), '/') . "/$plugin_dir");
to:
if ( is_multisite() ) { $new_plugin_url = str_replace(get_home_url().'/', network_home_url(), WP_PLUGIN_URL); define("REZGO_DIR", strstr(preg_replace('/(https?\:\/\/)/', '', $new_plugin_url), '/') . "/$plugin_dir/rezgo"); // The web root you want to precede links, the default is "" (empty) for root // to change to your own custom directory, add it like /my_directory or /my/directory define("REZGO_URL_BASE", strstr(preg_replace('/(https?\:\/\/)/', '', $new_plugin_url), '/') . "/$plugin_dir"); } else { define("REZGO_DIR", strstr(preg_replace('/(https?\:\/\/)/', '', WP_PLUGIN_URL), '/') . "/$plugin_dir/rezgo"); // The web root you want to precede links, the default is "" (empty) for root // to change to your own custom directory, add it like /my_directory or /my/directory define("REZGO_URL_BASE", strstr(preg_replace('/(https?\:\/\/)/', '', WP_PLUGIN_URL), '/') . "/$plugin_dir"); }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Using Rezgo Plugin 2.1.1 in MultiSite’ is closed to new replies.