Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 576 through 600 (of 13,903 total)
  • 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

    @robin-w

    Moderator

    bbpress stores entries as WordPress posts within the database.

    My test site has over 8,000 posts and the whole database takes up 155MB.

    It is not something you probably need to worry about – most hosters offer storage in the multiple GB realms.

    Plugins, media and themes take file space (rather than database).

    If you want to keep an eye on it go to

    dashboard>tools>site Health>info>directories and size and you can see what is being used

    @robin-w

    Moderator

    I’d suspect that php 8.x is the issue.

    New versions of php get more strict in code requirements, and arrays are one that php 8.x got nasty with.

    I’d suggest (if you can) changing to php 7.x whilst you do the import – after that you can revert to php 8.x.

    @robin-w

    Moderator

    suspect kit is site specific, and probably theme related.

    what theme are you using?

    @robin-w

    Moderator

    so did you try

    ‘You should add your widgets into Default sidebar area on Appearance => Widgets of your dashboard.’

    @robin-w

    Moderator

    I am not doubting you, but I cannot replicate, so not much more I can do

    @robin-w

    Moderator

    ok, just tried that, I cannot replicate this on my test site

    so I created a topic by ‘fred’ a participant and logged out.
    I then logged in as an admin, and subscribed to the topic in the front end
    I then went to dashboard>topics>all topics>edit that topic and just clicked update
    I was still subscribed to the topic

    @robin-w

    Moderator

    Private groups

    This plugin does take a while to understand as everyone wants something slightly different.

    Bit in essence create a group for your members using dashboard>settings>bbp private groups>group names
    then in dashboard>settings>bbp private groups>assign groups to roles set memberpress users to automatically become members of that group
    Then in dashboard>settings>topic permissions turn these one
    Then for each forum in dashboard>forums>edit forum set the forum to be restricted to the memberpress group and use topic permissions to decide if they can post topics, replies or both and also set what public users can see

    @robin-w

    Moderator

    I cannot immediately replicate this.

    what exactly are you doing at step 2?

    @robin-w

    Moderator

    you just create 2 groups, group 1 – moderators and group 2 – everyone else (called whatever you want)

    you then assign all your moderators to group 1 manually and since everyone else will be subscribers, you use the ‘assign groups to roles’ to assign them to group 2

    you turn on topic permissions and the in dashboard>settings>forums>each forum you set up the forum for topic permissions as you wish

    @robin-w

    Moderator

    contact me via

    Contact me

Viewing 25 replies - 576 through 600 (of 13,903 total)