Making a child theme is beyond the scope of this forum, but there are plenty of good resources if you google “create a wordpress child theme”. In a nutshell, you need “at least” to have a new folder, with a style.css file that references the proper header elements of your parent, including its name and the location of the parent theme’s style sheet.
If you are using the shortcode method, please try the default method instead, which is to change bbPress’s default root slug to something that is “NOT” an existing page (try “sitewide-forums” for example). This will allow you to keep your existing page / shortcut method index. Please show us what happens when you do this? (provide the URL)
You have several issues going on here, but they are directly related to your theme. As is very common, it appears to me that your theme has a conditional statement in the template file that builds archive pages. As such, it’s treating the content for bbPress forums as excerpts, as well as applying some unwanted styling.
Have you tried to build a page using the shortcode method? If so, what was the result? If you found it worked properly, then the issue as suggested above, and you could try to modify your theme or child-theme files to add a similar conditional that looks for bbPress and forces it to use the_content() instead of the_excerpt(). See: https://bbpress.org/forums/topic/non-functional-index-page-when-bbpress-2-1rc4-is-used-with-woothemes-canvas-5-05/
If this page is being built with shortcodes (I don’t think it is from what I see) then what is the result if you try the default forum index method? We outline both methods in our step by step video here: http://labzip.com/the-definitive-guide-to-buddypress-bbpress-configuration/
We’ll get you there… 😉
What is your site url? I can give you some suggestions on where to place the code for a login-box so it shows up on the top of a page.
Also, if you prefer, you can build your forum site index using shortcode / page method… this would give you flexibility of having your default theme sidebar, etc. available to you.
Not sure? Check out our updated step by step guide that covers the two methods for creating a forum index page:
http://labzip.com/the-definitive-guide-to-buddypress-bbpress-configuration/
Cheers!
spence
Hi Ishr,
In Stephen Edgar’s reply that I linked to he posted a link to a gist on GitHub. Place the code he referenced in your child theme’s functions.php file.
Make sure to backup that file before editing it just in case something goes wrong and you can easily revert.
I understand widgets and sidebars but I how is
/forums/ rendered. It is not a page, post or blog. I don’t understand how to add a sidebar to this.
My work around is to create a PAGE and add the forumns via a shortcode but it seems like there should be an option to add to /forums/ (of course I am sure I am missing something simple)
Fundamentally you need to understand that the use of the prefix is designed to put a unique prefix in place when you’re on a forum index page vs when you are on a topic index page. As such, it is not possible with the default code to show “/forum/topic” if ou mean both are prefixes.
I suggest you use the plural term “forums” as your base, then “forum” and “topic” as your prefixes.
If you like, have a watch of our comprehensive guide video:
The Definitive Guide To BuddyPress & bbPress Configuration
cheers!
spence
I understand using the short codes and setting up a PAGE that includes the username login box. …but is there a way to add the username login the default forum. I have my forumn set to the default location /forums/ and I’d like to add the username/password login to this page (in the right sidebar). Is there an easy way to do that?
What about using the ‘Login Widget’ https://codex.bbpress.org/widgets/
Or one of the ‘account’ shortcodes? https://codex.bbpress.org/shortcodes/
Couldn’t you achieve this using bbPress’ shortcodes? Namely; [bbp-forum-index]
I’m having this exact same problem. Unfortunately my WordPress page does not win when I set them to the same slug. Because of this, I want to use different slugs for my WordPress page that contains the shortcode and my Forums Base. This works just fine, the only problem is in the breadcrumb the “Forums” link takes the user to the forum index instead of the WordPress page with the shortcode.
If anyone has any ideas I’m working on this issue on Stack Overflow as well. I think I’ve done a better job explaining it there and getting some good code put together from contributors but haven’t reached the finish line.
MySQL query help moving data between tables
Hi
I have a wordpress(3.4.1) installation and I don’t use standard WordPress
Authentication. I have my own login page(mylogin.php) where I capture the
userid/password and then compare with values in my own user table.
Now I am using BBPress plugin(2.2.2). I have created a page(askanexpert) in
wordpress and inside that page I have put the BBPress shortcode [bbp-forum-index].
Now from frontend when the user does login and go to forum(http://www.domainname.com/askanaexpert),
bbpress forum is visible and all the topics are visible, but forum shows the message that
“You must be logged in to create new topics.”
I think it happens because BBPress is perhaps looking for some authenticated cookie which
was not created due to my custom authentication.
Is there a way to create the cookie from my custom authentication page, which
bbpress will understand ?
I can not get rid of my custom authentication. Is there a way to fix it, so that when user is
logged in to wordpress site he/she can use the forum as regular logged in user without login again?
I am fine to do some programming, but not sure which way to go.
I’m looking for the correct method to dequeue bbpress css from the plugin directory and also that of the css folder within the theme.
The entire site is much larger than just the forum and I really don’t want to call the css for every page as most people don’t have a need to access the forums. I’ll then enqueue the css with is_bbpress combined with is_page(array for the 2 pages that contain shortcodes.
I need to make sure that it dequeues from both locations as there is a custom css being used.
Thanks in advance for the help!
I am currently manipulating with the function that was posted on forums a few days ago and I can’t find a way round a funny issue.
I erased homepape as a first part of my breadcrumb.
There are two options right now and neither are working for me. I will present it underneath (bold means clickable). I either get this
forum>forum | forum>category1 | forum>category1>topic
or this:
forum | forum | forum>category1
I want:
forum | forum>category1 | forum>category1>topic
or this:
(nothing) | forum | forum>category1
Any ideas?
The function I’m trying to get to work is diplayed below
function mycustom_breadcrumb_options() {
// Home - default = true
$args['include_home'] = false;
// Forum root - default = true
$args['include_root'] = true;
// Current - default = true
$args['include_current'] = true;
return $args;
}
I was able to complete step 1 with the following sql query:
INSERT INTO wp_users (user_login)
SELECT DISTINCT post_username FROM phpbb_posts
Now I have transferred over the user names and need to work on step 2 which I think can actually be combined with step 3 as one function… but would still love to hear any ideas.
The shortcode would allow forum owners to display the category and it’s forums with their descriptions, number of topics, posts etc. on a page.
If we had this shortcode, we could set up bbPress forums to look like phpbb3 – with all categories and their forums on one page – which is what I’ve seen a lot of people asking for.
For anyone else looking for this info:
First forum page (if using [bbp-forum-index] shortcode): wp-content>plugins>bbpress>templates>default>bbpress>content-archive-forum.php
Second forum page (if using forum categories and click on a category): wp-content>plugins>bbpress>templates>default>bbpress>content-single-forum.php
editor here was not playing nice with my code… should be “echo do_shortcode…”
I created a new page (badgerakpsi.org/forums) then pasted the shortcode into the page.
My website uses a template, but I can’t understand how the individual topics will display but not the forum index?
1) Create a new page
2) Add the bbPress ShortCode for forum index: https://codex.bbpress.org/shortcodes/ which is [bbp-forum-index]
3) Save the page
4) Go to Settings/Reading and choose this new page as the default home page (instead of your blog).
This will get you a bbPress Forum index on your home page.
To make a “mix” of your bbPress and blog posts, you need to modify your home page template file. This differs per theme, but may be called home.php or index.php (it’s in your theme folder). You would add the bbPress shortcode above the WP loop that displays blog posts. Use the do_shortcode method shown here: https://codex.wordpress.org/Function_Reference/do_shortcode
so it would be (within php tags): do_shortcode('[bbp-forum-index]')
If you do this, then you won’t need to create a page and modify your Settings/Reading as elaborated in steps 1 to 4 above.
Good luck!
Hello. I’d like to allow anonymous posting, but disable it in specific forums. Here’s what I have so far:
function specific_anonymous_bbp() {
if (is_post('XXX')) {
return apply_filters( 'bbp_allow_anonymous', 0)
}
}
add_action( 'plugins_loaded' , 'specific_anonymous_bbp' );
I’ve tried about a thousand different combinations (the above being the latest) with no luck. I found the bbp_allow_anonymous hook looking through the core files, but I’m not sure how to disallow it for specific posts. I also tried making form-anonymous.php conditional based on post ID, which worked, but caused other issues. Any ideas?
How are you implementing the shortcode? Inside a post or inside a template or some other way?!?
I would like to display a ‘New Topic’ form at the bottom of my posts with the [bbp-topic-form] shortcode . When someone publish a topic through this form (inside a regular WP post), I would like to save a post_meta for the regular WP ID post that bind the new topic ID with the post ID.
Someone could me suggest an action to hook ?