After installing a plugin among those proposed by wordpress as an update, I can no longer access the blog and this message appears
Fatal error: Call to undefined function wp_installing() in D:\inetpub\webs\ramonfonst-schermait\wp-content\plugins\bbpress\includes\core\options.php on line 272
how can i recover access?
I’m not a bbpress author, just someone who helps out here. I can’t remember fully, but I have it in the back of my mind that there is an issue with that many forums, but don’t have time to set up 79 test forums to find out what it was.
Then simplest solution would be to amend the page to show all the forums
install
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Forum Display
and set item 11
I have read on here all day and tried some additional css doing amongst other things that have been suggested…I cannot for the life of me get rid of the bbPress Forum title on the following page…
https://hookdgear.com/forums
Any suggestions? I did not initially create a forum page as I simply went through the forums section in wordpress to create the forum layout…I create a page with a permalink to /forums to see if that helped but the title is still there…thank you in advance for your help
I have Buddypress and BBpress installed and getting a hang of how these plugins work.
When I create a Forum or Topic I get a blank page after saving.
Any suggestions to troublehoot this?
https://chat.courtvictim.com/forums/forum/general-public/activist-articles/
Thank you
this might hep
https://pmgarman.me/delete-users-without-posts-from-wordpress/
bbpress just uses worpdress posts, so it should work.
BUT ensure you can restore if it does something funny !!
DISREGARD THIS TOPIC. THROUGH COMBINED EFFORT OF MOST OF THE BBPRESS PLUGINS, RECONFIGURING ROLES AND CLONING BBPRESS ROLES, SETTING USERS TO PARTICIPANT ROLES FOR FORUM AND THEN ASSIGNING EXTRA ROLES FOR EACH GROUP.
A WORKAROUND AT LEAST, NOT VERY EFFICIENT BUT I CAN MAKE IT WORK THROUGH USE OF MEMBERPRESS MEMBERS PLUGIN, BBP STYLE PACK, CHILD THEME WIZARD, ELEMENTOR AND A FEW OTHER PLUGINS RECONFIGURED.
Thanks for the response I have read through the Codex. I knew i wasn’t being very clear lol.
I created a Board Admin Role in Memberpress and assigned the roles needed for wordpress permissions i wanted the role to have.
The problem is, I can clone Keymaster, which is a bbPress Role, but it doesn’t show up in Forum Roles dropdown, I can give forum permissions, but by giving edit user she can edit site admin, if i restrict edit user, she can’t manage users.
I am looking for a way to restrict access to upper-level site admin, while having certain admin, yet needs Full admin rights in Forum, but not the ability to accidentally delete or change higher admin roles and create or manage lower level bbPress forum roles.
Basically, I Need a MODERATOR Role with adjusted Admin Privileges and forum roles that can still perform role functions based on their level rather than just on or off, weighted capabilities with if statements that disables edit links or delete links unless the weighted role is below the administrator that is performing the tasks.
This needs to be something that each role has the same ability to adjust for each role, like you would have in tech support with tech support roles but 3 tiers of tech support levels vs customer service vs billing department. Customer Service and billing have access to user profile to view, however billing can only see user address and phone number and payment information, customer service can only see name, phone, email, previous tickets, plan type and tier 3 tech support can see everything that customer service can see plus ipaddress, database, files where tier 2 can see tier 3 level plus has the ability to backup or reboot, where tier 1 can see and do everything… except travel agency type stuff with boards.
bbpress has roles of keymaster, moderator, participant, spectator and blocked – see
bbPress User Roles and Capabilities
The rest of the above is either roles that you have created or come with memberpress, or roles that don’t exist but that you want – it’s not quite clear which 🙂 – please come back with further info.
so is a ‘secondary keymaster’ a concept you want, or something that you have created or exists in memberpress???
If you want to create a new memberpress role then the capabilities in the link above might help.
Good day to all the wonderful devs,
Site: https://h99.cd7.myftpupload.com/
I am Running Current:
Wordpress 6.0.3
PHP 8.0
Plugins:
MemberPress Members 3.2.1
BBPress 2.6.9
My questions:
#1 I am working on a travel agent site for my wife which will include the forums. I will be the main site admin and primary Keymaster, however i want to add a secondary keymaster for her. However i want to make it so she has access to use certain admin tools on the wp-admin dashboard which i have done using Memberpress Members Roles. However i dont want her to have full keymaster in BBPress.
So, the idea in thought is Primary Keymaster has obvious full permissions, secondary Keymaster has full rights as well but not the ability to modify the primary keymaster.
Currently I have Primary Keymaster which is also Site Full Admin, Secondary Keymaster, named Board Admin.
I still want the Board Admin to have Admin rights to Dashboard Menus but not the ability to edit the Keymaster like it shows for the current BBPress Roles with only view ability. I think I wrote that right.
#2 BBPress Forum page login for general users. Currently BBPress sends registration and login to the wp-admin page to login. Is there a way to edit the forum link to use another page by having the login shortcode embedded into a page of choice, same question for Profile. Currently the edit profile link on the forum takes users directly to the wordpress profile rather than their forum profile, what am i missing for the redirect?
Thank you in advance for the patience and assistance.
I have created a few websites for myself, but learning the plugin dev stuff and theme editing, still infantile.. lol
I already broke her site once and had to delete everything and start over.
single login, so not sure why @billz88 has a problem.
Woocomerce, bbpress and wordpress all use same login
Hmm well that’s disappointing.
I’m surprised they can’t use the same login since bbpress was designed for WP
No for bb press you have to make a separate account.
I have a woo commerce account for my site called anxiety rings but I have made another for bbpress because the same credentials wont work for bbpress.
it’s a lot of code to learn.
There are hundreds of filters and actions.
most of it is detective work.
I have bbpress in a folder on my laptop/
I use
https://notepad-plus-plus.org/
as my main tool, it understands all the file types and displays them in a very readable way.
It has a ‘search on files’, so in your case I looked for ‘subscribe’ as this was the word that had the | before it.
that got me to the subscribe link function, which has the ' | '
in it, which got me to the filter
When you came back with it changing when you click, I then searched for ' | '
and found it in the core function.
For the ‘before_xx_parse_args’ and other filter stuff see
Step by step guide to setting up a bbPress forum – part 5
If anyone else experience problems with the bbpress importer tool in the future – I can confirm that the import tool worked very well as soon as I changed the server php version from 8.0 and down to 7.4.
ah, found the function that the ajax call is doing.
this code works on my test site
function remove_sep ($args) {
$args['before'] = ' ' ;
return $args ;
}
add_filter ('bbp_before_get_topic_subscribe_link_parse_args', 'remove_sep') ;
remove_action( 'bbp_ajax_subscription', array( 'BBP_Default', 'ajax_subscription' ) );
add_action ( 'bbp_ajax_subscription', 'new_ajax_subscription');
function new_ajax_subscription() {
// Bail if subscriptions are not active
if ( ! bbp_is_subscriptions_active() ) {
bbp_ajax_response( false, esc_html__( 'Subscriptions are no longer active.', 'bbpress' ), 300 );
}
// Bail if user is not logged in
if ( ! is_user_logged_in() ) {
bbp_ajax_response( false, esc_html__( 'Please login to subscribe.', 'bbpress' ), 301 );
}
// Get user and topic data
$user_id = bbp_get_current_user_id();
$id = ! empty( $_POST['id'] ) ? intval( $_POST['id'] ) : 0;
$type = ! empty( $_POST['type'] ) ? sanitize_key( $_POST['type'] ) : 'post';
// Bail if user cannot add favorites for this user
if ( ! current_user_can( 'edit_user', $user_id ) ) {
bbp_ajax_response( false, esc_html__( 'You do not have permission to do this.', 'bbpress' ), 302 );
}
// Get the object
if ( 'post' === $type ) {
$object = get_post( $id );
}
// Bail if topic cannot be found
if ( empty( $object ) ) {
bbp_ajax_response( false, esc_html__( 'Subscription failed.', 'bbpress' ), 303 );
}
// Bail if user did not take this action
if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'toggle-subscription_' . $object->ID ) ) {
bbp_ajax_response( false, esc_html__( 'Are you sure you meant to do that?', 'bbpress' ), 304 );
}
// Take action
$status = bbp_is_user_subscribed( $user_id, $object->ID )
? bbp_remove_user_subscription( $user_id, $object->ID )
: bbp_add_user_subscription( $user_id, $object->ID );
// Bail if action failed
if ( empty( $status ) ) {
bbp_ajax_response( false, esc_html__( 'The request was unsuccessful. Please try again.', 'bbpress' ), 305 );
}
// Put subscription attributes in convenient array
$attrs = array(
'object_id' => $object->ID,
'object_type' => $type,
'user_id' => $user_id
);
// Add separator to topic if favorites is active
if ( ( 'post' === $type ) && ( bbp_get_topic_post_type() === get_post_type( $object ) ) && bbp_is_favorites_active() ) {
$attrs['before'] = ' ';
}
// Action succeeded
bbp_ajax_response( true, bbp_get_user_subscribe_link( $attrs, $user_id, false ), 200 );
}
SO I have an e-commerce site that I’m using Woocommerce for
I also have bbpress installed and eventually want to build a community
So will my customers from woo and users from bbpress all have one single login?
So if they create an account under Woo, it will also log them into bbpress?
Are they able to access their bbpress profile separately from their normal “account profile” and add more social information if they wanted?
Thanks!
Hello, I use bbpress login form shortcode and when I press the login button without filing any data, it keeps redirect me to the normal wp form with errors msgs, is there a way to keep the errors msg in the same form without redirect?
hello, I need to change the css class”bbp-template-notice” of the returned html in the function bbp_template_notices() exist in includes/common/template.php but i dont see any filter in it , how this can be done?
the function:
function bbp_template_notices() {
// Bail if no notices or errors
if ( ! bbp_has_errors() ) {
return;
}
// Define local variable(s)
$errors = $messages = array();
// Get bbPress
$bbp = bbpress();
// Loop through notices
foreach ( $bbp->errors->get_error_codes() as $code ) {
// Get notice severity
$severity = $bbp->errors->get_error_data( $code );
// Loop through notices and separate errors from messages
foreach ( $bbp->errors->get_error_messages( $code ) as $error ) {
if ( 'message' === $severity ) {
$messages[] = $error;
} else {
$errors[] = $error;
}
}
}
// Display errors first...
if ( ! empty( $errors ) ) : ?>
<div class="bbp-template-notice error" role="alert" tabindex="-1">
<ul>
<li><?php echo implode( "</li>\n<li>", $errors ); ?></li>
</ul>
</div>
<?php endif;
// ...and messages last
if ( ! empty( $messages ) ) : ?>
<div class="bbp-template-notice">
<ul>
<li><?php echo implode( "</li>\n<li>", $messages ); ?></li>
</ul>
</div>
<?php endif;
}
The steps are following,
- Step 1: Costumer creates an appointment
- Step 2: wordpres checks if the customer is having an account if not it creates one
- Step 3: When an account is created it gets the wordpress role “Costumer”
- Step 4: the by u provided app gives the costumer the forum role “Costumer”
- Step 5: Website admin checks the appointment and creates an Forum topic what is only visable by costumers role of the forum
- Step 6: Website admin makes the Costumer owner of the topic so only costumer and admin can view it
`
Only step 4 is not woring, the users are still in the bbpress standard role of the forum, they are not promoted to the “Costumers” group
@robin-w or another mod – can you please delete:
https://bbpress.org/forums/topic/template-in-block-themes/#post-232249 (#post-232249)
https://bbpress.org/forums/topic/template-in-block-themes/#post-232250 (#post-232250)
https://bbpress.org/forums/topic/template-in-block-themes/#post-232256 (#post-232256)
They had issues and take up a lot of wasted space.
Seriously done this time! No more changes/revisions! It is what it is!
Posting a much cleaner revision of the code above.
- This one will work with either the BBPress Style Pack plugin template (looks great!) or the default BBPress template (looks horrible!).
- It will optionally include the required ‘template-canvas.php’ only if it’s missing.
- It will also only affect BBPress pages, not the rest of the site.
- It will also only affect FSE Block themes.
- If using default BBPress templates, it includes checks for if on forum root index page and loads extras/archive-forum.php (to prevent double-listing of the forum index), and loads extras/page-front-forums.php for “the rest of bbpress” (to prevent “nothing found” errors)
// function to include the wp-includes/template-canvas.php file if needed
function fse_bbpress_template( $template ) {
if ( is_bbpress() ) {
$template = ABSPATH . WPINC . '/template-canvas.php';
}
return $template;
}
// function to include the bbpress forum template file if needed
function fse_bbp_theme_compat( $template ) {
if ( is_bbpress() ) {
// BBPress Style Pack Plugin Forums Index Template
if ( defined( 'BSP_PLUGIN_DIR' ) ) {
$template = BSP_PLUGIN_DIR . '/templates/bbpress.php';
} else {
// Default BBPress
// if current page is bbpress forum root page, load archive-forum to prevent double-listing of index
if ( isset( get_queried_object()->name ) ) {
if ( get_queried_object()->name == 'forum' ) {
$template = WP_CONTENT_DIR . '/plugins/bbpress/templates/default/extras/archive-forum.php';
}
// else, load page-front-forums or the rest of bbpress is broken with empty pages
} else {
$template = WP_CONTENT_DIR . '/plugins/bbpress/templates/default/extras/page-front-forums.php';
}
}
}
return $template;
}
// main function for handling which theme file needs to be included
if ( ! function_exists( 'fse_bbpress_support' ) ) {
function fse_bbpress_support() {
// get current theme dir
$theme_dir = get_template_directory();
/*
* Detect if FSE theme or traditional.
* FSE Block themes require a theme.json file.
* Use that to check instead of theme name or parent theme name.
* Perhaps a better method is available, but this works for now
*/
if ( file_exists( $theme_dir . '/theme.json' ) ) {
// include wp-includes/template-canvas.php only if needed
if ( !basename( get_page_template() ) == 'template-canvas.php' ) {
add_filter( 'template_include', 'fse_bbpress_template' );
}
// include either the BSP template, or default BBPress template
add_filter ( 'bbp_template_include_theme_compat', 'fse_bbp_theme_compat' );
}
}
}
add_action( 'after_setup_theme', 'fse_bbpress_support' );
One issue with EVERY default BBPress template is that the header/footer/sidebar are trying to be pulled from template files that don’t exist in block themes. They’re being included, but don’t look right. I’m not sure of the best solution for that, other than to use the BBPress Style Pack Plugin which takes care of that and looks great.
So i almost got it working the way i want it, but at this moment the only problem is when a new costumer gets registrated wordpress puts it in the Costumer role of WordPress,
For some reason the plugin is not picking up the “Assign Groups to Roles” i made group 2 “Costumers” and connected them to the WordPress Costumer group. but for some reason its not happening and the user is still in basic role instead of upgraded tot Group 2 ‘costumer” role in bbpress
Hello BBpress people,
Ive searched the forum and google but nog able to find this specific question.
Im having a Computer repair company and im budy building a forum so people can view the status of their repair real time. but i want it to be as private as it can be, so i want to be able to select the user for the topic so only the site admins and the selected user can see/open the topic.
Is there a way to do this?
Kind regards,
Darwin
‘Associated Courses and Groups’ has nothing to do with bbpress.
I’d suspect it is either something in learndash, or something you have called a page in WP where the shiortcode is held, or a name you have given to something.