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 14 years, 3 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.
The code is in the core for you to use, though not yet implemented in the front end, the functions work.
https://bbpress.trac.wordpress.org/changeset/3632
https://bbpress.trac.wordpress.org/changeset/3633
version 2.0.2, sorry
still no solution here, can anyone help me please?? 
thanks
This fixed it for me, too. Thanks so much!
If only I had the time and knowledge.
PS netweb – ‘that is has that is that’?! Your grammatical apathy impresses me–and I am serious…not trying to be a jerk.
Thank you again Annointed.
I solved this issue by placing your code in: loop-forums.php, maybe this has changed in recent releases.
Add the ‘bbPRess Recent Topics’ widget to a sidebar
https://codex.bbpress.org/widgets/
Or use the [bbp-topic-index] shorcode
https://codex.bbpress.org/shortcodes/
You can use ‘shortcodes’ on your WP pages
https://codex.bbpress.org/shortcodes/
Here is something to start with on 2.1 themes.
https://codex.bbpress.org/theme-compatibility/
I have just tried the same by adding the below to a template and is working perfectly for me.
Code:
<?php echo do_shortcode(‘[bbp-topic-index]‘);?>
Currently bbPress has the URL structure that is has that is that, you are indeed welcome to write a plugin or contribute to the code base as JJJ wrote above to implement other URL options for bbPress.
I’m having a problem with my 2.1 themeing since updating. In my custom archive-forum.php a call to <?php echo do_shortcode(‘[bbp-topic-index]‘);?> Is returning the error Fatal error: Call to undefined method stdClass::have_posts() in /wp-content/plugins/bbpress/bbp-includes/bbp-forum-template.php on line 109 .
Any idea what this could be?
OK, thanks. The link would make a great addition to this forum’s sidebar
.