Skip to:
Content
Pages
Categories
Search
Top
Bottom

Topic & Reply count

  • @skez

    Participant

    Hey everybody!

    Me and a friend have been looking for this for several hours now without look. I’ve found some outdated posts about it but since they’re outdated any eventual fix doesn’t work.

    What we want to do is remove the topic and reply count from the Forum titles (marked red in the image). I’ve personally checked probably all .php-files in bbpress\templates\default and few in the includes folder looking for anything related to topic, reply count. Either I’m looking in the wrong place or I’ve missed them.

    As you can see I marked something with green as well, this isn’t as important but I would like to either remove that one or rename to Star or something similar since pressing it sends you back to the start page.

    Appreciate all kinds of help, cheers!

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

    Moderator

    No problem !

    Item 2 on the attached

    Layout and functionality – Examples you can use

    @skez

    Participant

    Thanks for your reply Robin but unfortunately it doesn’t seem to work.
    For me the line with <?php bbp_list_forums()?> is line 44 and not 30.

    I’m not completely sure I am doing it right, I change the following in the file bbpress/templates/default/bbpress/loop-single-forum.php<?php bbp_list_forums()?> to

    <?php bbp_list_forums(array (
    'show_topic_count' => false,
    'show_reply_count' => false,
    'separator' => '',
    ));?>

    Is that correct? I tried different endings as well, since the original line ends with just )?> I tried ending the new one also like that but all it gives me when I reload the forums is the following
    Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /home/virtual/mydomain.com/public_html/familjen/wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php on line 45

    If <?php bbp_list_forums()?> is line 44 then line 45 has to be 'show_topic_count' => false,

    I’m very confused here!

    WAIT A MINUTE NOW! It was just me not realizing the => represents => but => turned to => when I copied it into this post so now it works. Many thanks!

    @skez

    Participant

    Sorry for one last post but line-through was supposed to go through everything down to “wait a minute now”.

    Anyhow, cheers a bunch!

    @robin-w

    Moderator

    Great, I am presuming that you’re all working now !

    @milenushka

    Participant

    Hi @robin-w,

    and how to get rid of the little comas in between the sub forums?

    I added this code to my functions.php, but the comas still appear..

     function remove_counts() {
    $args['show_topic_count'] = false;
    $args['show_reply_count'] = false;
    $args['count_sep'] = false;
     return $args;
    }
    add_filter('bbp_before_list_forums_parse_args', 'remove_counts' );
    

    thank you

    @robin-w

    Moderator

    try changing

    $args['count_sep'] = false;
    

    to
    $args['count_sep'] = '';

    @incakola100

    Participant

    Hi guys @robin-w

    I really don’t get it.

    I changed the <?php bbp_list_forums()?> in to

    <?php bbp_list_forums(array (
    'show_topic_count' => false,
    'show_reply_count' => false,
    'separator' => '',
    ));?>

    In the bbpress plugin folder and tried it in the theme folder. Both Didn’t work. What am I doing wrong?

    Got it to work in the functions.php

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