Sorry for my previous reply.
I don’t think I understand what you said …
It seems to me that your search page presents the results of blog posts and not the topics and replies from bbPress.
Thank you guys from bbPress team!
Hi all,
I’m sure this has been covered off in another topic – if so, please link to it and close off this thread. Relatively new to bbPress, building a site using Elementor. I’m not able to get in to edit the forum pages with Elementor, not able to find the_content function.
Running WordPress 5.6, bbPress 2.6.6, and Elementor 3.0.15. Site is https://www.napeersupporters.com, running Astra theme
I was curious if anyone has or knows of any function or shortcode that I can use that pulls the first topic from a specific forum and shows it on a page?
@robin-w , does your bbpress shortcode plugin do this?
I basically want to create a section on my homepage called “Announcements” and have the latest two topics from my forums with the Title and an excerpt from the post body included.
ok, given that Elementor Theme Builder is a paid theme and bbpress one of the largest forum plugins, have you tried asking on elementor support?
Hi Robin,
As far as I understand that add-on it is useful when I want to create bbPress pages from scratch.
This is not what I want.
I am totally happy with the default design of bbPress that my theme delivers.
The only thing I am missing is a right sidebar on all forum pages.
I know that may sound quite complicated when you are not familiar with the way the Elementor Theme Builder works. It basically replaces all the header, footer, page and post templates of a theme. Every template has Display Conditions where it should appear (what it should replace). At least that’s how it’s supposed to work.
I just can’t get the Elementor Theme Builder to apply the page template with the right sidebar to all of the forum pages but only to the forum page that lists all of the topics.
My suspicion is that Topics are another post type than Forums and that is why the template only applies to “forums” posts but not to “topics” posts. “Forums” is the only display condition I can choose in the Elementor Theme Builder so maybe the other types are just missing.
Hope that makes sense.
@robin-w
it is the translation that is bad.
I said I am using bbpress 2.6.6
but I tried the other versions. Under 2.5.14 it works but from 2.6.0 it no longer works
Under 2.6-rc-6 and other 2.6-rc-x it works but not under 2.6-rc-7
I would like to come back to 2.6.6 and that it works
by the way thanks for helping me 🙂
looks like this is what you need
bbPress
I am not sure if this is more of an Elementor or a bbPress related problem.
I try to create a page template for bbPress pages in Elementor Theme Builder.
It only works for forum pages (the page where the topics of a forum are listed) but not for the page that appears when I click a specific topic (where replies are listed and the actual discussion takes place) and also not for the forum search results page.
It seems like the Elementor Theme Builder only replaces one kind of a page (or custom post?) template of bbPress but not all of them. As I do not fully understand how bbPress is organized in regards to different page templates I think I cannot ask the most useful questions to Elementor support or forum.
I tried lots of different display conditions but found no way to create a page template for this kind of pages. maybe somebody here has the same problem and found a solution or can help me to explain better what could be the problem?
and couldn’t use it in bbPress function’ file.
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
sorry for late reply.
You would do better to link to topic and reply content
so
add_filter( 'bbp_get_reply_content', 'content_link_for_user_snippets',80, 2 );
add_filter( 'bbp_get_topic_content', 'content_link_for_user_snippets', 80, 2 );
I’d run them at priority 80, as bbpress runs various actions at this point, including one called ‘bbp_make_clickable’ at priority 60, which would probably reverse your efforts !
sorry, I maybe misunderstanding
bbpress 2.6.6 is the official version, downloaded from here
Download
I’m not sure why you are using 2.6-rc-6?
and 2.6-rc-7 is not released yet, so will have bugs
Good idea for Christmas! 2 years ago we switched to bbpress from Drupal – and we are still happy. It has become much easier to work – everything is easily scalable and customizable. The forum at the heart of our site – https://imhodom.ru/.
Now we have an editor-in-chief, not a tired programmer) There is no such service that would not be in WordPress, and some ideas were suggested to us by plugin authors.
Special thanks to @johnjamesjacoby and @robin-w – success and good luck the New year!
Hi,
I cant figure out how a topic is related to its category in wp database.
I know for WP blog posts its Object id (post id) and term id (category)
But for bbPress topics i cant find the connection in database.
Can someone help me ?
@defiance12 : Your forum looks great.
Many other forum softwares we’ve tried have hundreds of features we do not need. Bbpress is lightweight and easy to use. So a big thank you from me to the community and team too.
We did also a lot of customizations and shaped bbpress for our leading turkish business directory.
Our forum: https://www.turk5.com/forum/
ok it’s changing!
by going under bbpress 2.5.14 I find the subscriptions to the forum in the progil, and I can unsubscribe and subscribe and the subscriptions page takes it into account
on the other hand as soon as I pass to the 2.6 and the following ones it does not work any more, I lose the posting of the subscriptions to the forum (but not to the subjects which still work)
2.6.6
but the forum under bbpress dates from December 2016.
I thought of modifying the version of bbpress
but I could not find the previous versions for download, including the one under 2.5
I have to re-explain that even reinstalling bbpress, setting the default theme, and disabling any other plugins, the action of subscribing to a forum doesn’t work.
Very precisely, on the forum in question it is clearly indicated Subscriber. But in bbpress profile, the Subscriptions page does not indicate any forum and there is no notification.
Suddenly, I dry
I just wanted to say a BIG thank you to @johnjamesjacoby and the rest of the fabulous team for creating and maintaining this excellent free forum software! My forums at https://nerdpunk.com.au/forum/cyberpunk-2077/ look and function better than I could have possibly dreamed. They are super fast and responsive and with the support of the community with the various plugins available, the customizations that you can do with bbPress is almost limitless!
Also, I wanted to shout out @robin-w, his bbp style pack plugin is fantastic. I have performed many custom css improvements with this addon, and I see him posting regularly on these forums assisting others. A big thank you to you sir!
One request, if you guys deem my forums to be on par with the other forums showcased at https://bbpress.org/about/examples I’d appreciate a link to my forums their too, so other potential users can see what this great open-source forum can do 🙂
I disabled the theme and plugins. They are all out of the question.
That’s what it seemed to me, they are all out of the question.
In addition, here I did the test, the error also exists. The error is therefore linked to the bbpress plugin.
If you wish to change bbpress templates, you only need worry about those you want to change for instance if you wished to change user-details.php you would
find
wp-content/plugins/bbpress/templates/default/bbpress/user-details.php
transfer this to your pc and edit
and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/user-details.php
bbPress will now use this template instead of the original
ytParticipant
Hello
Thanks for your solution.
Please tell me in which file of my site’s theme or plugins\bbpress\templates\default must use?
ytParticipant
Hello
I want a code to use in the function file of bbPress to hide all links in the content of forum’s topics and replies for visitors.
I mean until a visitor is not logged in the forum, instead of displaying links, it shows a text message like “displaying links to members only” and a registration link to register and enter his account so that redirects to the last page in the topic or reply.
Additional Explanation:
I Use the code below:
add_filter( 'the_content', 'content_link_for_user_snippets', 1 );
function content_link_for_user_snippets( $content = '' ) {
// Snippets.ir
if( ! is_user_logged_in() ) {
preg_match_all( "#<a(.*?)>(.*?)#i", $content, $matches );
$num = count( $matches[0] );
for( $i = 0; $i < $num; $i++ ) {
$content = str_replace( $matches[0][ $i ], '<a href="' . ( get_permalink() ) . '"><span style="color:#F00;">[displaying links to members only]<span></a>', $content );
}
}
return $content;
}
in My site’s Theme and word very nice but it doesn’t have any effect in form and couldn’t use it in bbPress function’ file.
I’m confused as to why there is simply no featured image for Topics. This makes bbPress virtually unusable for any purpose other than tech support and ticket management. I would suggest there are better tools for that anyway.
If you are trying to manage a blogging platform, every single post, in this case a topic, simply MUST have the option of attaching a featured image. Reasonable people could have always agreed to disagree how important the security aspects of uploading images are or are not, but that horse has long since left the barn.
Assuming we either trust our community or really just don’t care about whatever concern drove this decision, why can’t we simply have a featured image that people who are uncomfortable can turn off?
Can you offer even one single reason why we don’t have this?