Skip to:
Content
Pages
Categories
Search
Top
Bottom

topic-reply-count: starting at "1"

  • @project_subdomain

    Participant

    (sorry, offline-site. child theme in use.
    WP 4.1.1, bbpress 2.5.5)
    Hi!

    How (and where) could I make bbpress count posts/topic replies starting at “1” instead of “0”?

    As I’d like to forbid creating new topics while replying to topics is allowed I don’t want the creation of a new and empty topic being counted as topic-reply.

    Could you help me?

Viewing 7 replies - 1 through 7 (of 7 total)
  • @robkk

    Moderator

    id say create a custom bbPress forum role

    hopefully this guide will help you out.

    Custom Capabilities

    as for the changing the bbpress count to start from a different number , that might cause some issues..

    @project_subdomain

    Participant

    Many thanks, Robkk!

    Would you give me further information about these issues or where to find the file?
    Are there any other solutions to avoid that first post counting?

    The structure should be:
    Forum – Subforum – Topic (no user interaction allowed) – User Reply
    So switching to Categories doesn’t seem be a solution.

    @robkk

    Moderator

    now that i think about it , since it is just for looks you could use math and just add 1 to the already post count.

    just simple math in PHP.

    http://www.plus2net.com/php_tutorial/math-add.php

    @project_subdomain

    Participant

    Thanks, Robkk, I’d like to try that. Unfortunately I cannot find the “function”-file for the topic-reply-count.
    Do you know where to find it?

    @robkk

    Moderator

    i say use <?php bbp_topic_reply_count() ?> and use math with it.

    this code and where i think you want to modify it should be in loop-single-topic.php

    make sure you copy it to your child theme into a folder called bbpress so an update doesnt lose your data.

    @lissyhunnybee

    Participant

    Sorry to bump an older thread, but I just wanted to say thank you for this. I wanted to change the topic post count to a reply count and this was just the ticket 🙂

    @tvt_4892

    Participant

    Hello,

    Can you please Elaborate ?

    I have ‘<?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?>’ in loop-single-topic.php. Can you please help how do I subtract 1 from the value ?

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