Just to make sure (and after taking a backup) I deleted my bbpress plugin folder.
re-downloaded it and re uploaded it.
So using my current theme and installing a fresh copy of bbpress my bbpress.css file loads from within my theme folder.
Your theme doesn’t happen to hard code a css path or anything does it? It could be a plugin loading in the css file or something, but not too sure apart from that, sorry!
P.s. I also used the bbpress-functions.php file from bbp-theme-compat
That’s exactly what’s happening. I’m using the responsive theme. I have a responsive-child theme folder that includes the necessary information for me to use it and have responsive as the template, along with style.css that has some modifications to the responsive theme’s css. I then copied everything from …/wp-content/plugins/bbpress/bbp-themes/bbp-twentyten to the responsive-child folder and added the aforementioned line to bbpress-functions.php.
bbpress ignores .../responsive-child/css/bbpress.css and instead calls the one from the plugins folder.
I added a simple css line in my style.css file for my child theme to try to replace the background color of the rows on the forum index:
#content table tbody tr.odd td {background-color:#efefef;}
The web inspector in Firefox shows that it is recognized but precedence is taken by the aforementioned css file in the plugins folder.
-
This reply was modified 13 years, 7 months ago by
Clay.
It still calls the bbpress.css in the plugins folder. Is there a specific place that the add_theme_support line needs to go in bbpress-functions.php?
I did the following today:
-
Install a fresh version of wordpress and bbpress plugin.
-
Copy all files (except style.css) from …/wp-content/plugins/bbpress/bbp-themes/bbp-twentyten to my child theme folder
-
Modify bbpress-functions.php to include add_theme_support( 'bbpress' );
bbpress is still using the bbpress.css file from wp-content/plugins/bbpress/bbp-themes/bbp-twentyten/css
I’ve been tinkering with it for hours and I cannot get it to start using my child theme’s css files by default. They properties always are overwritten by the bbpress.css file in the plugins folder.
Ideas?
-
This topic was modified 13 years, 7 months ago by
Clay.
Inside this file: http://www.geekandjock.com/wp-content/themes/parallelus-mingle/bbpress.css
Line 104.
#bbpress-forums .bbp-forums-list li {
display: inline;
font-size: 11px;
}
You will need to change to:
#bbpress-forums .bbp-forums-list li {
display: block;
font-size: 11px;
}
This is the one thing that keeps cropping up when I am on these forums, so once you have got yourself comfortable with this then the rest of the stuff I have done with my forum has been mostly CSS. there is some PHP because I wanted to try and make it a bit unique, but none of it touches the core.
Good luck!
Nothing, looks correct to me.
If you check the markup you now have markup ready for your CSS.
Now in your css you could add something along the lines of:
.bbp-forums .bbp-forum-info .bbp-forums-list .bbp-forum {
display: block;
}
omg, so am I copying the file bbpress-functions.php into the theme root and then adding this other code at the bottom and then modding the loop-single-forum.php file?
@Rastarr I have a feeling that when I used the backticks it cut off some of the code and you might of copied that across so it was formatted incorrectly?
Hmm sorry Rastarr, I can’t get the code formatting to display correctly currently.
http://pastebin.com/qsuEvBgL
-
This reply was modified 13 years, 7 months ago by
Lynq.
-
This reply was modified 13 years, 7 months ago by
Lynq.
-
This reply was modified 13 years, 7 months ago by
Lynq.
The stuff above it is the code you gave me so that is probably where the issue must be.
But I don’t know what could be wrong. Goodness this is so crazy.
If you paste it and then select the text, then click the {} button just above that should format it as code for you.
It is probably before line 43 where the error lies and is not closing something off, so PHP continues happily until it hits line 43.
What code do you have on line 43?
Line 43 is now:
Unsure where the missing ‘)’ is. This is so incredibly frustrating for a non-coder to make a minor adjustment.
Hi Martin,
You should not edit the core code.
Inside your template files is a file called loop-single-forum.php, this file calls the bbPress function bbp_list_forums();
You will notice that it is probably not specifying any arguments it just specifies bbp_list_forums();
If you specify arguments for that function like the ones listed above it will then wrap the subforums inside li tags which you can then use CSS to style.
Good luck!
P.s if you want to find out more about how that function works it is inside /bbpress/bbp-includes/bbp-forum-template.php but you do not need to edit it.
Seeing how this will format:
$args = array (
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'count_before' => '',
'count_after' => '',
'count_sep' => '',
'separator' => '',
'forum_id' => '',
'show_topic_count' => true,
'show_reply_count' => true
);
bbp_list_forums( $args );
-
This reply was modified 13 years, 7 months ago by
Lynq. Reason: Reformatting the code
No no no. Don’t hack core. Copy whichever template file has this call to it, directly into your theme, in the same location it is in bbp-theme-compatibility. Use the code above, but correctly formatted.
well I get a bit of an error, like so:
Parse error: syntax error, unexpected T_CLASS, expecting ')' in /Users/MartinC/Sites/gaj/wp-content/plugins/bbpress/bbp-theme-compat/bbpress/loop-single-forum.php on line 25
Warning: missing endblock() for startblock('middle') in /Users/MartinC/Sites/gaj/wp-content/themes/parallelus-mingle/framework/theme-functions/layout-and-design.php on line 137
Any ideas?
Would have preferred to do it via CSS since hacking the core code will get overwriten but if it can’t be helped then it can’t.
No idea on this error though.
Thanks for any help
Martin
🙂 Eventually. Not *quite* there yet. Need to fill in some copy here first, migrate the codex, etc…
I seem to be having trouble posting code to the forum, it wants to cut off the first part of it. Anyone else having issues or is this me doing something wrong?
Loving it!
Some “could be nice”s:
Frontpage: I think the 1-3 latest blog posts ought to be shown prominently somewhere on the front page.
Forum: Have you considered using the excellent WP Markdown plugin for this forum? I find it to be a really clever, future-proof alternative to bbcode.
-
This reply was modified 13 years, 7 months ago by
Erlend.
You can do this with jQuery
jQuery(document).ready(function($) {
$('a[href^="http://"]').filter(function(){
return this.hostname && this.hostname !== location.hostname;
})
.click( function() {
window.open(this.href);
return false;
});
});
Might be able to clean it up a bit and modify it for use with multisite, but it’s a start.
Oops, the code got parsed funky. Basically, I’m using a variation of the code on this page: https://codex.wordpress.org/Function_Reference/fetch_feed
Does Membership-lite have any bbPress specific code in it? I suspect it has something to do with roles and capabilities. Maybe try deactivating bbPress, reactivating it, and visiting Settings > Forums. That silently does a bit of validation on some bbPress settings, in the event things get botched somehow.
Few biggish things to do:
* Migrate Codex
* Redirect Legacy Plugins
* Blog Sidebar and Comments
I just saw a tweet about this plugin yesterday.
http://easydigitaldownloads.com/extension/content-restriction/
While I have not used it before, I know his code is rock solid and support is fantastic. It specifically mentions bbPress support and might be able to easily be modified to use groups instead of people who purchase a product. Might be worth asking him about.
If I ever pick up a copy, I’ll try to write up a full review on it as this feature has been requested for some time now.