Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 7,476 through 7,500 (of 13,530 total)

  • Robin W
    Moderator

    @robin-w

    could be various reasons why this is happening – you have also posted in my style pack support forum, so I’ll pick it up there.


    Robin W
    Moderator

    @robin-w

    my style pack plugin lets you amend breadcrumbs, including not showing the home breadcrumb.

    bbp style pack

    after activation go to

    dashboard>settings>bbp style pack>breadcrumbs


    Robin W
    Moderator

    @robin-w

    bbpress just uses the worpress login.

    On first login, users are given the default role on dashboard>settings>forums

    so it should all be fine.

    In reply to: Threading not working

    Robin W
    Moderator

    @robin-w

    ok it works on bbpress with a twentyten theme – that’s all I can say.

    Can you define down more what ‘not working’ means

    Without a site to see, at the moment you are telling us that your car won’t work, but that’s all the information you give:-)


    Robin W
    Moderator

    @robin-w

    That’s great, and the info on the site page helped greatly, particularly that bbp_get_topic_reply_count() has a number with the comma in it.

    Replies are stored in the wp_posts table. The code creates an entry for the reply order in ‘menu_order’ where there is none, which is what I hoped my filter was fixing. But if the entry has already been created, then it just uses what is in the database. So when you look at a reply, if it has no entry it creates one and then uses that. So by merely looking at a reply you can alter the database! That may explain your funny but strange fact – just by examining an entry you may be changing what is stored !

    Where the reply appears in the display is held in that table under ‘menu_order’

    so I suspect that for instance reply id 119119 – which I looked at – has a bbp_get_topic_reply_count() value of 1,062.

    Can you check the entry in phpmyadmin

    SELECTmenu_orderFROMwp_postsWHEREID= '119119'

    and see if the entry reads 1,062 or 1062 or 0 !

    That will get us further forward


    Robin W
    Moderator

    @robin-w

    this isn’t a bbpress thing – wordpress does this for comments, and bbpress just hooks to that.

    A quick google found this which shows you how to change the files.

    https://www.ostraining.com/blog/wordpress/embed-theming/

    sorry – writing a specific solution for you is beyond free help.


    Robin W
    Moderator

    @robin-w

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

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

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-statistics.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/content-statistics.php
    bbPress will now use this template instead of the original
    and you can amend this

    so copy this file to your PC and open it up.

    then remove lines 37-40 which say

    <dt><?php _e( 'Topic Tags', 'bbpress' ); ?></dt>
    	<dd>
    		<strong><?php echo esc_html( $stats['topic_tag_count'] ); ?></strong>
    	</dd>
    

    and save the file back to your website at wp-content/themes/%your-theme-name%/bbpress/content-statistics.php

    and yes being a child theme change it won’t get overwritten.


    Robin W
    Moderator

    @robin-w

    do you know how to change a file and ftp this to your site?

    If so I’ll give you instructions


    Robin W
    Moderator

    @robin-w

    I’d suggest that something else is disrupting the setting

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back


    Robin W
    Moderator

    @robin-w

    suggest you also post in

    https://buddypress.org/support/


    Robin W
    Moderator

    @robin-w

    probably a buddypress question, have you posted in their forum as well ?


    Robin W
    Moderator

    @robin-w

    ps if it doesn’t, do you have phpmyadin access?


    Robin W
    Moderator

    @robin-w

    Much of this is written so that I can come back to it in future, so bear with me!!

    IF YOU JUST WANT THE ANSWER – IGNORE THIS SECTION

    bbp_reply_url() calls bbp_get_reply_url.

    This function does maths by dividing the reply position by the number of replies per page in /includes/replies/template on line 487

    $reply_page = ceil( (int) bbp_get_reply_position( $reply_id, $topic_id ) / (int) bbp_get_replies_per_page() );

    bbp_get_reply_position gets the menu order in line 1742

    $reply_position = get_post_field( 'menu_order', $reply_id );

    Now I’m not sure if this reply position is comma separated, or if it is blank, then the rest of this function is adding a comma. The remainder of then function calls bbp_get_reply_position_raw which is in /includes/replies/functions

    this calls bbp_get_topic_reply_count, and in this function I think we have the issue.

    The function is in /includes/topics/template but in includes/core/filters.php

    we have a hook in line 177 which has

    add_filter( 'bbp_get_topic_reply_count', 'bbp_number_format', 10 );

    ‘bbp_number_format’ by default pouts the 000’s comma separator in.

    so if we remove this filter it should work.

    END OF…..IF YOU JUST WANT THE ANSWER – IGNORE THIS SECTION

    So try this in your functions file

    add_action('plugins_loaded', 'rew_fix_reply_numbers');
    
    function rew_fix_reply_numbers () {
    	remove_filter( 'bbp_get_topic_reply_count',    'bbp_number_format', 10 );
    	add_filter( 'bbp_get_topic_reply_count',    'rew_number_format', 10 );
    }
    
    function rew_number_format( $number = 0, $decimals = false, $dec_point = '.', $thousands_sep = '' ) {
    
    	// If empty, set $number to (int) 0
    	if ( ! is_numeric( $number ) )
    		$number = 0;
    
    	return apply_filters( 'rew_number_format', number_format( $number, $decimals, $dec_point, $thousands_sep ), $number, $decimals, $dec_point, $thousands_sep );
    }

    Let me know either way if this works !!


    Robin W
    Moderator

    @robin-w

    sorry – in a word – No. 🙂 I’m not a bbpress author, but the template hierarchy is optional not mandatory viz

    ‘With the exception of the basic index.php template file, you can choose whether you want to implement a particular template file or not.’

    Conditional tags will provide a perfectly good solution, and are a recommended alternative viz

    ‘You can also use Conditional Tags to control which templates are loaded on a specific page.’, so yes that will be the root to go.


    Robin W
    Moderator

    @robin-w

    thanks


    Robin W
    Moderator

    @robin-w

    Nice looking site – well done !


    Robin W
    Moderator

    @robin-w

    would be great to post the solution here to help others asking the question in future


    Robin W
    Moderator

    @robin-w

    in which part of the site (front end/backend) and for which users (all/keymaster etc.)

    In reply to: Small template issues

    Robin W
    Moderator

    @robin-w

    combination of your theme and bbpress, sorry but nothing that bbpress can do directly about this, works fine on all default wordpress themes.

    you can of course alter it with css for your theme.


    Robin W
    Moderator

    @robin-w

    may well be. you’ll need to post on the buddypress support site for help – I know little of buddypress !

    In reply to: GDPR EU legislation

    Robin W
    Moderator

    @robin-w

    @stagger-lee sorry I’d missed that line in @rimfaxe ‘s comments, but rise above it please.


    @rimfaxe
    the last sentence to stagger-lee is across a boundary and on the personal side -please keep comments to the matter not about the people.

    Always hate it when I feel I hate to actually moderate, so please keep this friendly.

    In reply to: GDPR EU legislation

    Robin W
    Moderator

    @robin-w

    @stagger-lee please be more careful with your comments, people are entitled to opinions and you are entitled to disagree. You are not entitled to tell others that they may or may not say.

    Up until the last two sentences it was fine, please consider re-wording or removing this last part


    Robin W
    Moderator

    @robin-w

    hmmm – that’s one I wrote, great that it works, but if it was working before then an update to theme or a plugin will be the cause, but as that fixes no further investigation needed !


    Robin W
    Moderator

    @robin-w

    ok, I think you should try 3 things

    1. reset permalinks – I doubt it is this, but always an easy first thing

    Dashboard>settings>permalinks and just click save – this resets them

    2. try and run repair

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

    3. If those 2 fail, the it may well be an update problem, so I’m afraid you’ll need to try this

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back


    Robin W
    Moderator

    @robin-w

    no, as I use widgets, so haven’t delved into plugins

Viewing 25 replies - 7,476 through 7,500 (of 13,530 total)