Hi Viktora,
Sorry to hear you’re having trouble. What theme are you attempting to add bbPress support to?
Not sure what you are meaning… I have custom WP template written from scratch. And I would like to add bbpress 2.1 template to it. I did what I described above just to see if any result outcomes. I expected to see header-body-footer forum screen (based on my knowledge of template packed in bbp-theme-compat directory). My custom WP template uses header – left sidebar – body – right sidebar – footer. So the difference should be visible (there should not be any sidebars). But I saw just the forum inside my custom theme (with left and right sidebars). In the target design, I would like to have the bbpress designed like here on bbpress.org (with left sidebar).
My custom WP template looks like this: http://poradci-sobe.cz/
My old bbpress forum (1.1) looks like this: http://poradci-sobe.cz/diskutujeme/ (I would like to have the new bbpress 2.1 designed in this way)
And here is how the new bbpress 2.1 forum looks like now: http://poradci-sobe.cz/forums/ (this is not wanted, the “1.1” design is desired but I am not able to theme the default bbpress template in bbp-template-compat root directory
I’m not sure what the problem is…
It looks that way because there is not enough room. Topics/Posts/Freshness are being pushed together because you are not giving the forum enough space.
Or.. are you talking about the design of the new default theme? If that’s the case, I can’t help.
-
This reply was modified 12 years, 3 months ago by csk.
Hi Syndicate, the troubles are not things pushed together (will be resolved later by styling). Trouble is that the root template files from /wp-content/plugins/bbpress/bbp-theme-compat/extras are ignored moved into wp-content/themes/MYTHEME/. This bahaviour was tested on page-front-forums.php file. Compared to file bbpress-functions.php which is not ignored if moved to wp-content/themes/MYTHEME/. Than, it is not clear to me what to do with directories /css and /js from bbp-theme-compat if I want to use them in my custom theme.
It looks like this is my solo topic.:-) So I continue contributing. Here is my progress in resolving the isue described above.
I have created bbpress-extras directory in MYTHEME directory. All files from /wp-content/plugins/bbpress/bbp-theme-compat/extras were copied into this directory. Than I edited bbpress-functions.php (copied to MYTHEME directory). Following code looks to be promising
function bbpress_custom_template() {
if ( is_bbpress() ) {
require_once ( 'bbpress-extras/page-front-forums.php');
exit;
}
}
add_action('template_redirect', 'bbpress_custom_template');
This is the result: http://poradci-sobe.cz/forums/
This looks like this is the way how my custom template files can be stopped to be ignored by bbpress. At least the first file I am testing – page-front-forums.php. I will try to make the condition more precize and to create special condition for each template file I want to use.
Does anybody know, why this approach creates as many forum lists as the number of forum is?? Each forum lists is the same except forum name is different. I would expect there will be only one forum lists without any name.
I am looking for JJJs answer saying “this is a very poor solution”. I am trying my best. Sorry for that.:-)
-
This reply was modified 12 years, 3 months ago by viktora.
Hi Viktora,
I setup bbPress and it worked straight away, there is a slight difference in what I did and what you say you did in your original post and here it is:
– copied all files from “bbPress/bbp-theme-compat/bbpress/” to the new directory above
The address I copied across was the whole bbPress/bbp-theme-compat/ not just the bbpress folder.
Not sure if this helps, but it is worth a go.
Good luck!
-
This reply was modified 12 years, 3 months ago by Lynq.
Hi all, let me report on my progess.:-) I started with copying the “page-front-forums.php” from /extras to wp-content/MYTHEME directory and this decision was probably wrong. Reason? Other files are working fine in MYTHEME directory so far but page-front-forums.php is not working. I do not know why but I have found that someone had similar issue before: https://bbpress.org/forums/topic/bbpress-does-not-show-list-of-all-forums-2/. But I do not like the solution presented.