Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing number in reply header from reply-id to "reply-number"


  • DramaticBaby
    Participant

    @dramaticbaby

    Hi!

    I’m trying to customize bbpress, which ain’t that easy as many of you may know. My problem is that the number on the right hand side in the reply header is showing the wrong number (I my opinion). It shows the id of the reply instead of the reply number inside the topic.

    For example:

    I start a topic, post the first reply. The reply header says #36.

    Second post, reply header says #37 etc.

    I want it to be like this:

    First post is #1, second post #2 etc.

    How do I accomplish this? Should I use some sort of if statement or loop in php? Or is there any premade function that does this?

Viewing 3 replies - 1 through 3 (of 3 total)

  • DramaticBaby
    Participant

    @dramaticbaby

    bump…

    No one got an idea?


    Jared Atchison
    Moderator

    @jaredatch

    Copy

    plugins/bbpress/bbp-themes/bbp-default/bbpress/loops-single-reply.php

    to

    [your_theme_directory]/bbpress/loops-single-reply.php

    Edit line 27 to your liking.

    You will need to create a counter. Something like http://pastie.org/5021188 would be a start. Though it will not take pagination into play, which will be something you must write.


    DramaticBaby
    Participant

    @dramaticbaby

    Thanks for the reply. Ok, that’s what I thought. I’ve found that template and that line too, but ain’t a php programmer so linking the counter to pagination might be tricky with my lack of skills. Yet another reason to learn php then… :P

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.