Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress – Custom Role Names

Published on September 25th, 2015 by RLsARc

got an issue regarding Stephen Edgar – Netweb – bbPress – Custom Role Names (Link)

I change Keymaster role name to Administrator. The plugin works fine w/ logged in users but logged off users still views as Keymaster role name.

Hoping for answers. Thanks!

Allowing users to edit/delete their own posts

Published on September 25th, 2015 by vtroia

Is there a way to allow users to edit/delete their own posts? I know there is a setting that allows users up to a specified amount of time, but what happens after that time passes? For example, let’s say the forum is being used to advertise items for sale. Once the item sells, then what? It would be nice if the user can go back and edit the info or delete the post altogether. Is that possible?

unable to create a forums permalink

Published on September 24th, 2015 by thrivehau

I’m trying to follow https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ step 6, and every time I make a “forums page” the permalink becomes “forums-2” and I can’t edit it to just “forums”, like there’s already a link with that “forums” even though I don’t have a “forums” page already.

When I delete the forums-related pages, the mydomain.com/forums is still there.

I tried the method 2 from the codex, but I do not like it as the Home > forums is there and when I click on forums, it takes me to a blank page.

How do I fix this permalink issue?

Code to find the user subscribed topics

Published on September 24th, 2015 by nikhilnaik

Hello All,

I am using a buddypress+bbpress intergrated site, hence the bbpress profiles are disabled. Only buddypress profiles are made visible because of which I can’t figure out which user is subscribed to which forum. Is there a function or a shortcode using which I can display on the user dashboard the topics/forums he is subscribed to?

Thanks.

Email being sent out to all users & not just subscribed users

Published on September 24th, 2015 by nikhilnaik

Hello All,

I have a buddypress & bbpress integrated site. I am using buddypress groups inside which the bbpress forums exists. There are about 4 groups with 30 members in each group and I have used a “invert subscribe” code (in my functions file), which I came across on one of the threads here. It by default makes the members of the group to be subscribed to the forum and receive email alerts for every thread/topic created.

But now after I installed the Postman email plugin, I noticed that the email notification meant for the members of the group are being sent out to the members of all the group and all the 120+ users on the site. How can I avoid this and see to it that the emails are being sent out only to the particular group members.

Here is the invert subscribe code that I am using:

add_filter( 'bbp_get_user_subscribe_link', 'invert_get_user_subscribe_link', 10, 4 ); //invert forum subscription
add_filter( 'bbp_is_user_subscribed_to_forum', 'invert_is_user_subscribed_to_forum', 10, 4 ); //invert forum subscription
add_filter( 'bbp_get_forum_subscribers', 'invert_get_forum_subscribers' ); //invert forum subscription
add_filter( 'bbp_is_user_subscribed', 'invert_is_user_subscribed', 10, 4 ); //invert forum subscription

function invert_is_user_subscribed($retval, $user_id, $object_id, $subscribed_ids) {
	if (get_post_type( $object_id ) == bbp_get_forum_post_type())
		return !$retval;
	else	
		return $retval;
}

function strContains($needle, $haystack) {
	if (strpos($haystack, $needle) !== false) {
		return true;
	} else {
		return false;
	}
}

function invert_get_user_subscribe_link ($html, $r, $user_id, $topic_id) {
	if (strContains( "bbp_unsubscribe", $html )) {
		$html = str_replace("bbp_unsubscribe", "bbp_subscribe", $html);
	} else {
		$html = str_replace("bbp_subscribe", "bbp_unsubscribe", $html);
	}
	return $html;
}

function invert_get_forum_subscribers( $users ) {
	$args = array('fields' => 'id');
	$all_users = get_users($args);
	$send_to_users    = array_diff($all_users, $users);
	return $send_to_users;
}

function invert_is_user_subscribed_to_forum( $retval, $user_id, $forum_id, $subscribed_ids ) {
	return !$retval;
}

add_action('bbp_theme_after_topic_form_subscriptions', 'subscribed_by_default'); //default subscribe
add_action('bbp_theme_after_reply_form_subscription', 'subscribed_by_default'); //default subscribe

function subscribed_by_default() {
	echo '<script type="text/javascript">jQuery("#bbp_topic_subscription").prop("checked","checked");</script>';
}
?>

Thanks!

BBPress Pulling From Single rather than Page/Index?

Published on September 24th, 2015 by aaron2310

I’ve been editing the Single.php page recently and when I went back to the forum page I found that the forum was displaying some of the changes I’d made to single.php. It looks like it’s taking that as its template rather than index.php. Can I change this?

http://www.battle-bridge.co.uk/forums/

Removing author name in freshness column

Published on September 24th, 2015 by myndphunkie

Hi Guys,

Having issues removing the author name in the freshness column.

The author shows up under the topic column (Started by: <author>), and it also shows up on the freshness column (<avatar> <author>).

I want to remove the last part.

I have copied loop-forums.php and loop-single.php into my <theme>\bbpress\ folder and am assuming I need to modify one of these?

Thanks In Advance

Add replies (or topic) count to menu

Published on September 24th, 2015 by project_subdomain

I’d like to display the count of all existing replies for one topic like
“Topic name One (56)”
where 56 is the amount of replies.

Is bbp_forum_reply_count() correct for this?

How could I get the count to a specific menu which had been created through the backend’s design->menu,
when the menu ID is 2 and the menu item ID of Topic name One is 11 and of Topic name Two is 22?

Many thanks for any help!

Plugins directory reference when symlinked is invalid

Published on September 23rd, 2015 by blakeage

My WordPress plugins directory is sym-linked to another folder on the server. So, the following path:
/wp-content/plugins

Is actually a symlink to /home/bayb_qa/shared/plugins

However, for some reason bbpress uses the absolute path (/home/bayb_qa/shared/plugins), rather than the relative path “/wp-content/plugins” when including its css and javascript, such as bbpress.css and editor.js.

This causes 404 problems loading the two files. Is bbPress not designed to handle a symlinked plugins dir?

No Content Area in WP 4.3.1

Published on September 23rd, 2015 by jscmusic

Hello, after updating to WordPress 4.3.1, I’ve noticed that there is no content area for topics in my 2.5.8 bbPress Forum. What gives?

https://www.area103ppg.com/forums/topic/international-flights/

Thanks for your help!

Skip to toolbar