Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 1,576 through 1,600 (of 14,252 total)
  • @robin-w

    Moderator

    it would, but I am just a man in his kitchen, I’m not a bbpress author.

    Style pack is much more than just styling (it may have been mostly that when you tried it), and you don’t need to use the styling bits to take advantage of the functionality.

    Anyway it’s free and what I write, so that’s where the blocks will be.

    If you just want to use blocks in the custom post types, then just add this filter

    add_filter ('bbp_register_forum_post_type', 'rew_gutenberg_editor') ;
    add_filter ('bbp_register_topic_post_type', 'rew_gutenberg_editor') ;
    add_filter ('bbp_register_reply_post_type', 'rew_gutenberg_editor') ;
    
    function rew_gutenberg_editor ($settings) {
    	$settings['show_in_rest'] = true ;
    	return $settings ;
    }

    If you want to impose blocks on your users in topics and replies, then use the ‘blocks everywhere’ plugin.

    If you want block widgets, that is what will be in style pack when I have finished writing it.

    If you want bbpress in FSE themes, that will also be in style pack in due course

    @robin-w

    Moderator

    I am currently working on adding the block widgets to my bbp-style-pack plugin

    bbp style pack

    and then getting FSE themes to work aa well.

    @robin-w

    Moderator

    instructions for them

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    transfer this to your pc and edit

    go to line 248 and change

    ? esc_html_e( 'You cannot create new topics.', 'bbpress' )

    to

    ? esc_html_e( '', 'bbpress' )

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

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

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-topic.php

    bbPress will now use this template instead of the original

    @robin-w

    Moderator

    great – glad you are fixed, and thanks for posting then solution, this will help others 🙂

    @robin-w

    Moderator

    do you know how to ftp files, if so I’ll let you know what to do

    In reply to: No pages available

    @robin-w

    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    @robin-w

    Moderator

    dashboard>tools>repair forums and run one at a time until fixed

    @robin-w

    Moderator

    can you say how this relates to bbpress?

    In reply to: Close topic label

    @robin-w

    Moderator

    ok, so that approach will not work, I was hooking to a wordpress filter, but it is used in too many places.

    I’ll re-think

    @robin-w

    Moderator

    perhaps you could outline what you think is missing?

    In reply to: Close topic label

    @robin-w

    Moderator

    I’ll add this functionality to style pack in a few days, but in the meantime

    add_filter ('the_title' , 'rew_add_close_to_topics') ;
    
    function rew_add_close_to_topics ($title) {
    	if ( bbp_is_topic_closed()) {
    		$closed = '[Closed]' ;
    		$sep = ' ' ;
    		$position = 'after' ;
    		if (($position == 'before') && !str_contains($title, $closed)) $title = $closed.$sep.$title ;
    		if (($position =='after') && !str_contains($title, $closed)) $title = $title.$sep.$closed ;
    	}
    return $title ;	
    }

    and amend words/position etc. as you wish.

    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

    and change the background of the closed block to match your theme

    In reply to: No pages available

    @robin-w

    Moderator

    dashboard>settings>forums>topics and replies per page

    In reply to: Customizing lead topic

    @robin-w

    Moderator

    so is this with this function installed?

    add_filter ('bbp_get_topic_post_date' , 'rew_change_to_freshness', 10 , 6) ;
    add_filter ('bbp_get_reply_post_date' , 'rew_change_to_freshness', 10 , 6) ;
    
    function rew_change_to_freshness ($result, $topic_id, $humanize, $gmt, $date, $time) {
    	$result = bbp_get_time_since( bbp_convert_date( $time ) ) ;
    	
    return $result ;
    }
    In reply to: Close topic label

    @robin-w

    Moderator

    should be doable – let me think about this …….

    In reply to: Customizing lead topic

    @robin-w

    Moderator

    @enkoes – is this related to just lead topic, or does this need posting as a new topic?

    @robin-w

    Moderator

    dashboard>tools>forums>import forums

    @robin-w

    Moderator

    not sure how this relates to bbpress ?

    @robin-w

    Moderator

    to atop forums being viewable to non logged in, the set them as ‘private’

    dashboard>forums>all forms>edit forum and set visibility as ‘private’

    if you want different users to see different forums, then

    Private groups

    @robin-w

    Moderator

    ok, I cannot replicate that issue.

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    @robin-w

    Moderator

    ok, so if you go to

    dashboard>subjects>all subjects, and then select ‘les abonnements’ (the subscriptions) for the chosen subject then select option ‘subscribe selected users’ and apply

    are they then showing as ‘sucbribed’ and this in not working, or does the subssribed/unsubscribed not change ?

    @robin-w

    Moderator

    this plugin whilst old might help

    BBP Improvements for yoast

    @robin-w

    Moderator

    I tried to do the same by choosing several forums for one user. But it didn’t work. The subscription is not applied.

    can you describe exactly what you did, starting with

    dashboard>

    @robin-w

    Moderator

    hey thanks, really pleased you find it useful 🙂

    @robin-w

    Moderator

    yes the issue was fixed by Astra in 4.1.2 after I raised it with them.

    I just looked and there was an interim version they released which didn’t have the fix, but which my code did not pick up on, so that was the one you were on – apologies, I should have thought of that, but it was only live for a very short period.

    Anyway glad you are fixed.

    @robin-w

    Moderator

    With Astra releases above 4.0.2 this is not needed and you will not see the theme support tab – what exactly is your issue? ie wehat are you seeing/not seeing?

Viewing 25 replies - 1,576 through 1,600 (of 14,252 total)