Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 2,126 through 2,150 (of 14,233 total)
  • @robin-w

    Moderator

    would need a link to a live example please

    @robin-w

    Moderator

    the only bbpress related settings are the ones I quoted above.

    on my test site

    dashboard>settings>forums>forum user slugs>topics started

    changes the topics list view.

    so if I amend this to ‘dicsussions’ then domain.com/discussions/ works.

    @robin-w

    Moderator

    buddyboss is a paid plugin that ties to the free open source bbpress and buddypress plugins. As such I can’t help further, suggest you contact their support.

    @robin-w

    Moderator

    thanks – I’ll take a look 🙂

    @robin-w

    Moderator

    should be

    dashboard>settings>forums>forum single slugs>topic

    or

    dashboard>settings>forums>forum user slugs>topics started

    @robin-w

    Moderator

    I presume you have ‘anyone can register’ ticked in :

    dashboard>settings>general>membership – that will let anyone join, and at that stage you cannot know if they are real or not, so no automatic way to prevent.

    I’d suggest you move to a closed registration, so that you can manually join people.

    as for getting rid of those in there – you would need some code which would look for all users who have not made a forum post, but this might delete genuine users, so without a forumla to work out who is real or not, it would be hard to code/

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    you could add this to change the wording

    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'You cannot reply to this topic.' ) {
    	//set limit
    	$limit = 5 ;
    	//get replies for today
    	$user_id = get_current_user_id() ;
    	$reply=bbp_get_reply_post_type() ;
    	$today = getdate();
    	$args = array(
    		'post_type'=> $reply,
    		'order'    => 'ASC',
    		'orderby' => 'ID',
    		'post_status' => 'publish',
    		'posts_per_page' => -1,
    		'post_author' => $user_id,
    		'date_query' => array(
    		array(
    			'year'  => $today['year'],
    			'month' => $today['mon'],
    			'day'   => $today['mday'],
    		),
    		),
    		
    		);              
    
    	$the_query = new WP_Query( $args );
    	$count = $the_query->found_posts;
    	if ($count>=$limit) $translated_text = 'You have exceeded the number of replies you can post in a day' ;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    @robin-w

    Moderator

    Just written this – should work

    add_filter ('bbp_current_user_can_access_create_reply_form' , 'rew_limit_replies') ;
    
    function rew_limit_replies ($retval) {
    	//set limit
    	$limit = 5 ;
    	//get replies for today
    	$user_id = get_current_user_id() ;
    	$reply=bbp_get_reply_post_type() ;
    	$today = getdate();
    	$args = array(
    		'post_type'=> $reply,
    		'order'    => 'ASC',
    		'orderby' => 'ID',
    		'post_status' => 'publish',
    		'posts_per_page' => -1,
    		'post_author' => $user_id,
    		'date_query' => array(
    		array(
    			'year'  => $today['year'],
    			'month' => $today['mon'],
    			'day'   => $today['mday'],
    		),
    		),
    		
    		);              
    
    	$the_query = new WP_Query( $args );
    	$count = $the_query->found_posts;
    	if ($count>=$limit) $retval = 0 ;
    return $retval ;
    }

    Just amend the line ‘$limit = 5 ;’ to whatever number you want

    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

    @robin-w

    Moderator

    um, not sure this is the same problem.

    can you give a link to an example please

    In reply to: Forum has blank pages

    @robin-w

    Moderator

    great – glad you are fixed !!

    In reply to: Forum has blank pages

    @robin-w

    Moderator

    ok, if this is a block theme then come back, otherwise take a look at

    Step by step guide to setting up a bbPress forum – Part 1

    section 8 and look at this link which gives a template

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    In reply to: Forum has blank pages

    @robin-w

    Moderator

    so this is a custom theme you are building?

    @robin-w

    Moderator

    or you could just display the bbpress breadcrumb by by changing the css file, or putting this in the custom css

    .bbp-breadcrumb {
    	display: block !important;
    	padding-top: 20px;
    }

    @robin-w

    Moderator

    your theme is hiding the bbpress breadcrumbs in

    https://renaloo.com/wp-content/themes/digiqole-child/assets/css/custom.css line 2281

    This function will add a reference to the breadcrumb

    add_action ('bbp_template_before_single_topic' , 'rew_forum') ;
    
    function rew_forum () {
    	echo '<div class="rew_forum">' ;
    	$topic_id = bbp_get_reply_topic_id() ;
    	$forum_id = bbp_get_topic_forum_id() ;
    	echo '<a href="' . esc_url( bbp_get_forum_permalink( $forum_id ) ) . '" class="bbp-breadcrumb-forum">' . bbp_get_forum_title( $forum_id ).'</a>' ;
    	echo '</div>' ;
    }

    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

    @robin-w

    Moderator

    is your site not displaying breadcrumbs?

    @robin-w

    Moderator

    the whole forum or just the title?

    above below?

    example please

    In reply to: Forum has blank pages

    @robin-w

    Moderator

    the 2022 wordpress theme is a block theme, and doesn’t support bbpress out of the box.

    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

    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>settings>permalinks and just click save – this resets the permalinks and may help

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    link to an example please

    @robin-w

    Moderator

    following closure of the ‘bbPress – Moderation Tools’ plugin, I added this code to my style pack plugin

    bbp style pack

    once activated you’ll find the moderation tools in

    dashboard>settings>forums

    @robin-w

    Moderator

    how have you enabled the html toolbar?

    @robin-w

    Moderator

    1 & 2

    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

    3. bbpress follows the rules in dashboard>settings>discussion

Viewing 25 replies - 2,126 through 2,150 (of 14,233 total)