Ok so I had to partially give up, but I did come up with a partway solution. It’s still got some broken CSS here and there.
I am running a WordPress Multisite. I noticed that BBPress will lay out and mostly play nice with the Pinboard theme provided you set the layout to have no sidebars and to be 4 column. You can still have footers, thank god.
http://www.itinerantangler.com/blog/board/forums/
So there’s a live working version of BBPress. I did use the forums.php trick noted above to fix a few things for the time being. I would actually like to just DELETE the search function from the header, because it’s broken and it’s causing the layout to jump.
All right, and I am now making progress.
I made a complete copy of page.php within the /wp-content/themes/pinboard/ directory. I then created a blank file and titled it “forums.php” (with an ‘s’ on forums). I copied the complete text of the page.php file into the forums.php file and started tweaking.
This is the code I have so far:
<?php get_header(); ?>
<div id="container">
<section id="content" <?php pinboard_content_class(); ?>>
<?php if( have_posts() ) : the_post(); ?>
<article class="onecol" id="post-<?php the_ID(); ?>">
<div class="entry" >
<header class="entry-header">
<<?php pinboard_title_tag( 'post' ); ?> class="entry-title"><?php the_title(); ?></<?php pinboard_title_tag( 'post' ); ?>>
</header><!-- .entry-header -->
<div class="onecol">
<?php the_content(); ?>
<div class="clear"></div>
</div><!-- .entry-content -->
<?php wp_link_pages( array( 'before' => '<footer class="entry-utility"><p class="post-pagination">' . __( 'Pages:', 'pinboard' ), 'after' => '</p></footer><!-- .entry-utility -->' ) ); ?>
</div><!-- .entry -->
<?php comments_template(); ?>
</article><!-- .post -->
<?php else : ?>
<?php pinboard_404(); ?>
<?php endif; ?>
</section><!-- #content -->
<?php if( ( 'no-sidebars' != pinboard_get_option( 'layout' ) ) && ( 'full-width' != pinboard_get_option( 'layout' ) ) ) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div><!-- #container -->
<?php get_footer(); ?>
That spreads the forums page out to the appropriate onecolumn width and also completely fixes the profile page. It looks like the entry headers are being called from another php file, so I need to do some more tweaks, but here’s the result as is:
http://www.itinerantangler.com/blog/podcasts/boards/
If I can get it fully tweaked up I’ll post how here. I know others were looking to do this.
Thanks for the replies guys. Jared no it does not. The theme is pretty popular – Pinboard. I am seeing other Pinboard users with the same issue, too.
What I have done is followed the instructions here to carve out a separate forums.php page which is working as intended and rendering the bbPress plugin separate from the rest of the site.
That is allowing me to tweak the code for just this one section, but I haven’t worked out how to force it over to the .onecol layout yet. Worse, it looks like this layout issue persists through various sub-parts of the forum software, such as profile pages.
Does you theme have the ability to set layout controls per page? Does it have hooks for that?
From what I can tell the issue is with this file.
content-archive-forum.php
The css is so convoluted I can’t use my usual tricks of just showing the element styles to identify where it is getting its directions.
However the fix would be super simple; I just need to force it into .onecol layout somehow.
I guess I am on my own on this one.
Any help at all on this would be greatly appreciated, guys.
Basically the question is, how come the overall ‘Forums’ page is pulling the .threecol CSS tag while the internal, ‘Topics’ pages are (appropriately) pulling the .onecol CSS tag?
If I could simply figure out where to set the Forums page to .onecol, it’d be fixed.
Thanks!
Zach
Well it was certainly worth a shot, but the CSS is still broken:
http://www.itinerantangler.com/blog/podcasts/boards/
So I am still doing just fine with the sub-forums and topics, but the main “Forums” page (linked above) is stuck in three-col layout instead of one-col, which is what it needs to be. Any ideas on where to switch it over?
Thanks,
Zach
Copy:
wp-content/plugins/bbpress/templates/default/css/bbpress.css
to:
wp-content/themes/[YOUR-THEME]/css/bbpress.css
And that’s all it takes đ
bbPress will auto-detect the CSS file in your theme and use that instead of it’s own.
Guys –
In my particular layout, the ‘Forums’ page is incorrectly calling to the ‘threecol’ CSS tag instead of ‘onecol’. The topics page is calling to ‘onecol’ correctly and lays out fine. I am using a four column layout with a sidebar, and I need the BBpress unit to take up the entire space except for what is in the sidebar.
Broken layout:
http://www.itinerantangler.com/blog/podcasts/boards/
Fixed layout:
http://www.itinerantangler.com/blog/podcasts/boards/board/fly-fishing/
I can edit the forums CSS tags live using Chrome’s “inspect elements” tag and make it lay out properly, but I don’t know where to make those changes amongst all the BBPress php files.
My question is simple: where does BBPress get its CSS directions for the Forums page? It has to be in one of the php sub-files. I just need to change that one CSS tag and it ought to work properly.
Thanks,
Zach
On line 889 of your theme’s styles.css you have a style that hides the replies
.reply {
display: none;
}
Just remove it.
Or you could add this code if you have a custom css option.
#bbpress-forums .reply {
display: block;
}
So I can see what’s happening in the CSS elements. For the “Forums” page, the layout is calling to the “threecol” CSS class as opposed to “onecol.” When I use my Chrome editor to change the tag live, I can make it lay out properly. However, I am not sure where the actual “threecol” versus “onecol” decision is being made, so to speak, for the forums page. One of the php files? The master index php?
Any help would be greatly appreciated. In the mean time I think this qualifies as a bug.
How do I enlarge or alter the colour of these tags?
I’ve added this code to the end of bbpress.css without luck
#bbp-forum-title {
font-size: 16px;
}
Are they picking up the h3 style after this css is processed?
From the sticky on the upgrade put the following into your CSS
`.bbp-search-form {
display:none !important;
}`
This CSS rule is getting in the way:
`#content .post ul li,
#content .page ul li,
#content article ul li,
.catalyst-widget-area ul li {
margin: 0 0 0 20px;
list-style-type: square;
}`
You`ll probably want to make these rules more specific to your needs, or write a bit of CSS to reset these in your forums.
For people wanting to hide the new search box, add this to your theme’s CSS:
`.bbp-search-form {
display:none !important;
}`
For the admin area, after further investigation, the only reason I saw the Forums, Topics and Replies menus at all was because of my Post Calendar plugin. Once I disabled that, the Admin menus for bbPress disappeared entirely.
And I’m with @wildomains, I had to disable ‘bbPress moderation’ to get to see the posts. I want to have that plugin, so hopefully either they will update, or whatever change in bbPress broke it can be changed back.
Great, thanks for the new release. Always exciting to see new bbpress updates :)! Couple of comments from me.
Search
I’ve traditionally used Google search to search across my whole site, is there an easy way to switch the new form off? It appears to be forced upon the main forum list page.
It is also not looking great on my sites main forum page, what’s the easiest way to style this, what can I add to my CSS file to change the look? See here.
Stats
For those looking, the Stats shortcode is [bbp-stats], there is also a widget. https://bbpress.trac.wordpress.org/ticket/2052
Is it possible to style the output?
Can I control which stats are shown? For example “empty tags” isn’t something I really want to boast about on my forum!
I’m with you on this — I posted the previous topic in this forum on basically the same topic (need to keep main WP theme, but just looking to make the bbpress forums cleaner looking).
All I got was a generic “here’s the bbpress page on modifying your theme” and without being a master PHP/CSS/HTML guru, that theming page is a bit intimidating and confusing.
What would be GREAT is if someone said “Here, do this ”
1) Create a directory off your Theme’s dir called “my-templates”
2) Drop these files in there for an example clean looking bbpress theme
3) You can modify THIS and THAT file in this example to suit your needs.
Maybe I’m oversimplifying, but bbpress, with all of its advancements, HAS to have some drop-in example themes… ?
Lets hope both of us get a simple example we can try out.
Good day,
I’m new to bbpress and have a question.
I would have liked to show off like this http://www.onemorething.nl/community/forum/
Can anyone tell me what is the easiest way to do this?
I have knowledge of php and html and a little bit of CSS.
Thank you!
Has anyone had any luck in including the ability to change the style of their bbpress forum? I am going to create a day/light and night/dark bbpress.css file. I want my users to be able to switch from one to the other.
If nothing like this has been done before or exists, then could you point me in the right direction to acquire the know-how to do this myself? Thank you.
Hi,
i’ve just installed buddypress 1.7 and bbpress 2.2.4.
I created a custom theme for bbpress doing the following steps:
1. create a folder bbpress inside wp-content/themes/mytheme/
2. moved all the php files that were inside plugins/bbpress/templates/default
3. moved the css file inside wp-content/themes/mytheme/css/
after that
I turned on the functionality to include the bbpress forum inside buddypress groups but I found and issue with the topic subscription and add to favorites.
Because when i click on that link in the single topic view it open a blank page.
I checked the bbp-function.php files stored in plugins/bbpress/templates/default and I found that it enqueue all the ajax function for the topic subscribe option and add to favorite options.
But when I go the forum page inside BuddyPress Group and open the source code I don’t see any enqueue ajax files or functions.
So what should I do to let it works?
thanks
This is probably a dumb question, and youâll point me to a much easier solution!
Also I am still very new to wordpress, so understand a little of css and phpâs but not tons. Iâll use thing and thingy a lot as well, so as not to embarrass myself with the wrong technical terms.
I am using bbpress 2.2.4 on WordPress 3.5.1 with a twentyten child theme that does a few minor mods.
Welcome
I am setting up a forum, but donât want users to see the WordPress toolbar, as this is outside the theme.
But I do want users to be able to change their password and details.
I am using the bbpress login widget in the bbpress sidebar, and by clicking the avatar or their username, users can get to a theme friendly profile page that lets them do just this.
However clicking the avatar is not instinctive, and Iâd like (in the absence of a more obvious solution) to add a thingy to the bbpress sidebar that says âamend profile/change passwordâ which when clicked takes you to the same place that clicking the avatar does (or some similar solution)
From searching on the forums, I have found the line within the widget that does this for the avatar (around line 140) which looks like
a href=â” class=âsubmit user-submitâ><?php echo get_avatar( bbp_get_current_user_id(), '40' ); ?
But have no idea how to then use this or other code to achieve the goal.
Any good ideas, or is there a very basic solution Iâve missed.
Thanks
This is probably a dumb question, and youâll point me to a much easier solution!
Also I am still very new to wordpress, so understand a little of css and phpâs but not tons. Iâll use thing and thingy a lot as well, so as not to embarrass myself with the wrong technical terms.
I am using bbpress 2.2.4 on WordPress 3.5.1 with a twentyten child theme that does a few minor mods.
Welcome
I am setting up a forum, but donât want users to see the WordPress toolbar, as this is outside the theme.
But I do want users to be able to change their password and details.
I am using the bbpress login widget in the bbpress sidebar, and by clicking the avatar or their username, users can get to a theme friendly profile page that lets them do just this.
However clicking the avatar is not instinctive, and Iâd like (in the absence of a more obvious solution) to add a thingy to the bbpress sidebar that says âamend profile/change passwordâ which when clicked takes you to the same place that clicking the avatar does (or some similar solution)
From searching on the forums, I have found the line within the widget that does this for the avatar (around line 140) which looks like
a href=â” class=âsubmit user-submitâ><?php echo get_avatar( bbp_get_current_user_id(), '40' ); ?
But have no idea how to then use this or other code to achieve the goal.
Any good ideas, or is there a very basic solution Iâve missed.
Thanks
This is probably a dumb question, and youâll point me to a much easier solution!
Also I am still very new to wordpress, so understand a little of css and phpâs but not tons. Iâll use thing and thingy a lot as well, so as not to embarrass myself with the wrong technical terms.
I am using bbpress 2.2.4 on WordPress 3.5.1 with a twentyten child theme that does a few minor mods.
I am setting up a forum, but donât want users to see the WordPress toolbar, as this is outside the theme.
But I do want users to be able to change their password and details.
I am using the bbpress login widget in the bbpress sidebar, and by clicking the avatar or their username, users can get to a theme friendly profile page that lets them do just this.
However clicking the avatar is not instinctive, and Iâd like (in the absence of a more obvious solution) to add a thingy to the bbpress sidebar that says âamend profile/change passwordâ which when clicked takes you to the same place that clicking the avatar does (or some similar solution)
From searching on the forums, I have found the line within the widget that does this fro teh avatar (around line 140) which looks like
â<a href="” class=”submit user-submit”>
But have no idea how to then use this or other code to achieve the goal.
Any good ideas, or is there a very basic solution Iâve missed.
Thanks
hi @chrisp2408 , here my forum http://tanyajawabforex.com/forums/
and fixed anyway.. thanks to this threads.