Title: Make it multisite compatible
Last modified: August 20, 2016

---

# Make it multisite compatible

 *  [Fee](https://wordpress.org/support/users/wdfee/)
 * (@wdfee)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/make-it-multisite-compatible/)
 * Yeah, cool plugin! And it works out of the box 🙂 Big thanks to you!
 * Request: Make it multisite / multinetwork compatible. Yes, some people have multiple
   buddypress communities in one install. Just change this:
    In class bp_gfold line
   122-123 to:
 *     ```
       if ( is_multisite() ){
       	$this->repo_root = WP_CONTENT_DIR.'/'.$this->get_pref('path').'/'.BP_ROOT_BLOG.'/'.$this->get_pref('path');
       	$this->repo_root_url = WP_CONTENT_URL.'/'.$this->get_pref('path').'/'.BP_ROOT_BLOG.'/'.$this->get_pref('path');
           } else {
       	$this->repo_root = WP_CONTENT_DIR.'/'.$this->get_pref('path');
       	$this->repo_root_url = WP_CONTENT_URL.'/'.$this->get_pref('path');
       }
       ```
   
 * This works for me 🙂
 * [http://wordpress.org/extend/plugins/buddypress-group-folders/](http://wordpress.org/extend/plugins/buddypress-group-folders/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Fee](https://wordpress.org/support/users/wdfee/)
 * (@wdfee)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/make-it-multisite-compatible/#post-3576324)
 * Sorry, little mistake: there’s a trailingslash to much. To be sure it is placed
   correctly, i did it like this now:
 *     ```
       if ( is_multisite() ){
       	$this->repo_root = trailingslashit(WP_CONTENT_DIR.'/'.$this->get_pref('path')).BP_ROOT_BLOG.'/'.$this->get_pref('path');
       	$this->repo_root_url = trailingslashit(WP_CONTENT_URL.'/'.$this->get_pref('path')).BP_ROOT_BLOG.'/'.$this->get_pref('path');
       } else {
       	$this->repo_root = WP_CONTENT_DIR.'/'.$this->get_pref('path');
       	$this->repo_root_url = WP_CONTENT_URL.'/'.$this->get_pref('path');
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Make it multisite compatible’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-group-folders.svg)
 * [BuddyPress Group Folders](https://wordpress.org/plugins/buddypress-group-folders/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-group-folders/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-group-folders/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-group-folders/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-group-folders/reviews/)

## Tags

 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * 1 reply
 * 1 participant
 * Last reply from: [Fee](https://wordpress.org/support/users/wdfee/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/make-it-multisite-compatible/#post-3576324)
 * Status: not resolved