I’m using BBpress, and I really want my users to be able to reply to each other with the quote of what they’re going to reply, how do I do this? (Example: The person says: “Hello” I want to answer this with the quote “Hello” in my post)
How to respond with a quote
Published on September 8th, 2021 by pandexEmbed Forum activity on another site?
Published on September 7th, 2021 by MaysieIs it possible to embed a feed of forum activity on another site (sort of like an RSS feed, I guess). I’d like to show recent topic, but then when the user clicks on the topic, they go to the Forum on the host site.
Filtering text in replies
Published on September 7th, 2021 by bhkhHello!
I’m trying to filter links that appear in responses. More specifically, they are links that appear in attachments that have been added through GD bbPress Attachments if that matters. I’m fairly sure the code works because it can filter in the content of a page just fine. Here is the code:
add_filter( 'the_content', 'myprefix_use_audio_short_tag' );
function myprefix_use_audio_short_tag( $content ) {
$reg = "#<a .+ href=\"(.+?\.mp3)\".+?</a>#";
$content = preg_replace($reg, "", $content);
return $content;
}
I’m guessing that it shouldn’t be the_content, but I am really working beyond my actual understanding of WordPress. I don’t know if I should be putting a theme file name there or if there is some equivalent to the_content that targets responses in bbP.
Feel free to criticize my regex as well. I’ve actually never used regex in WP/php before.
BTW, my code has been adapted from here: https://stackoverflow.com/questions/55814952/how-to-generate-audio-shortcode-when-theres-an-mp3-in-a-link-tag-in-wordpress
WP 5.8
bbP 2.6.6
Lost password form : error / success message or redirection
Published on September 6th, 2021 by georgeslangeardHello Guys,
I’ve been wandering on the forum for quite some hours and even though the question has been raised many times, there don’t seem to have a proper answer so far.
When you enter your username / email within the lost password form, the only thing happening is that the page refreshes with an argument: https://site.com/page/?checkemail=confirm
It’s a bit confusing for the user. Has anyone found a way to either return a success/ failure message or at least redirecting to another page?
(I’ve tried some function.php codes, 301 redirect and bbp-style-pack.4.8.9)
Many thanks in advance for your help,
georges
Error on “Layout and functionality” page
Published on September 6th, 2021 by bhkhIn #16 the code says this:
//filter to add description after forums titles on forum index
function rw_singleforum_description() {
echo '<div class="bbp-forum-content">';
echo bbp_forum_content();
echo '</div>';
}
add_action( 'bbp_template_before_single_forum' , 'rw_singleforum_description');
But I believe it should be:
function rw_singleforum_description() {
echo '<div class="bbp-forum-content">';
echo bbp_forum_content();
echo '</div>';
}
add_action( 'bbp_template_before_single_forum' , 'rw_singleforum_description');
The first code causes the html to display on the front end.
Template for embed url is not proper in BBPress Pages
Published on September 6th, 2021 by manojmohandevThe embeded template is not loaded in any of the bbpress pages because of which on embeding bbpress page, it results in loading complete website inside iframe for embed.
Allow empty replies
Published on September 6th, 2021 by bhkhI’m using an attachment plugin in bbPress. When someone uploads an attachment to a reply but does not put any text in the reply box (which is totally fine for this forum) and then clicks “Submit”, this is what happens:
– the reply does not post
– no error message is given
– the form resets
I’d like it if either
– the reply posted with only the attachment
– or there was an error message
– or the form didn’t reset (i.e. clicking the button did nothing)
As it is, it’s very confusing because there is no indication of failure. Someone would have to look for their reply to make sure it submitted. That’s not reliable.
Thanks for any help!
How to pin comment to top in topic?
Published on September 6th, 2021 by danyindrawanDear admin and all of bbpress forum member. I have 1 question.
How to pin comment to top in topic?
Can i use 2 page content-forum & content-forum-slug on bbpress?
Published on September 5th, 2021 by outkaxI currently have a bbpress folder in my theme which contains all the theme of my forum. I have a page archive-forum.php which displays the forum page and a page content-single-forum.php which displays the topics. I would like to know how to create a different display for a forum. I would like to display the first forum with a content-single-forum-slug.php and the other forums with content-single-forum.php. I have tried all : content-single-forum-slug.php, single-forum-slug.php, content-single-slug.php, single-slug.php. I didn’t succeed so I think it’s not possible.