Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
Multisite installation w/ BuddyPress with Simple-Press
Avatar
nsbp001
Guest
Guests
Nov 23, 2014 - 2:32 pm
sp_QuotePost Quote

I have a WP Multisite +BP installation on which I would like the BP groups to have their own forums, and for there to be network-wide forums as well. 

I would like for each site in the network to see the same forums, so that it is one community resource,  not a collection of x-number of individual forums.   On each site in the network I would like the forums to be rendered in the theme of that site,  and the URL to be like domain/sitename/forums instead of just being a link to the network main site, i.e., site:1's forum area.  So that is content from site:1, but theme from site:whatever. 

Only the network admin should be able to create group forums, and only the group admin (which might be different than the network admin) can create sub-forums of the group forums.   But anybody with a network account, i.e., has a site on the network, can create a non-group associated forum.  

Is this possible with Simple-Press?  Is your BuddyPress plugin specifically required for this to work? 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 23, 2014 - 4:00 pm
sp_QuotePost Quote

No, sorry, this would not work with simple press... our buddypress integration plugin does integrate a buddypress site with simple press, however, groups are not supported since they are two distinct items...  in buddypress, groups are just a collection of users for social purposes where as in simple press they are used for controlling access and capabilities...  additionally, in multisite mode, there currently is not sort of aggregation of data between network sites...  and users (non admins) are not able to create forums in simple press...

Avatar
nsbp001
Guest
Guests
Nov 27, 2014 - 9:24 pm
sp_QuotePost Quote

Thank your for your response.   Supposing I wanted to do away with group forum, but rather have topics that all in the network can participate in,  would Simple-Press allow for network-wide forums.  That is,  each site on a multisite install being able to see all the same forum topics and responses from their own particular site,  with that rendered in their particular theme?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 27, 2014 - 10:10 pm
sp_QuotePost Quote

No, afraid not... currently, each network site is independent with no data sharing between them... some day, we want to change this, but no ETA...

Avatar
nsbp001
Guest
Guests
Nov 28, 2014 - 1:19 pm
sp_QuotePost Quote

Perhaps this  solution is applicable to Simple Press, found at https://gist.github.com/sc0ttk.....13964bcecc
Code to enable having the main bbPress forums on a separate sub-site. Requires: WP Multisite, BuddyPress on main site and network-activated, bbPress on main site and sub-site

 

Can this be adapted to become a Simple Press plugin?

<?php
/**
* Remove and add a custom function for bbPress' BuddyPress activity filter
*/
function custom_bbp_notifications_fix() {
if ( !defined( 'BBPRESS_FORUMS_BLOG_ID' ) || !BBPRESS_FORUMS_BLOG_ID ) {
return;
}
remove_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications', 10, 5 );
add_filter( 'bp_notifications_get_notifications_for_user', 'custom_bbp_format_buddypress_notifications', 10, 5 );
add_action( 'bbp_template_before_user_topics_created', 'custom_bbp_switch_to_forums' );
add_action( 'bbp_template_before_user_replies', 'custom_bbp_switch_to_forums' );
add_action( 'bbp_template_before_user_favorites', 'custom_bbp_switch_to_forums' );
add_action( 'bbp_template_before_user_subscriptions', 'custom_bbp_switch_to_forums' );
add_action( 'bbp_template_after_user_topics_created', 'custom_bbp_switch_from_forums' );
add_action( 'bbp_template_after_user_replies', 'custom_bbp_switch_from_forums' );
add_action( 'bbp_template_after_user_favorites', 'custom_bbp_switch_from_forums' );
add_action( 'bbp_template_after_user_subscriptions', 'custom_bbp_switch_from_forums' );
}
add_action( 'init', 'custom_bbp_notifications_fix' );
/**
* Format the BuddyBar/Toolbar notifications
*
* @since bbPress (r5155)
*
* @package bbPress
*
* @param string $action The kind of notification being rendered
* @param int $item_id The primary item id
* @param int $secondary_item_id The secondary item id
* @param int $total_items The total number of messaging-related notifications waiting for the user
* @param string $format 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar
*/
function custom_bbp_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
if ( 'bbp_new_reply' == $action ) {
custom_bbp_switch_to_forums();
$action = bbp_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format );
custom_bbp_switch_from_forums();
}
return $action;
}
/**
* @var boolean $custom_bbp_switch
*/
global $custom_bbp_switch;
/**
* Switch to forums blog, if it's not the current blog
*/
function custom_bbp_switch_to_forums() {
global $custom_bbp_switch;
$custom_bbp_switch = ( get_current_blog_id() != BBPRESS_FORUMS_BLOG_ID );
if ( $custom_bbp_switch ) {
// Switch to forum site
switch_to_blog( BBPRESS_FORUMS_BLOG_ID );
}
}
/**
* Switch back to current blog, if not the forums blog
*/
function custom_bbp_switch_from_forums() {
global $custom_bbp_switch;
if ( $custom_bbp_switch ) {
restore_current_blog();
}
$custom_bbp_switch = false;
}

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 29, 2014 - 11:01 am
sp_QuotePost Quote

seems like a lot of superfluous stuff in there dealing with notifications... but seems concept is to switch to a different blog before displaying the forum...  could it work with simple press to do something similar?  perhaps... would have to generate a plugin (to do the switching) to see...  tough part would be knowing when to do the blog switch... has to be early enough for sp environment to be configured for proper loading, but not too early as to mess up the page...  perhaps can try sometime, but this weekend tough being holiday weekend...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 643
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17343
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79590