Many thanks for this, this makes sense and looks like a logical solution.
But, I’ve realised my issue is probably bigger than I thought. It’s not just a sidebar issue but more fundamental. When viewing or posting a new topic or reply the forum ‘jumps’ out of its parent page.
e.g –
(Viewing forum1 which is embedded in page1 using shortcode)
When I post a new topic my url changes to:
/’forum-root-slug’/’topic-slug’/
and so I have ‘jumped-out’ of my original location. This is not what I want to happen. I want the user to stay within the current location. And so, sidebar1 should also stay there without any hacks/workarounds, and sidebar2 should also stay in place for page2 which contains forum2 etc.
So going forward:
==> Any idea how to set a dynamic ‘forum-root-slug’ so that it is whatever the parent location is?
Could try this:
add to template: <?php bbp_forum_id(); ?>
This way you’ll see the ID-number of a forum when you display it.
Say, forum 1 has number xxx, 2 yyy, 3 zzz.
Remove the line above from your template.
Add this to the sidebar:
<?php
$forum = bbp_get_forum_id();
if ($forum == xxx) {
echo ‘code forum 1’;
} else if ($forum == yyy) {
echo ‘code forum 2’;
} else if ($forum == zzz) {
echo ‘code forum 3’;
}
?>
If you want to add a shortcode, you can do it this way in php.
echo do_shortcode(‘[shortcode]’);
Hope this will work 🙂
Did you copy the files to YOURTHEME/bbpress?
Just leave the name of the files the way they used to be.
Yes – I’ve seen this page you recommended and was very excited to get started… but when I copy over those templates into my theme folder they do not take effect. I make changes to those newly copied templates and those changes are not reflected on the bbpress pages.
As I understand it:
-content-archive-forum.php will be seen instead of archive-forum.php
-content-single-forum.php will be seen instead of single-forum.php
But it’s not. Help? Where am I going wrong?
Hi R,
Removing the search bar is easy; it’s a bbpress option. I don’t know the exact option description, cause my bbpress is in dutch, but should state something like this:
[forum options] –> [allow to search through all of the forum]
To remove the forums link the ‘ugly’ way, just add this to your .css file:
article.forum h2.entry-title a { display: none; }
I heavily edited all of my templates (both wp and bbpress), so don’t know how to remove the HTML, but I guess you’ll find your code in a content(-xxx).php file.
The text ‘Forums’ is probably echo’d by the_title()
We are upgrading from yahoo groups to bbPress and want to bring in the last few years worth of Yahoo posts into an Archive category or forum.
Is there a way to do this???
I wonder if this might be the solution for me. I will try to check this out later to see if it resolves the problem.
Navigation: topic or reply belongs to which forum?
Hi, but it’s everything I just get one long output in a <p> tag
e.g.
<p>Viewing 1 results (of 1 total) Author Search Results Last updated 1 week, 4 days ago #37 Forum: Forum title one Author Search Results Viewing 1 results (of 1 total)</p>
loop-single-forum.php has tags in it? This is where the content is coming from isn’t it? It seems to be.
If bbPress has a search function as a widget (which is what I am using) but no way of outputting it what is the point? Sorry if I am being dim, I’m new to bbPress.
Or maybe this can be solved with custom slugs or something?
Is it possible to give forum1 the url /forum1/ and then forum2 the url /forum2/ which is also used after posting new topic or replying to topic?
Or perhaps separate installations of bbpress with different plugin names similar to above?
Hi, i think:
content-archive-forum.php to remove search
loop-forums.php to remove title
This fila are located in bbpress template.
Greetings,
I’m looking for a way to lock or prevent answers on older topics (more than 90 days for example).
Is there a way to “autolock” or disable reply to older posts?
I did found this addon: https://github.com/thethemefoundry/BBPress-Close-Old-Posts/blob/master/bbpress-close-old-posts.php
But since it’s not listed at bbpress.org plugins list, I’m not sure if it’s safe or even compatible with my current install.
btw, searching for “lock” at bbpress.org plugins, at the bottom of the page you will see: ”
Viewing 1 to 4 (4 total)” but there are only 3 plugins listed.
Thank you!!
please help me.
I am getting bbpress shift from server to localhost.
Warning: Creating default object from empty value in C:\xampp\htdocs\cu\wp-content\plugins\bbpress\bbp-includes\bbp-core-compatibility.php on line 84
Warning: Creating default object from empty value in C:\xampp\htdocs\cu\wp-content\plugins\bbpress\bbp-includes\bbp-extend-akismet.php on line 693
When someone registers with bbpress they are redirected to the home page and not back the the forum. Why? The user then has to go through all the pages again to find where they were in the first place. Not very user friendly.
Even just now, I registered on this form, went through all the hoops etc..and where did I end up after signing up? The wordpress homepage?
What about a very simple process of you sign up and you are re-diredted to where you were.
Try deactivating and reactivating bbPress plugin and this should also repair any issues with bbPress role caps.
That seems odd, can you refresh your permalinks and also run the repair tools on your forums and let me know the results.
https://codex.bbpress.org/repair-forums/
This could be an issue with your rewrite rules. To fix this try resetting your permalinks. In your WordPress Administration Screens navigate to Settings > Permalinks, select a different permalink structure and save. Then select your preferred permalink structure and save again.
My breadcrumbs are missing though, do i contact studio press about this or is there a problem known with genesis and bbpress for breadcrumbs as its hard for people to get back to the main page without them.
I don’t know of any issues, but I personally have never used Genesis so what would I know 😉
I would suggest having a search around for things along the lines of ‘genesis bbpress breadcrumbs’ here on bbpress.org and the Genesis ‘sites’ and support sites and see what you can find.
You will want to take a look at modifying some templates for your theme, details on getting started with this are here: https://codex.bbpress.org/theme-compatibility/
Trying to reproduce your issue and I cannot reproduce it accurately, if I search for a password protected topic I actually see both the topic and the reply in the search results, you should also see both.
I presume you are creating these (or protecting them after the fact) in the backend?
(/wp-admin/edit.php?post_type=topic), what I assume should be the case is that if you are manually protecting the topic you should manually protect the replies (/wp-admin/edit.php?post_type=reply) also.
In short bbPress doesn’t support password protected forums, topics & replies officially, yet. There is ‘some’ support in the backend and partially in some of the templates but we haven’t got ‘all of it’ in bbPress yet.
You will also have issues when browsing the topics via eg http://example.com/topics/ and not see the actual topics list. There are probably a few more places where this will break also.
Create a ticket on trac to remind us to look at this for a future bbPress release.
(It will also act as a subtle reminder to keep it in mind whilst other code is written)
https://bbpress.trac.wordpress.org/
Hi, thanks, it wasnt letting me change them but realised its because I am using a genesis theme and i needed the plugin to makea few thing work.
My breadcrumbs are missing though, do i contact studio press about this or is there a problem known with genesis and bbpress for breadcrumbs as its hard for people to get back to the main page without them.
Thanks
Hello Community,
I use bbPress V2.4.1 with WP V3.6.1 and have a problem with sorting the posts in a thread.
Normaly everything is fine. But if I edit a post, the sorting get wrong.
For example:
There are some posts in the thread
– 01.10.2013 Post 1
– 02.10.2013 Post 2
– 03.10.2013 Post 3
– 04.10.2013 Post 4
(everything is fine)
Now I edit the Post No. 2:
– 01.10.2013 Post 1
– 03.10.2013 Post 3
– 04.10.2013 Post 4
– 02.10.2013 Post 2
After this I write a new post:
– 01.10.2013 Post 1
– 03.10.2013 Post 3
– 04.10.2013 Post 4
– 05.10.2013 Post 5
– 02.10.2013 Post 2
Is this a bug or is there any solution for this problem?
Thanks a lot!
Didn’t noticed it was there O.o. Thank you very much :).
I checked it also with only bbpress plugin and theme TwentyEleven as well as TwentyTwelve..
but its not working