Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 8,176 through 8,200 (of 14,219 total)
  • @robin-w

    Moderator

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

    @robin-w

    Moderator

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

    @robin-w

    Moderator

    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

    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

    thanks

    @robin-w

    Moderator

    Nice looking site – well done !

    @robin-w

    Moderator

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

    @robin-w

    Moderator

    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

    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

    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

    @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

    @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

    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

    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

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

    In reply to: Notification Systems

    @robin-w

    Moderator

    I haven’t used this one for a while, but probably still works

    bbPress Pencil Unread

    or this one

    bbPress – Mark as Read

    @robin-w

    Moderator

    I’ve done some more digging…

    Wordpress uses an embed function to do this, which my simple css changes won’t alter

    There are 3 ways to overcome this, as pre this blog

    https://kinsta.com/knowledgebase/disable-embeds-wordpress/

    The first is a plugin, but that is an old one.

    I tested

    Disable Embeds

    and this worked fine.

    @robin-w

    Moderator

    dashbaoard>topics>all topics

    top right of screen click ‘screen options’

    change ‘number of items per page’ to 999 and you can delete 999 at a time, it will take while to refresh but only 4 times needed to get rid of 3400

    @robin-w

    Moderator

    Pascal (@casiepa) has been in touch with the bbpress topics for posts author, and Pascal is taking it over, so expect an updated version soon.

    @robin-w

    Moderator

    you have warning triangles next to each, so it doesn’t like something.

    Try typing one rather than copy/paste and see if that makes a difference

    @robin-w

    Moderator

    you will also need to change the fonts as it is currently black, so also add these

    .wp-embed {
    	color: #fff !important;
    }

    and

    .wp-embed-heading a {
    	color: #fff !important;
    }

    @robin-w

    Moderator

    Easiest way is to change the display using css. Add these to your theme custom css

    remove logo by

    .wp-embed-footer {
    	display: none !important;
    }

    and change the background via

    .wp-embed {
    	background: #000 !important;
    }

    @robin-w

    Moderator

    new forum? old forum stopped working? converted forum? just started happening? been happening for ages ? what have you upgraded?

    @robin-w

    Moderator

    you’ll need to explain what exactly you are doing – ie what do you mean by ‘product’ and how are you copying it and pasting it

    In reply to: bbpress topic problem

    @robin-w

    Moderator

    thanks for the update

Viewing 25 replies - 8,176 through 8,200 (of 14,219 total)