hello @robkk
can u help me, just displaying Registered Users on shortcode….
thanks for replying @robin-w , I mean this widget :
(bbPress) Topic Views List – A list of registered optional topic views.
Options:
Title: Here you can set the title of the widget as it will be displayed in the sidebar.
when in click does not happen what, actually i just want to display ‘Topics without replies’. Can help me @robin-w
If you have checked ‘Automatically give registered visitors the xx role…’
in
dashboard>settings>forums>
Then they will get that role when they next log in, so you shouldn’t need to take any action on existing users.
Hi there.
This is about my login page here:
https://vancouvergathers.ca/wp-login.php
I’m using WordPress 6.1.1, Elementor Pro 3.11.3 with Hello Elementor theme,
BBPress version 2.6.9, bbp style pack 5.3.6,
I’m using LoginPress but that was installed after the issue described below was already present.
Underneath the captcha and above the blue Login button is an extra button I want to remove. It says “Log in or sign up” but the button just redirects to the login page itself.
When I inspect the page in Chrome it tells me the element might be div.bbp-button-wrapper or button.bsp-register.
Do you know how I can find out where this button is being invoked so I can remove it from the code? I am not an expert web developer and I cannot solve this issue on my own.
Any help would be appreciated. Thanks,
Brenden
You could use the below which should add your registration link to that form.
Add to your functions.php
file in your theme.
if(!function_exists('dnk_add_registration_link')){
function dnk_add_registration_link(){
if( function_exists('is_bbpress') && is_bbpress() ){
echo '<p>Don\'t have an account? <a href="'.esc_attr( wp_registration_url() ).'">Register</a></p>';
}
}
}
add_action( 'login_form','dnk_add_registration_link' ,10 );
Unfortunately, register link ist not something you can activate via settings for this part of forum.
You need to modify this file: form-user-login.php
Best way would be to create a bbpress direcrory in your child theme and copy this file there and modify.
You can also make use of the [bbp-register] shortcode.
I hope this helps.
can you check that you have ‘anyone can register’ set in dashboard>settings>membershio
Hi Diana,
you can get this info from mysql DB in case you have access: (ex. via phpmyadmin)
SELECT user_login FROM wp_users WHERE id not in (SELECT DISTINCT post_author FROM wp_posts) AND id not in (SELECT DISTINCT user_id FROM wp_comments) ORDER BY user_registered ASC;
You need to change wp_ if you have another prefix for your mysql tables.
After you’ve checked the list, you can change the sql statement and DELETE.
I hope this helps.
Hi there! I’m trying to set up a bbPress forum on my WordPress staging site (not live yet, still currently hosted on the WordPress server). I installed bbPress version Version 2.6.9, not sure what WordPress version I’m using but I just set up the site in the past two months. I’m using the Twenty Twenty-Three theme.
I’ve done the initial bbPress setup steps (install and then create a forum and a topic), but I keep getting a blank page when I go to my /forums/ page or or my /jelp/ page (that’s the name of the forum). I’ve deactivated as many plugins as I can, and also cleared my cache, but still getting the same issue. I also went into WP-CONFIG and changed the memory limit to 256M.
I’ve started a WP DEBUG log, and I see this message: “PHP Deprecated: A deprecated web fonts array structure passed to wp_register_webfonts(). Variations must be grouped and keyed by their font family. in /wordpress/plugins/gutenberg/15.0.1/lib/experimental/class-wp-webfonts.php on line 160” — but I’m not sure what to do about it. I did deactivate Gutenberg just to see if it helps, but still nothing.
If it’s worth mentioning, I was also trying the ForumWP plugin previously and getting the same blank screen issue. I’ve since deactivated and deleted ForumWP.
Does anyone have any ideas? Thank you!
<?php
register_activation_hook(__FILE__, ‘bbpress_topic_scheduler’);
add_action(‘bbpress_daily_event’, ‘bbpress_delete_old_topics’);
function bbpress_topic_scheduler() {
wp_schedule_event(time(), ‘daily’, ‘bbpress_daily_event’);
}
function bbpress_delete_old_topics() {
// Auto delete old topics
$topics_query = array(
‘author’ => 0,
‘show_stickies’ => false,
‘parent_forum’ => ‘any’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => -1
);
if ( bbp_has_topics( $topics_query ) )
while( bbp_topics() ) {
bbp_the_topic();
$topic_id = bbp_get_topic_id();
$topic_date = strtotime( get_post( $topic_id, ‘post_date’, true ) );
$forum_id = bbp_get_topic_forum_id($topic_id);
if ($topic_date = strtotime( ‘-90 days’) && $forum_id == 17777 )
bbp_delete_topic( $topic_id ); }
}
?>
I also want everyone who registered on my site to share in the flow. I also don’t want him to go and buy a membership type. I want it to write in the stream as soon as it registers automatically. But first, I need to define a membership type for the person. There is no membership type purchase section. Where can I show this on my site? and How do I get newly registered customers to have a membership type instantly? If it doesn’t, it can’t share anything in the stream. I would be very pleased if the post is shared with the admin approval as above. I would be glad if you help.
Hi Robin,
THX, I can’t include pictures (try to explain)
email address in profile is rjjansen@abraxax.net (this is ok, this profile name you can change)
On the right side it is showing
@rjjansengmx-net
Profile
Registered: 2 years, 1 month ago
<?php
if ( ! is_user_logged_in() ) { // Display WordPress login form:
$args = array(
'redirect' => admin_url(),
'form_id' => 'loginform-custom',
'label_username' => __( 'Username custom text' ),
'label_password' => __( 'Password custom text' ),
'label_remember' => __( 'Remember Me custom text' ),
'label_log_in' => __( 'Log In custom text' ),
'remember' => true
);
wp_login_form( $args );
} else { // If logged in:
wp_loginout( home_url() ); // Display "Log Out" link.
echo " | ";
wp_register('', ''); // Display "Site Admin" link.
}
?>
I entered that code with the Code Snippets Plugin but it didn’t work 🙁
I have searched these forums and for the life of me can not find exactly what I am aiming for.
Basically I run a gaming community. For the most part, everyone uses discord, and the new forum system discord currently has. However our website has been a beacon that has kept us getting back in touch with each other for over 25 year and im trying to not only keep it alive, but adding content.
Basically I have the WP Discord plugin. I want to have BBPress allow the user to add their specific game names (battle net, steam, EA, Activision IDs) to their website / forum profile. I downloaded and installed the Advanced custom field plugin via wordpress, but it doesm’t seem to work with BBpress. If I make a new page or post I can add the fields, but I am looking more in terms of the wordpress user adding them upon registering on the site, then showing in the BBpress profile.
I used to modify SMF years ago and played around a lot with different content management forum software, but am fairly new to wordpress itself, and I ABSOLUTELY LOVE how bbpress feels familiar to me. I feel like this is something super simple and easy to accomplish and im just looking in the wrong place.
On our old SMF forum, I literally had it setup in a URL format to where you would put your Steam username, but then on your profile it would be a clickable link to your steam page. It was super easy and literally required modifying the code 2 or 3 lines to fix once installing a basic plugin for SMF. I feel like this should be easier.
Can someone please point me in the right direction? Also, thank you all for what you do!
Hello!
I used the code from @robin-w and pasted it into a code snippet but it does not seem to work. That is my code:
register_activation_hook(__FILE__, 'bbpress_topic_scheduler');
add_action('bbpress_daily_event', 'bbpress_close_old_topics');
function bbpress_topic_scheduler() {
wp_schedule_event(time(), 'daily', 'bbpress_daily_event');
}
function bbpress_close_old_topics() {
// Auto close old topics
$topics_query = array(
'author' => 0,
'show_stickies' => false,
'parent_forum' => 'any',
'post_status' => 'publish',
'posts_per_page' => -1
);
if ( bbp_has_topics( $topics_query ) )
while( bbp_topics() ) {
bbp_the_topic();
$topic_id = bbp_get_topic_id();
$topic_date = strtotime( get_post( $topic_id, 'post_date', true ) );
$forum_id = bbp_get_topic_forum_id($topic_id);
if ($topic_date < strtotime( '-2 hours') ) // && $forum_id == 1276 )
bbp_close_topic( $topic_id );
}
}
The auto close time is set to 2 hours to test it and I created a comment after 2 hours because it should happen in every forum.
Have I done anything wrong? Thanks in advance! 🙂
/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-db.php
I commented out lines 33-37:
// register_shutdown_function( array( $this, '__destruct' ) );
//
// if ( WP_DEBUG && WP_DEBUG_DISPLAY ) {
// $this->show_errors();
// }
looking at the login link, I’d guess you are using
bbPress Login Register Links On Forum Topic Pages
so it would be a setting in there.
Thank you Robin, but it didn’t work.
I can see that first part of recaptcha text was moved on right side. Nothing else changes.
Do you know how register page layout should looks like by default on mobile devices?
Is it one column or two columns?
Dear friends,
I don’t remember when and how did I manage to mess up with my forum register page.
Register
Layout is “broken” and on mobile devices looks very bad.
After updating to last version of bbpress…problem still remain.
Bbp style pack is installed and after resetting style settings, register page remain the same.
Please, how can I manage that register page again have “default” layout and looks ok on mobile devices?
Thank you!
ok, bbpress just uses wordpress users, so anything that registers wordpress users will create users for the forums.
You probably don’t need the private groups plugin, so deactivate that for the moment.
So set the forum to private.
then decide how you would like your users to register.
a) If you just want anyone to be able to register, then
dashboard>settings>general and tick ‘anyone can register’
You can then create a registration page (Dashboard>pages>add new) and put this shortcode in it
[bbp-register]
then add that page to your menu.
b) if you want to ‘vet’ new users, then use a contact form plugin such as ‘contact form 7’ to create a registration form asking whatever questions you want. Set that form to email to whoever, and they then create the user (dashboard>users<add new), and either use wordpress to email the user the password (there is a tick box on the user creation, or copy the password, and send an email to the user yourself.
c) or use one of the many wordpress registration plugins (https://wordpress.org/plugins/search/register/)
The choice is yours 🙂
So frustrated!
I installed BBPress yesterday. I’m trying to set up a private forum for about a dozen authors on our site, so we can ask questions and learn from each other regarding using wordpress or the type of content we want to create.
First Question. I used the bbpress shortcode to add the forum to a page, just as a test. http://www.veganish.world/forums That went well (there is a public forum there, just as a test), but the thing is, how do I add the registered users for the private forum? The 12 people who will have access? I’ve looked in Settings, and I’ve looked under Forums, in the left-hand side bar in WordPress, and I can’t find anything.
I installed Robin’s Private Groups plugin today, thinking that would help … still not finding anything there either, regarding how to MANUALLY add registered users who are pre-approved to view the content in the forums. ARGH.
Such a simple and crucial thing, I don’t know why I can’t find it.
Second Question. Once I figure out how to register a new user, I have a question … can I make it so that if this persons is already logged in at wordpress.com (as they would need to be, to upload new blog posts), they instantly have access to the FAQ author forums, without having to log into anything else?
My web site is http://www.veganish.world, but I don’t see how that would be helpful as I just have two (2) general questions, noted above.
If you go to http://www.veganish.world/forums, you might see a public forum that I posted as a test yesterday, before I realized I need private forums, etc.
Thank you!
Raquelita Dee
I don’t get this.
Look here:
Create New Topic
I am getting a message under the TinyMCE toolbar. My two icons are now showing either.
My code is very basic:
<?php
/**
* Plugin Name: Add AutoSave | Fullscreen to TinyMCE
* Description: This will install the TinyMCE AutoSave | Fullscreen Plugins (version 4.9.11) and register them with TinyMCE.
* Version: 2.1
* Author: Andrew Truckle
* Author URI: https://www.trucklesoft.co.uk/
**/
/**
* Add the TinyMCE AutoSave and Fullscreen Plugins.
*
* @param array $plugins An array of all plugins.
* @return array
*/
function aaft_custom_plugins( $plugins ) {
$plugins['autosave'] = plugins_url( 'mce/', __FILE__ ) . 'autosave/plugin.min.js';
$plugins['fullscreen'] = plugins_url( 'mce/', __FILE__ ) . 'fullscreen/plugin.min.js';
return $plugins;
}
add_filter( 'mce_external_plugins', 'aaft_custom_plugins' );
registration is all one.
‘For some reason when some people register they can’t log onto the other BBpress or BuddyPress portions.’
How are they registering – eg widget, wp-login etc.