[Plugin: Connections] Support multisite in single mode
-
Hello All,
I patched connections.php for support multisite with a new feature to use main table as global.
here the patch:/***************************************************************/ /* goal: To run Connections on a multisite as single site mode, /* add to wp-config.php: define('CONCT_MULTISITE_GLOBAL', true); /* /***************************************************************/ /* Changes between lines 225 to 240 */ if ( ! defined('CONCT_MULTISITE_GLOBAL') ) define ('CONCT_MULTISITE_GLOBAL', false); if ( is_multisite() && CONCT_MULTISITE_GLOBAL ) $cnct_prefix = $wpdb->base_prefix; else $cnct_prefix = $wpdb->prefix; define('CN_ENTRY_TABLE', $cnct_prefix . 'connections'); define('CN_ENTRY_ADDRESS_TABLE', $cnct_prefix . 'connections_address'); define('CN_ENTRY_PHONE_TABLE', $cnct_prefix . 'connections_phone'); define('CN_ENTRY_EMAIL_TABLE', $cnct_prefix . 'connections_email'); define('CN_ENTRY_MESSENGER_TABLE', $cnct_prefix . 'connections_messenger'); define('CN_ENTRY_SOCIAL_TABLE', $cnct_prefix . 'connections_social'); define('CN_ENTRY_LINK_TABLE', $cnct_prefix . 'connections_link'); define('CN_ENTRY_TABLE_META', $cnct_prefix . 'connections_meta'); define('CN_TERMS_TABLE', $cnct_prefix . 'connections_terms'); define('CN_TERM_TAXONOMY_TABLE', $cnct_prefix . 'connections_term_taxonomy'); define('CN_TERM_RELATIONSHIP_TABLE', $cnct_prefix . 'connections_term_relationships');
See discussion with simllar request for wppa (Wp Photo Album Plus) http://wordpress.org/support/topic/plugin-wp-photo-album-plus-multisite-support-switch-local-to-global-set-option-request?replies=10 and finally accepted as new option.
Request: Can you integrate this feature in next release ?
To see patch in action :
– http://www.cieuxinternational.org/en/community/interreligious/
– http://www.cieuxinternational.org/paris-11/en/local-commitee/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: Connections] Support multisite in single mode’ is closed to new replies.