Topic & Reply count
-
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!
-
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 45If
<?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!
Sorry for one last post but line-through was supposed to go through everything down to “wait a minute now”.
Anyhow, cheers a bunch!
Great, I am presuming that you’re all working now !
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
try changing
$args['count_sep'] = false;
to
$args['count_sep'] = '';
Hi guys @robin-wI 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
- You must be logged in to reply to this topic.