Skip to:
Content
Pages
Categories
Search
Top
Bottom

Topics with +1000 replies do not add page numbers to reply permalinks

Viewing 25 replies - 1 through 25 (of 27 total)
  • @aminima

    Participant

    I would appreciate it if any developer can help.

    @robin-w

    Moderator

    you can simply filter this in your theme’s function file.

    not tested but

    add_filter( 'bbp_number_format', 'rew_number_format', 10 , 5) ;
    
    function rew_number_format ($number_format, $number, $decimals, $dec_point, $thousands_sep) {
    	$thousands_sep = '' ;
    return apply_filters( 'rew_number_format', number_format( $number, $decimals, $dec_point, $thousands_sep ), $number, $decimals, $dec_point, $thousands_sep );
    }

    @aminima

    Participant

    It woked. Thank you so much 🙂 🙂
    I wish I knew you as well…

    @robin-w

    Moderator

    great – glad you are fixed !!

    @trietlong

    Participant

    thank you so much

    @casiepa

    Moderator

    @aminima just for your information, in the upcoming v2.6 of bbPress this has been fixed.

    @aminima

    Participant

    Glad to hear that 🙂

    @johnjamesjacoby

    Keymaster

    I am pretty sure this is fixed in trunk for 2.6, but it’s a bug that’s come back a few different times, so I try to keep an eye out for it.

    Sorry for the trouble!

    @editor-mike

    Participant

    Hi,

    I have this issue too.
    However I have zero coding skills, where do I paste that fix in order to sort it?

    Sorry for being clueless.

    @aminima

    Participant

    put it in your theme’s function.php file.
    or if you have buddypress installed too, put it in bp-custom.php.

    @editor-mike

    Participant

    Is that via the WP dashboard or via my server and into the file itself?

    @editor-mike

    Participant

    Sorry, also… where abouts?

    @robin-w

    Moderator

    probably easier to just add the plugin ‘code snippets’ into your site and put the code there.

    That way you will not risk breaking your site

    @editor-mike

    Participant

    Thanks, that looked handy, but just tried it and it does not seem to have sorted the issue.
    Still will not go to the latest reply on topics over 1000.

    Topic in question:

    Crom's Anvil – 15mm Fantasy

    When you click on the last updated by link it changes the URL in the browser but does not actually take you to it…

    @editor-mike

    Participant

    I did a batch of forum repair actions and it fixed the issue.
    You can now click on the last updated by and it takes you to that reply.
    What I have noticed is that after running the repair tool the URL of the last reply includes the page number and topic number.
    Before running the tool when it did not work, the URL just showed the reply number with no page number listed…

    I will update if it breaks again.

    @editor-mike

    Participant

    So, fixing the bbpress forum relationships fixed the problem.
    However any new post once the repair forum tool is used negates that fix.
    The last updated by no longer works and the URL has reverted to showing only the post number without the page number.

    @robin-w

    Moderator

    can you post exactly what you put in the code snippets please

    @editor-mike

    Participant

    add_filter( ‘bbp_number_format’, ‘rew_number_format’, 10 , 5) ;

    function rew_number_format ($number_format, $number, $decimals, $dec_point, $thousands_sep) {
    	$thousands_sep = '' ;
    return apply_filters( 'rew_number_format', number_format( $number, $decimals, $dec_point, $thousands_sep ), $number, $decimals, $dec_point, $thousands_sep );
    }

    @robin-w

    Moderator

    that should work, I’m not sure how to help further

    @casiepa

    Moderator

    @editor-mike,

    If it does not seem to work, you can also find the option in my bbp-toolkit plugin in the ‘Extras’ tab.

    Let me know if that worked after you activated the plugin and the option.

    @robin-w

    Moderator

    @casiepa – sorry forgot that was in your plugin !


    @editor-mike
    – go with Pascal’s idea and see if that fixes !

    @casiepa

    Moderator

    @robin-w

    It’s brand new, so you just couldn’t know 🙂

    @robin-w

    Moderator

    @casiepa – I try to keep up with what’s there as I try not to duplicate, but yes I hadn’t forgotten, but forgot that I didn’t know 🙂

    @editor-mike

    Participant

    Hi, thanks for that.
    I hit the extras and the pagination bit, still no joy.

    🙁

    All topics are fine, just this one with over 1000 replies:

    Crom's Anvil – 15mm Fantasy

    @editor-mike

    Participant

    So, this problem has just appeared again.
    Yesterday it was fine, now again when clicking the last updated by you get the topic number but not the page number…

    Crom's Anvil – 15mm Fantasy

    https://www.thewargameswebsite.com/forums/topic/abs-15mm-fantasy-thing/#post-107748″

Viewing 25 replies - 1 through 25 (of 27 total)
  • You must be logged in to reply to this topic.
Skip to toolbar