Skip to:
Content
Pages
Categories
Search
Top
Bottom

Batch close topics

Published on January 15th, 2017 by Fizzgigg

I have taken over as an administrator for a support forum that has been going since 2012, and now they have change the system to bbForum which is nice. Since the forum has been up since 2012 there are loads of old topics, and that leads me to two questions that in a way are related to each other:

1. Is there an easy way, either built in or with an addon, that can batch close old topics?

2. Is there a way, again either built in or with an addon, to automatically close topics where nothing has happened in a certain amount of days?

Thank you for your time and help.

Import now Admin is Anonymous

Published on January 14th, 2017 by Shaped Pixels

I went to use a plugin FG Joomla to WordPress with the Kunena plugin addon to import all my Joomla users into WordPress, plus the Kunena forum posts (3000+). Most went fine but I noticed that my admin user on the Joomla site was turned into Anonymous with no link to a profile. All my post replies are now done by Anonymous.

Is there a way to change this Anonymous to my admin user and be linked to the profile? I went to look in the database, but I do not see where bbpress posts and post user names are.

Form to forum

Published on January 14th, 2017 by brandysve

Hi !

I have a website with bbpress and I want than when user fill a form (I can do it myself or by a form plugin) it create a new post with the element of the form (like name and message).

Any idea?

Thank you !

Bbpress 2 domains and can be retrieved on both

Published on January 14th, 2017 by paxrisen

I need help and although I have 2 domains once .com and .de. These two sides I have installed on my Websever in 2 different folders and installed both the same plugins. I would like to have a possibility to connect both sides. So the bbpress on both sides the same user possesses however one one on .de or .com in the profile go can be without the bbpress only over one domain is callable.
The problem I had namely with the test it as multisite run. There bbpress was then only over the main page, ie the first page attainable and the subdomain which I had with a plugin on .de changed had no bbpress profile.

I would like to have the profile with the .de or .com menu bar on top and thus the profiles have to be retrievable on both sides. Is there such a possibility

New topics

Published on January 14th, 2017 by hughb1

Hi,

I’m looking for a way to link to threads with new replies without using a plugin if possible. In the same way as the following URLs link to popular topics or those with no replies.

https://www.example.com/forums/view/popular/
https://www.example.com/forums/view/no-replies/

Thanks.

Hugh

Allow Participants to Trash / own Topics and Posts

Published on January 14th, 2017 by sally

Hi,

I’m working on WP 4.7.1 and BBPress Version 2.5.12. I would like to allow Participants to Trash there own Topics and Posts. I found the following code here in the Forum and added it to my functions.php. When i register as Participant and create a new Topic I have only EDIT / REPLY available, but not TRASH.


/*Customize the BBPress roles to allow Participants to trash topics
add_filter( 'bbp_get_caps_for_role', 'ST_add_role_caps_filter', 10, 2 );

function ST_add_role_caps_filter( $caps, $role ){
    // Only filter for roles we are interested in!
    if( $role == 'bbp_participant' ) {

	$new_caps = array(
                // Primary caps
                'spectate'              => true,
                'participate'           => true,
                'moderate'              => false,
                'throttle'              => false,
                'view_trash'            => false,

                // Forum caps
                'publish_forums'        => false,
                'edit_forums'           => false,
                'edit_others_forums'    => false,
                'delete_forums'         => false,
                'delete_others_forums'  => false,
                'read_private_forums'   => false,
                'read_hidden_forums'    => false,

                // Topic caps
                'publish_topics'        => true,
                'edit_topics'           => true,
                'edit_others_topics'    => false,
                'delete_topics'         => true,
                'delete_others_topics'  => false,
                'read_private_topics'   => false,

                // Reply caps
                'publish_replies'       => true,
                'edit_replies'          => true,
                'edit_others_replies'   => false,
                'delete_replies'        => true,
                'delete_others_replies' => false,
                'read_private_replies'  => false,

                // Topic tag caps
                'manage_topic_tags'     => false,
                'edit_topic_tags'       => false,
                'delete_topic_tags'     => false,
                'assign_topic_tags'     => true,
            );	

	}

    return $new_caps;
}
/*Fixes an issue that only allows mods to trash topics.
bbpress.trac.wordpress.org/changeset/5852
bbpress.trac.wordpress.org/ticket/2685*/

