I have one more question. Do I need all the time to add shortcodes?
I mean, if I create 5 new forums, do I need to put this shortcode [bbp-single-forum id=$forum_id]?
How I could know which is id of forums?
Oh, God, I it works, when I add shortcode to a blank page.
Hvala, mnogo. đ
BTW. Where are you from? đ
Zdravo!!
Ok, that helps.
First suggestion:
What happens if you use shortcodes to create a forum index? https://codex.bbpress.org/shortcodes/
Take the shortcode of: [bbp-forum-index] and add it to a blank page.
Does that create a visible forum index?
If so, then your problem imho is that your theme is hijacking the content area in a way that prevents the new bbPress code from working. As such, the solution would be found most likely in your theme’s page.php or similar, where the default archive pages are created. I don’t have access to the Gonzo theme since it is on ThemeForest ;-(
but you can see in my recent post, we fixed a similar solution for Canvas 5 from WooThemes. https://bbpress.org/forums/topic/non-functional-index-page-when-bbpress-2-1rc4-is-used-with-woothemes-canvas-5-05/
If not, then please share the link to the page where you posted the shortcode so I can see the underlying output.
Hvala!
Spence
I need a way to pull topics from the current forum as well as all subforums in the topics loop. To do this, I’ve fetched all forum IDs of the subforums using bbp_get_forum_id() and bbp_forum_get_subforums().
So now I have an array of all subforum IDs stored in $forum_ids.
I started to write a custom query that I can reset so that I won’t disturb the current context of the topic_query but then I realised…I don’t know how to pass the subforum IDs to the query. Is there any functionality that allows me to select from multiple forums? If not, can you direct me to where I have to modify the code? There is so much abstraction that my head is swimming.
Hi Gang,
well…. this one through me for a loop today as well, when moving our WooThemes Canvas for bbPress & BuddyPress site for a test drive on bbPress 2.2 ( http://labsecrets.com/demo/canvas-commerce )
The individual forums would work fine, but the main forum index was rendering what looked like a post excerpt, with everything jumbled into a single paragraph.
Solution was actually rather simple. If you are using a child-theme in Canvas (you ARE using a child-theme I hope?? đ ) simply make a copy of the content-page.php file from parent, and put it into your child-theme folder.
Next, change the entry div as shown, to modify the current conditional check to ALSO see if you are on a bbPress page. Without this extra bit, it assumes that you want the page to show the_excerpt() on every page other than single.php …. not true. We want full content on bbPress pages as well đ
<div class="entry">
<?php
/* If this is a bbPress page show full content not exerpt */
if ( ! is_singular() && (! is_bbPress()) ) {
the_excerpt();
} else {
the_content(__('Continue Reading →', 'woothemes') );
}
wp_link_pages( $page_link_args );
?>
</div><!-- /.entry -->
With this simple mod, all is well and now the native forums index works, and so does building a custom page with shortcode. Ta da!
See: http://labsecrets.com/demo/canvas-commerce/forums/
Hope these help:
‘Widgets’ go in ‘Sidebars’ https://codex.bbpress.org/widgets/
‘Shortcodes’ go on ‘Pages’ https://codex.bbpress.org/shortcodes/
function mycustom_breadcrumb_options() {
// Home - default = true
$args['include_home'] = false;
// Forum root - default = true
$args['include_root'] = false;
// Current - default = true
$args['include_current'] = true;
return $args;
}
add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options' );
I think the above will do what you are after… Just add it to your themes functions.php
WordPress makes some assumptions about paragraph tags, with a function called wpautop. It should be working the exact same way as it works when composing a new page or blog post.
WP3.4.2, Buddypress 1.6.1, bbPress2.2
I’ve set up the new bbPress 2.2 forums for BuddyPress groups as per http://codex.buddypress.org/buddypress-site-administration/migrating-from-old-forums-to-bbpress-2/ . But I may have encountered a bug. Has anyone else had the following problems?
The BuddyPress group admin>forum page check box (followed by save) seems to have no effect on turning the bbPress forum on or off for that group. If the forum was on, it stays on – even if the check box is off. If the forum was off it stays off, even if the check box is on.
Also, the bbPress “forum” tab shows on the group page subnav, even if there is no forum for that group.
By the way, the check box does toggle the âenable_forumâ field in the wp_bp_groups database table. But neither BP nor bbPress seems to respond to the change.
Any help on understanding/fixing this would be much appreciated please.
Well, I’ve worked out why my page.php was not showing my template, the loop I was using was a really simple one, just
the_title();
the_content();
When I replaced it with the loop from the twentyeleven them it worked! Phew.
Still not worked out why my site was being bombarded by multiple IPs just from positing the link to an open forum on here… I think I stopped it by deleting the forum and the .htaccess file to stop the permalink from existing as even if it’s a 404 it can still be constantly requested. I think…
Jared Atchison, thanks so much for the answer!
I added your piece of code to my child theme CSS and unfortunately it didn’t change anything… đ
I even added the “!important” note, with no success.
Are you sure that is there reason or did I just paste it in a wrong place?
It’s because the blockquote has clear:both;.
You need to add another style to override that, something like .bbpress blockquote { clear: none; }
Can someone please help me out?
The quoting function leaves me out with a huge margin before the quote! I first noticed it today and I have no idea what caused it!
I added a fancy editor a couple days age pasting a code from topic.
I also messed around with plugins GD bbPress Tools and bbPress2 BBCode trying to find the best solution for quoting.
Somehow I have now a huge margin, I can’t edit it in css – don’t know what to do!
It looks like this http://img152.imageshack.us/img152/1030/quoteproblem.png
The link to my forum and an example topic with (notice that the quoting function worked fine a few days ago…)
http://lowcygier.pl/temat/dolacz-do-naszej-grupy-na-steamgifts/?view=all#post-1877
Please, I will appreciate any suggestions
I have created a ticket in trac https://bbpress.trac.wordpress.org/ticket/2074
If you could keep all bugs and/or feedback posted to this ticket (‘tracs’ everything in one place)
This has only beeen tested using Simple Press 5.1.4
To install download the SimplePress5.php file and upload it to bbPress in the folder /wp-content/plugins/includes/admin/converters/
Basic instructions on using any of the import tools are here (will to get these updated soon)
I have created a ticket in trac https://bbpress.trac.wordpress.org/ticket/2074
If you could keep all bugs and/or feedback posted to this ticket (‘tracs’ everything in one place)
This has only beeen tested using Simple Press 5.1.4
To install download the SimplePress5.php file and upload it to bbPress in the folder /wp-content/plugins/includes/admin/converters/
Basic instructions on using any of the import tools are here (will to get these updated soon)
bbp_list_forums needs to be run inside a bbpress loop. Which you call with bbp_has_forums(), which creates a forum object. For example.
bbp_set_query_name('load_stuff');
if ( bbp_has_forums(array(
'post_parent' => 0,
'post_type' => bbp_get_forum_post_type(),
'posts_per_page' => get_option( '_bbp_forums_per_page', 50 ),
'orderby' => 'menu_order',
'order' => 'ASC'
)) ) : ;
bbp_get_template_part( 'loop', 'forums' );
else : ;
bbp_get_template_part( 'feedback', 'no-forums' );
endif;
bbp_reset_query_name();
Ok, the only plugin I’ve updated recently was bbpress and since then, it’s stopped working. What would cause this? Right now, the forums will not load.
Here’s the URL to them: http://www.tastyfresh.com/forums/
That’s to a page that is calling the shortcode. Several actually. It may be possible that I have a conflict in there given that the page itself is made to have logged in and logged out views as well as multiple renders of the forums in tabs (All forums, login and recent topics specifically). It was functioning just fine until the 2.2.2 update.
So, what are the potential issues that could cause this?
Sorry where does this code go?
wp-content/themes/mytheme/functions.php?
hello, how to wirite .htaccess for bbpress
my wordpress rule is
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
this rule url is : http://www.duba.pro/177.html
——————————————————
But when i install the bbpress , a topic for chianese’s title is
http://www.duba.pro/bbs/title/%e8%ae%ba%e5%9d%9b%e5%bc%80%e5%90%af%e6%ac%a2%e8%bf%8e%e5%8f%91%e5%b8%83%e8%ae%a8%e8%ae%ba%e5%92%8c%e5%8f%8d%e9%a6%88
—————————————————–
how to wirte the htaccess rule lick wordpress,thanks.
It looks like there is a filter you might be able to use to create a plugin
function bbp_get_topic_caps() {
return apply_filters( 'bbp_get_topic_caps', array (
'edit_posts'Â Â Â Â Â Â Â Â Â => 'edit_topics',
'edit_others_posts'Â Â => 'edit_others_topics',
'publish_posts'Â Â Â Â Â Â => 'publish_topics',
'read_private_posts'Â => 'read_private_topics',
'read_hidden_posts'Â Â => 'read_hidden_topics',
'delete_posts'Â Â Â Â Â Â Â => 'delete_topics',
'delete_others_posts' => 'delete_others_topics'
) );
}
@HistoryHouse The codex document you linked to is for the old ‘legacy standalone’ version of bbPress, not the new plugin version.
This is what you are looking for (I think) https://codex.bbpress.org/theme-compatibility/
Hi — I’m using v2.2.2 and hooking into a few of the bbp_current_user_* permissions checks in template-tags.php, and I noticed what I think may be a bug. Or maybe it’s a feature. đ
The function bbp_current_user_can_publish_forums() applies a filter of ‘bbp_current_user_can_publish_forums’ on the last line of the function.
I noticed that function bbp_current_user_can_publish_topics() applies the same filter of ‘bbp_current_user_can_publish_forums’ — is that what is intended?
All of the other bbp_current_user_can_* functions have their own respective filters, so  bbp_current_user_can_publish_topics() looks like the odd man out.  Shouldn’t the last line in the function look like:
// Allow access to be filtered
return (bool) apply_filters( 'bbp_current_user_can_publish_topics', $retval );
Michael
If someone could just guide me please (I’m returning to bbPress after a confused time with it pre-plugin days).
Plug-in installed OK and it was easy (thanks!). The forum is using my blog page layout which has a widget controlling the right sidebar (my own theme design adapted from blankslate).
http://www.historyhouse.co.uk/historynews/
The test page works fine (apart from it’s too wide – but I can solve that.)
Problem is I want it to have its own unique page template (not using the sidebar widget). Probably something like this template I created.
http://www.historyhouse.co.uk/historynews/history-of-ashen-my-ancestors
In my stumbling I thought a child theme may have been the answer so I looked the below page but the bbpress version number is not the same. Besides it didn’t seem to work for me.
http://codex.bbpress.org/legacy/step-by-step-guide-to-creating-a-custom-bbpress-theme/
So in a nut shell. How can I make it use the template in my second example?
Thanks in advance and be gentle with me đ
I ended up just doing it the old fashion way:
$user = new WP_User( 1 );
$user->add_role( 'bbp_keymaster' );
Widget and shortcode are not so “themable” like I would. WP_QUERY is right, but then I cannot use bbp_* in my file.
What I want is use every BBP Functions inside my, eg, single.php: show author, show forums, show topic simple calling bbp_**
How bbp_has_forums() works? It loads the functions ouside the BBP pages?
Regards, Francesco.