ok, the code works in my test site, so a reply edit admin link show ‘hello’ instead of ‘Edit’.
If this is not the case, then it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
ok, so this (untested) one should put the class in for the edit, and change the word edit to ‘hello’
can you test and let me know that it works, and I’ll look at the others.
add_filter ('bbp_before_get_reply_edit_link_parse_args' , 'rew_get_reply_edit_link' ) ;
function rew_get_reply_edit_link ($args) {
$args['link_before'] = '<i class="fa fa-edit">' ;
$args['link_after'] = '</i>' ;
$args['edit_text'] = 'hello' ;
return $args ;
}
Put this in your child theme’s function file – or use
Code Snippets
What’s interesting to me is that this issue doesn’t seem to be common. I found a few email throttle plugins but they are all 4-5 years old, untested, and abandoned. On the other hand, I thought this SMTP limiting was common practice to prevent from spamming. Very puzzling.
visbility hidden should make a forum only visible to moderators and keymasters
If you are not seeing that then it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
I am just about to install the bbPress and testing how it works. Out of the box, does bbPress allow for adding attachments (pdfs, docs, and image files? Emoji and post preview are also things we are looking to add … does bbPress comes with it or do we need to look into Plugins?
======================================================
Bellow content is just for test purposes … we’ll delete shortly
Templates bbPress Forum
Quote Example
<indent> Indentation </indent>
Unordered List Example
- Item
- Item
- item
Ordered List Example

<?php
$topic = bbp_get_topic_id();
$users = get_users() ;
$countsub = 0;
foreach ($users as $user) {
$topicsub_list = array(get_usermeta ($user->id, 'wp__bbp_subscriptions', false)) ;
if (in_array ($topic , $topicsub_list)) $countsub++ ;
}
echo $countsub;
?>
Now it’s understandable that this also didn’t work on the topic I tested it with, because the user has subscribed to multiple topics.
Oh wow!
My Code was to test it for how many User has favourited a particular topic (Like, check how many likes a post has)…

But I guess like you said, If I understand you very well, I am testing in a scenario where User has only one topic listed in the wp__bbp_favorites
meta area…
I think that fact has returned to haunt me now Robin… The picture above shows that the Currently logged in User (Who is a keymaster) has favorited the current topic but, his Favorite doesn’t count, the displayed 1
is for that of the second user who also favorites the same topic and happens to be the only topic he has favorited.
Look at the shot below then:

Now I have added more topics to the user’s wp__bbp_favorites
by favouriting more topics but Its not displaying the favourites in those topics.
Another scenario on a different topic here:

Not displaying the number of favorite for the topic.
I added a new user and it was able to successfully favourite and increase the count on one of those topics that didn’t get from the previous two users.
So I think the favorite count only work if a certain user has only one topic inside their wp__bbp_favorites
Here’s the favourite count code again as I have used:
$topic = bbp_get_topic_id();
$users = get_users() ;
$count = 0;
foreach ($users as $user) {
$topic_list = array(get_usermeta ($user->id, 'wp__bbp_favorites', false)) ;
if (in_array ($topic , $topic_list)) $count++ ;
}
echo $count;
What do you suggest I do now Robin? Should I try explode
explosion???
great – you may want to check the favorites for if a user has more than one favorite topic – I am suspecting your code was only tested with 1 favorite – if so same principal, if not I don’t know why one works and then other doesn’t !!
Ha, good question. I tested again and it did it for all forums.
It could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
hmm, can’t see why it shoudln’t work
try for test purposes
<?php
$topic = bbp_get_topic_id();
$users = get_users() ;
$countsub = 0;
foreach ($users as $user) {
$topicsub_list = array(get_usermeta ($user->id, 'wp__bbp_subscriptions', false)) ;
echo '<br>Topic : '.$topic ;
echo '<br>user_id: '.$user->id.'<br>' ;
var_dump ($topicsub_list) ;
if (in_array ($topic , $topicsub_list)) $countsub++ ;
}
echo $countsub;
?>
that should help you find out where the problem is
I created a topic and had several replies.
I clicked on the link to read the latest reply (from the email notification) and the reply was visible on screen.
1/ Is it not possible to get it to display the reply within the context of the topic rather than just the reply itself?
2/ If I click on “Rely” at the top of this single reply entry nothing happens. I have to click on the breadcrumb to view the full topic and then I can click the Reply link.
I would have thought that if the system was designed to show the isolated topic that hitting Reply would invoke the full topic with the reply form.
Thoughts?
I noticed during my testing of bbPress that if I move a topic from one forum to another that the freshness doesn’t get refreshed.
Is this a bug or is there a design process I am not aware of?
I guess I will be patient for you to test this Robin
$topic = bbp_get_topic_id();
$users = get_users() ;
$count = 0;
foreach ($users as $user) {
$topic_list = get_usermeta ($user->id, 'wp__bbp_favorites', false) ;
if (in_array ($topic , $topic_list)) $count++ ;
}
echo $count;
I am getting the error
Warning: in_array() expects parameter 2 to be array, string given in C:\wamp\www\omna\wp-content\themes\omna2\bbpress\content-single-topic-lead.php on line 134
under 2.5.14 favorites are stored in usermeta under ‘wp__bbp_favorites’ as a list of topics
so to get a count for a topic, you would need to loop through all users and for each one count if the current topic was in it.
so something like (not tested as am tied up elsewhere, so just spending 5 mins on this)
$topic = some function to get current topic number if not already there
$users = get_users() ;
$count = 0 ;
foreach ($users as $user) {
$topic_list = get_usermeta ($user->id, 'wp__bbp_favorites', false) ;
if (in_array ($topic , $topic_list) $count++ ;
}
echo $count ;
ok, you may need to debug your email system
start with
WP Test Email
then it may be your host provider is stripping emails with many bcc’s in it – some do because of spam, so then look at
AsynCRONous bbPress Subscriptions
let us know how you get on
could be many things
It could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
I’m using WordPress 5.2.4, bbPress 2.6 RC 7. I can privately give anyone in-the-know and willing to help a link to a test site.
Symptoms – A search with one word typically works, but a search with more than one word typically gives HTTP error 500. Another symptom, the search first results page isn’t themed.
The symptoms occur with any/all themes, with all plug ins disabled except bbpress.
The symptoms appear like a server resource issue, but this is an AWS machine and more memory/CPU, increasing memory_limit in php.ini, doesn’t change symptoms.
Is there a limit on database size bbPress can handle? The site has roughly 18K users, 100 Forums, 30K Topics, 160K replies.
I’m grateful for any help, direction, diagnostics.
So I will be calling babblebey_has_topics()
?????? Please see as stated below too
<!--Sidebar Start-->
<div class="col-md-4">
<div class="sidebar-topics row sticky-top">
<div class="col-md-12 col-sm-12 col-12 ml-2 mb-2 p-1">
<h3 class="">Latest Forum Topic</h3>
</div>
<div class="col-md-12 col-sm-12 col-12">
<?php
if ( babblebey_has_topics() ):
while ( babblebey_topics() ) : babblebey_the_topic();
get_template_part( 'template-parts/topic', 'card' );
endwhile;
endif;
?>
</div>
</div>
</div>
<!--Sidebar Ends-->
Thank you!
Should I insert the code above in my functions.php as it is, and use [bbp-single-topic id='.$forum_id.'] in my template?
The fact that is not tested, can it break my site?
untested, but try
$title = get_the_title() ;
$forums = bbp_get_forums_for_current_user() ;
foreach ($forums as $forum) {
if ($forum->post_title == $title) {
$forum_id= $forum->ID ;
}
}
do_shortcode( '[bbp-single-topic id='.$forum_id.']' );
The Post Per Page as its been set up from the “Forum Setting”:

Works as it should, i.e dictate the number of topics to display per Single Forum Page:

But the same setting is inturn affecting my custom loop I have placed on my HomePage Sticky Sidebar to display latest topics:

I want something similar to the ` $args = array(‘posts_per_page’ => 10 //my custom number) as its being used in the normal WP Post Loop like this below:
<?php $args = array(
‘posts_per_page’ => 10 // Like this one here
);
$posts = new WP_Query($args);
if ($posts->have_posts()):
while($posts->have_posts()): $posts->the_post();
get_template_part( ‘template-parts/content’, get_post_format() );
endwhile;
endif;
wp_reset_postdata(); ?>
`
Hello there,
Thank you for viewing this thread.
I am trying to set a button for based on users current forum subscription status
When a User “is not Subcribed” to Current Forum
<button type="button" class="btn-lg omna-btn-green shadow-sm" id="forum-subscription-btn"><i class="fa fa-bell"></i> <?php bbp_forum_subscription_link(); ?></button>
<p>Subscribe to this forum and get updates on latest topics</p>


When a User “is Subscribed” to Current Forum
<button type="button" class="btn-lg omna-btn-green shadow-sm" id="forum-subscription-btn"><i class="fa fa-bell-slash"></i> <?php bbp_forum_subscription_link(); ?></button>
<p>Unsubscribe from this forum and stop receiving updates on latest topics</p>

So My Code is suppose to look something like
<?php if (user_is_subcribed_to_this_forum): ?>
<button type="button" class="btn-lg omna-btn-green shadow-sm" id="forum-subscription-btn"><i class="fa fa-bell-slash"></i> <?php bbp_forum_subscription_link(); ?></button>
<p>Unsubscribe from this forum and stop receiving updates on latest topics</p>
<?php else: ?>
<button type="button" class="btn-lg omna-btn-green shadow-sm" id="forum-subscription-btn"><i class="fa fa-bell"></i> <?php bbp_forum_subscription_link(); ?></button>
<p>Subscribe to this forum and get updates on latest topics</p>
<?php endif; ?>
The right function to use in-place of user_is_subcribed_to_this_forum
is what i seek.
Thanking you in anticipation of a working response.
Hello there,
Thank you for viewing this thread.
I have a sidebar on the Homepage of my website that should list latest forum topics. But the number of topics listed is being determined by the “number of topics” set per-page in the “Forum Settings”.
Is there a way to setup an argument($args) similarly to that of the new WP_Query($args)
to set a custom of topics per-page.?
Here’s my query:
<!--Sidebar Start-->
<div class="col-md-4">
<div class="sidebar-topics row sticky-top">
<div class="col-md-12 col-sm-12 col-12 ml-2 mb-2 p-1">
<h3 class="">Latest Forum Topic</h3>
</div>
<div class="col-md-12 col-sm-12 col-12">
<?php
if ( bbp_has_topics() ):
while ( bbp_topics() ) : bbp_the_topic();
get_template_part( 'template-parts/topic', 'card' );
endwhile;
endif;
?>
</div>
</div>
</div>
<!--Sidebar Ends-->
then you need to amend form-topic and form-reply
to amend
<button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
to something like (untested)
<?php if ( bbp_allow_revisions() && bbp_is_topic_edit() ) : ?>
<button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
<?php endif ; ?>
<?php else : ?>
<button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Update', 'bbpress' ); ?></button>
<?php endelse : ?>