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)

  • Amin
    Participant

    @aminima

    I would appreciate it if any developer can help.


    Robin W
    Moderator

    @robin-w

    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 );
    }

    Amin
    Participant

    @aminima

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


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed !!


    lambangdaihoc
    Participant

    @trietlong

    thank you so much

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


    Amin
    Participant

    @aminima

    Glad to hear that 🙂


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    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

    @editor-mike

    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.


    Amin
    Participant

    @aminima

    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

    @editor-mike

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


    Editor Mike
    Participant

    @editor-mike

    Sorry, also… where abouts?


    Robin W
    Moderator

    @robin-w

    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

    @editor-mike

    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

    @editor-mike

    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

    @editor-mike

    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

    @robin-w

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


    Editor Mike
    Participant

    @editor-mike

    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

    @robin-w

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


    Pascal Casier
    Moderator

    @casiepa

    @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

    @robin-w

    @casiepa – sorry forgot that was in your plugin !


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


    Pascal Casier
    Moderator

    @casiepa

    @robin-w

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


    Robin W
    Moderator

    @robin-w

    @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

    @editor-mike

    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

    @editor-mike

    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