Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 2,851 through 2,875 (of 13,966 total)
  • @robin-w

    Moderator

    I’d start with

    Recalculate engagements in each topic for each user

    @robin-w

    Moderator

    The way subscriptions worked changed between 2.5.x and 2.6.x

    So if you have run the actions in

    dashboard>tools>upgrade forums

    then I’d suggest you try

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

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    ‘recommended’ just comes out worpdress caution of making sure urls don’t clash – I’ve not seen an occasion when they did, so it is a recommendation – you decide 🙂

    of slugs must be unique, so no you can’t have the same

    @robin-w

    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>forum templates

    @robin-w

    Moderator

    if you are after styling the forums, then

    bbp style pack

    @robin-w

    Moderator

    dashboard>settings>forums and switch off the forum prefix

    In reply to: Forum layout

    @robin-w

    Moderator

    the theme used on this site is in

    https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base

    but I suspect your site already has a theme and other plugins.

    I would suggest you look at

    bbp style pack

    which will let you amend many things, and let you add single topic and single forum widgets to your sidebar

    @robin-w

    Moderator

    that post was a spam post, so I deleted it.

    @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

    spectators should not be able to create topics.
    Participants by default can.

    you will either need to

    change participant permissions -see this

    Custom Capabilities

    or add

    Private groups

    and set up topic permissions which will then let you set up a group with permission to reply only

    @robin-w

    Moderator

    forums are displayed using wordpress wpquery and post parent. you could add postmeta and add this to the query, but as I say lots of work to make this happen

    @robin-w

    Moderator

    you can make a topic ‘super sticky’ which will make it appear at the top of all forums.

    I know of nothing that will do a couple of forums, and indeed the code to do so would need to catch lots of areas, such as subscriptions, freshness etc. which at the moment rely on the ‘post parent’ table element of WordPress, so lots of code might be needed to get it to work.

    @robin-w

    Moderator

    I would switch debug on – and see what errors you are getting

    https://wpforms.com/developers/how-to-enable-debugging-in-wordpress/

    and see what error is occuring

    @robin-w

    Moderator

    ok, so when it occurs it is site wide and to all users including yourself? and casual (non logged in) visitors?

    @robin-w

    Moderator

    hmmm….

    ok so the function bbp_get_user_topic_count_raw definately exists, so it is possibly a load order issue, but you would expect that to be consistent – or it is something else 🙂

    intermittent issues are always hard to trace, can you recreate this, or how often is it happening, or it is happening to particular users (eg participant, subscriber) etc.

    @robin-w

    Moderator
    add_filter( 'bbp_get_forum_freshness_link', 'rew_show_forum_freshness' , 10 , 6) ;
    
    function rew_show_forum_freshness ($anchor, $forum_id, $time_since, $link_url, $title, $active_id ){
    	return $time_since ;
    }
    
    add_filter( 'bbp_get_topic_freshness_link', 'rew_show_topic_freshness' , 10 , 6) ;
    
    function rew_show_topic_freshness ($anchor, $topic_id, $time_since, $link_url, $title){
    	return $time_since ;
    }

    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

    I am nit a bbpress author, just someine who tries to help out here.

    bbpress has never worked well with threaded replies, sorry that’s just the way it is.

    it is really hard to do pagination with nested replies and make the display work intelligibly.

    If you know js well, then you could do some hide/show in css maybe, not my strong point.

    In reply to: Shortcodes in Sidebar

    @robin-w

    Moderator

    suspect that as bbpress has custom post types, your sidebar manager is responsible

    so standard testing advice is

    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

    In reply to: Shortcodes in Sidebar

    @robin-w

    Moderator

    may well be theme/plugin related, can you give a specific example please

    @robin-w

    Moderator

    untested, but this should take out newlines and change the excerpt length to 150 – just change the 150 in the code to whatever length you want.

    so firstly you need to alter the default in wordpress which is 55 so

    add_filter( 'excerpt_length', 'rew_change_default_length' ) ;
    
    function rew_change_default_length () {
        return 150;
    }

    then alter it in the bbpress function, and change to take out line breaks

    add_filter ('bbp_get_topic_excerpt' , 'rew_remove_line_breaks', 10 , 3) ;
    
    function rew_remove_line_breaks ($excerpt, $topic_id, $length){
    		$topic_id = bbp_get_topic_id( $topic_id );
    		//change length here
    		$length   = 150 ;
    		$excerpt  = get_post_field( 'post_excerpt', $topic_id );
    
    		if ( empty( $excerpt ) ) {
    			$excerpt = bbp_get_topic_content( $topic_id );
    		}
    
    		$excerpt = trim( strip_tags( $excerpt ) );
    		
    		//take out line breaks
    		$excerpt = preg_replace("/\r|\n/", "", $excerpt);
    
    		// Multibyte support
    		if ( function_exists( 'mb_strlen' ) ) {
    			$excerpt_length = mb_strlen( $excerpt );
    		} else {
    			$excerpt_length = strlen( $excerpt );
    		}
    
    		if ( ! empty( $length ) && ( $excerpt_length > $length ) ) {
    			$excerpt  = mb_substr( $excerpt, 0, $length - 1 );
    			$excerpt .= '…';
    		}
    		
    		
    		// Filter & return
    		return apply_filters( 'rew_get_topic_excerpt', $excerpt, $topic_id, $length );
    }

    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

    @joel-mohanraj
    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php

    transfer this to your pc and edit

    so you will want to take the link out of line 34

    <a class="bbp-forum-title" href="<?php bbp_forum_permalink(); ?>"><?php bbp_forum_title(); ?></a>

    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/loop-single-forum.php

    bbPress will now use this template instead of the original

    amending the freshness will require you to amend the bbp_get_forum_freshness_link function. if you are familiar with filters you can use the filter on line 585 of \includes\forums and a str_replace to take out the link

    @robin-w

    Moderator

    sorry, not sure which exact part you want to replace.

    so is this the links in the forum list of topics? or everywhere or what?

    @robin-w

    Moderator

    if that works, go for it 🙂

    @robin-w

    Moderator

    beyond free help, but contact me via

    Contact me

    if you would like custom work

Viewing 25 replies - 2,851 through 2,875 (of 13,966 total)