add_filter( 'bbp_map_reply_meta_caps', 'ST_tweak_trash_meta_caps', 11, 4 );
add_filter( 'bbp_map_topic_meta_caps', 'ST_tweak_trash_meta_caps', 11, 4 );

// tweak for replies
function ST_tweak_trash_meta_caps( $caps, $cap, $user_id, $args ){

	// apply only to delete_reply and delete_topic
	if ( $cap == "delete_reply" || $cap == "delete_topic" ){
		// Get the post
		$_post = get_post( $args[0] );
		if ( !empty( $_post ) ) {

			// Get caps for post type object
			$post_type = get_post_type_object( $_post->post_type );
			$caps      = array();

			// Add 'do_not_allow' cap if user is spam or deleted
			if ( bbp_is_user_inactive( $user_id ) ) {
				$caps[] = 'do_not_allow';

			// Moderators can always edit forum content
			} elseif ( user_can( $user_id, 'moderate' ) ) {
				$caps[] = 'moderate';

			// User is author so allow edit if not in admin
            } elseif ( ! is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) {
                $caps[] = $post_type->cap->delete_posts;

			// Unknown so map to delete_others_posts
			} else {
				$caps[] = $post_type->cap->delete_others_posts;
			}
		}

	}
	// return the capabilities
	return $caps;
}

Can someone help me with this, or has a other code snippet what is working?

Thx
Sally

Not found

Published on January 12th, 2017 by unkoff

Hi guys,

I just installed my gauge theme v6.20 on my localhost. It is supposed to have bbpress/buddypress integration. I activated plugin bbpress v2.5.12 and then imported demo data from the theme. However, when I click on the buddypress menu links, I have the messeage saying on a completely blank page:

Not Found

The requested URL /groups was not found on this server.
Apache/2.4.23 (Win64) PHP/5.6.25 Server at localhost Port 80

I will be grateful if you share any thoughts why this is happening.

Thanks,
unkoff

bbPress 2.6 Release Candidate 3

Published on January 12th, 2017 by John James Jacoby

Hey everyone! Guess what?

bbPress 2.6, Release Candidate 3, is now available for testing.

Download it from here: https://downloads.wordpress.org/plugin/bbpress.2.6-rc-3.zip

Why is this cool? For starters, @jeffr0 may finally climb down off my back and stop giving me grief for how long it’s been since we shipped a major release.

bbPress 2.5.0 in 2014, 3 years ago.

Most people wouldn’t be proud to say that, but… I am. The 2.5 branch of bbPress has been so stable & well received, we were able to take our time with 2.6 and double-down on upstream improvements to WordPress.

bbPress 2.6 will come with:

* Per-forum moderators
* Improved favorites & subscriptions management
* Improved BuddyPress integration
* Performance improvements across the board
* UX improvements to meta-boxes and admin-area tools
* Tighter integration with WordPress’s Dashboard
* Template tweaks & clean-up
* About 110 other things

If you’re going to test 2.6 on a live site, maybe don’t just yet. It runs a database upgrade routine to migrate favorites & subscriptions from usermeta to postmeta, and for large forums that may take a while or possibly lock things up for a bit.

We are already running 2.6 here and on bbPress.org, so enjoy the speedier new posting experience, and we’ll let you know when the next beta is ready!

is there a bulk function for closing topics?

Published on January 12th, 2017 by iprg

Hello,
is there a possibility of bulk closing old topics? Eg doing it from dashboard? At the moment, I am only able to do it in a very slow way (open every single topics and close it)…
Or can I set some time limit for automatic closing?

Thank you for any insight!
Best,
Jan
(BBpress, WP – latest versions, site: http://www.fotoguru.cz/foto-forum/)

Prevent unsubscribe when replying

Published on January 12th, 2017 by bjorngus

If I have subscribed to a topic, and then posts a reply in that topic, that topic will be removed from my subscription list. But i want them to still be there even if i reply.

Is this possible ? Either with a hook or a setting.

Skip to toolbar