Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 801 through 825 (of 14,138 total)
  • @robin-w

    Moderator

    I am not a bbpress author, not a lot I can do.

    bbpress is a WordPress project – suggest you write to Matt Mullenweg about why no-one is currently assigned to bbpress to keep it up to date.

    matt@mullenweg.com cc: press@automattic.com.

    @robin-w

    Moderator

    ok, glad you are fixed

    @robin-w

    Moderator

    add this plugin

    BP Classic

    @robin-w

    Moderator

    the backend seems to only save one moderator.

    This code should fix

    add_action ('bbp_subscriptions_metabox' , 'rew_set_hidden_subscribers' ) ;
    add_action ('bbp_topic_attributes_metabox_save' , 'rew_save_subscriptions', 10 , 2) ;
    
    function rew_set_hidden_subscribers ($post) {
    	// Get user IDs
    	$user_ids = bbp_get_subscribers( $post->ID );
    	$list = implode(",",$user_ids); 
    
    	// Output
    	?>
    	<input name="rew_topic_subscription" id="rew_topic_subscription" type="hidden" value="<?php echo $list; ?>" />
    	<?php
    }
    
    function rew_save_subscriptions ( $topic_id, $forum_id ) {
    	// Handle Subscriptions
    	if ( bbp_is_subscriptions_active() && ! empty( $_POST['rew_topic_subscription'] )) {
    		//update_option ($subscriptions)
    		$subscriptions = explode(",", $_POST['rew_topic_subscription']);
    		foreach ($subscriptions as $subscription_id ) {
    			// Check if subscribed and if so do nothing
    			if (bbp_is_user_subscribed( $subscription_id, $topic_id )) continue;
    			else {
    			bbp_add_user_subscription( $subscription_id, $topic_id );
    			}
    		}
    	}
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    or if you use

    bbp style pack

    this fix is automatically added

    @robin-w

    Moderator

    most people use the front end for moderators, they see their abilities in the admin links

    you just set the moderators for each forum on the backend

    @robin-w

    Moderator

    Not a lot – I delete 3-6 posts a day on this forum.

    As AI starts to get more popular for spammers, it is getting harder to spot them, many posts now have several sentences seeming to answer the question (though almost always in a generic way) before containing a link to their site to get their backlinks quota’s up.

    @robin-w

    Moderator

    thanks, and thanks for posting back your solution

    @robin-w

    Moderator

    great and thanks for the detailed response 🙂

    @robin-w

    Moderator

    that’s great news – Since you said you were having problems (‘am finding it pretty hard going to be honest’) any recommendations or tips on setting this up?

    @robin-w

    Moderator

    I don’t know of anything that does this within bbpress.

    However bbpress just uses then wordpress login, so anything that does that in wp would work.

    This looks like a possible option…

    WP User Switch

    Otherwise you could just allow ‘anonymous posting’ which would let users post under multiple names, but of course could not be limited to paid members.

    In reply to: Navigation bar

    @robin-w

    Moderator

    what wordpress theme as

    dashboard>appearance>themes

    @robin-w

    Moderator

    great – glad you are fixed 🙂

    @robin-w

    Moderator

    yes, that sounds about right – try asking rankmath from what field they get the breadcrumb element

    @robin-w

    Moderator

    great and thanks for posting back the solution – so are you all fixed ?

    In reply to: Navigation bar

    @robin-w

    Moderator

    you should have a breadcrumb navigation, what theme are you using?

    @robin-w

    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Breadcrumbs

    @robin-w

    Moderator

    yes please

    @robin-w

    Moderator

    sorry, I’d like to help, but you site keeps throwing ad click bait at me

    @robin-w

    Moderator

    when you have completed, in the spirit of open software and helping others, can you post your final solution code please

    @robin-w

    Moderator

    for completeness look at

    \bbpress\includes\topics\functions.php line 96

    This is what bbpress does to create a new topic.

    on line 378 it has a hook

    do_action( 'bbp_new_topic',......

    which is used in

    bbpress\bbpress\includes\core\actions.php

    Line 206: add_action( 'bbp_new_topic',  'bbp_update_topic', 10, 5 );
    Line 241: add_action( 'bbp_new_topic',    'bbp_notify_forum_subscribers', 11, 4 );
    Line 287: add_action( 'bbp_new_topic',        'bbp_increase_forum_topic_count' );
    Line 327: add_action( 'bbp_new_topic',     'bbp_increase_user_topic_count' );
    Line 346: add_action( 'bbp_new_topic', 'bbp_update_topic_engagements', 20 );
    Line 350: add_action( 'bbp_new_topic', 'bbp_update_topic_voice_count', 30 );

    to call the other functions that update the meta, and thus get the topic to show.

    @robin-w

    Moderator

    Thanks, I’ve just tested your scenario above, and yes that is a bug.

    I am not a bbpress author, just someone who helps out here.

    Strangely that metabox doesn’t actually let you change the subscribers, it simply lists them, not sure why 🙂

    if you are using

    bbp style pack


    then I’ve included a fix for this in version 5.7.8.

    You can also add comprehensive subscription management functionality for the backend from the ‘subscriptions management’ tab.

    Otherwise you could add this code:

    
    add_action ('bbp_subscriptions_metabox' , 'rew_set_hidden_subscribers' ) ;
    add_action ('bbp_topic_attributes_metabox_save' , 'rew_save_subscriptions', 10 , 2) ;
    
    function rew_set_hidden_subscribers ($post) {
    	// Get user IDs
    	$user_ids = bbp_get_subscribers( $post->ID );
    	$list = implode(",",$user_ids); 
    
    	// Output
    	?>
    	<input name="rew_topic_subscription" id="rew_topic_subscription" type="hidden" value="<?php echo $list; ?>" />
    	<?php
    }
    
    function rew_save_subscriptions ( $topic_id, $forum_id ) {
    	// Handle Subscriptions
    	if ( bbp_is_subscriptions_active() && ! empty( $_POST['rew_topic_subscription'] )) {
    		//update_option ($subscriptions)
    		$subscriptions = explode(",", $_POST['rew_topic_subscription']);
    		foreach ($subscriptions as $subscription_id ) {
    			// Check if subscribed and if so do nothing
    			if (bbp_is_user_subscribed( $subscription_id, $topic_id )) continue;
    			else {
    			bbp_add_user_subscription( $subscription_id, $topic_id );
    			}
    		}
    	}
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    In reply to: Abandoned?

    @robin-w

    Moderator

    To understand that you need to understand that bbpress is a sister project to WordPress.

    Wordpress development (and therefore bbpress development) is funded by

    1. the commercial arm of wordpress – Automattic
    2. Donations and sponsorship from paid plugins and theme organizations who have a commercial interest in ensuring that WordPress continues

    At the moment no-one is sponsoring bbpress development, so no developer is currently being paid to maintain it.

    Hence no-one is updating even the tested to value.

    You could write to the board of wordpress.org, but beyond that not much we can do – I have tried !

    @robin-w

    Moderator

    you could probably skip this.

    Once imported you can run

    dashboard>tools>forums>repair forums> and run one at a time. One of these recalculates that field, so you do not need to import it.

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    This is one of the new FSE themes, so you need a fix to work with bbpress.
    install

    bbp style pack

    once activated, navigate to

    dashboard>settings>bbp style pack, and you should see the first tab called ‘Theme Support’ – if you don’t see this, come back.

    In that tab, select

    Enable Theme Support

    and save

    The forums should then display

Viewing 25 replies - 801 through 825 (of 14,138 total)