Ok – it seems to be working as expected now, with a clean refresh. The only difference is that I followed your instructions, Lynq, and not those peppered around this site. The following links say to copy the contents of the bbp-twentyten folder to the theme folder:
https://bbpress.org/forums/topic/bbpress-2-0-theme-compatibility/
https://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/
That doesn’t work for me, however. Copying the contents of the bbp-theme-compat folder did work.
Is this simply a documentation problem that needs to be fixed?
Thank you both for the help and attention!
Hello,
I tried to use the bbpress rate post plugin on WordPress 3.4.1, bbpress 2.0.3, BuddyPress 1.5.6 and the plugin v. 1.6.6. In the group forums it works very well, but in the site-wide forums there is nothing, so I thought I will modify and make it to work in bbpress…
I opened the files (bb-rate-forum-posts.php – the main file) looked at the hooks and tried to find the similar hooks for bbpress, but unsuccessfully for now. I tried few changes but always get blank screen errors.
Can anyone help me, with code, or just hints? Or some other plugin recommendation?
Thanks in advance.
hi,
i’ve just installed bbpress 2.1 on a test site and am loving it. great job and many thanks to all, especially (of course) jjj.
so far the new theme compatibility seems to be working just fine (and MUCH easier to set up) with my simple twentyten child theme.
however, there are very weird problems with the mobile theme from the wptouch pro plugin (for example, with wptouch pro switched on, the blog is displaying forum topic titles without any blog or forum content). what makes this especially weird is that i did have wptouch pro working with bbpress 2.0.
i’ve asked for help on the bravenewcode support forum, but they don’t offer official support for wptouch with bbpress (although, as per usual, emilio is willing to a look)…. so i thought i’d ask here too as wptouch mobile theme plugin might be something of interest to bbpress users and some of you may have a suggestion.
thanks for any ideas to try…;
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, 8 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, 8 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, 8 months ago by
Lynq.
-
This reply was modified 13 years, 8 months ago by
Lynq.
-
This reply was modified 13 years, 8 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, 8 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, 8 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