Forum Replies Created
-
In reply to: Not work search on bbpress
ok, I think it is because your theme has a search with the same name.
Try this
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/form-search.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/form-search.php
bbPress will now use this template instead of your theme’sIn reply to: Which is the file to edit the layout?The file is form-topic.php
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/form-topic.php
bbPress will now use this template instead of the original
and you can amend thisHowever the form has an action hook you can link to
<?php do_action( 'bbp_theme_after_topic_form' ); ?>In reply to: Genesis remove a widget areaok, thanks for confirming.
Without spending considerable time testing, why not just take out that entire section for bbpress (and if needed juts put back the bits you want) eg
//* Hook social icons and click here widget areas add_action( ‘genesis_after_header’, ‘the_411_extras’, ‘genesis_after_sidebar_widget_area’ ); function the_411_extras() { if (!is_bbpress { if ( is_active_sidebar( ‘social-icons’ ) || is_active_sidebar( ‘click-here’ ) || is_active_sidebar( ‘split-sidebar-left’ ) || is_active_sidebar( ‘split-sidebar-right’ )) { echo ‘<div class=”site-extras”>’; genesis_widget_area( ‘social-icons’, array( ‘before’ => ‘<div class=”social-icons”>’, ‘after’ => ‘</div>’ ) ); genesis_widget_area( ‘click-here’, array( ‘before’ => ‘<div class=”click-here”>’, ‘after’ => ‘</div>’ ) ); genesis_widget_area( ‘split-sidebar-left’, array( ‘before’ => ‘<div class=”split-sidebar-left”>’, ‘after’ => ‘</div>’, ) ); genesis_widget_area( ‘split-sidebar-right’, array( ‘before’ => ‘<div class=”split-sidebar-right”>’, ‘after’ => ‘</div>’, ) ); echo ‘</div>’; } } }I’m also not sure why your add action has two functions
add_action( ‘genesis_after_header’, ‘the_411_extras’, ‘genesis_after_sidebar_widget_area’ );all the coding I have ever done has one, and then maybe some arguments on priority etc.
In reply to: Which is the file to edit the layout?can you post a link to a screenshot of where you would like this
In reply to: Genesis remove a widget areaso did you try it as that, or as
if (is_bbpress( ‘forums’ ) ) {is_bbpress doesn’t take arguments
In reply to: Genesis remove a widget areaI tried the If conditional tag on there but it does not seem to work.
do you mean
if (is_bbpress() )…
?
In reply to: Participants cannot see topics in private forumsI’ve just been digging further into the code
There is a filter on topics and replies which looks at posts with a private status, but topics and replies on a private forum don’t have that status UNLESS it is manually set on the admin backend (or imported with that status). So in the normal process they are viewable unless set by a moderator/admin to private within the backend.
So a standard participant should be able to see all topics and replies.
For creating topics and replies the code just looks at ‘publish topics’ and ‘publish replies’ so allows registered users to do this for both public and private forums.
This would then make great sense for then original poster who had imported the forum, so topics and replies were likely to have a post status of private so not viewable by participants.
I don’t know if that helps you understand your circumstances, but hope it explains it better.
In reply to: Pre-Installation Questions About Capabilitiesif you just want forums where people can have topics which are discussed, then bbpress will be fine.
Otherwise is you want private messaging and group activity streams, then you may want buddypress, or run bbpress with buddypress.
In reply to: Participants cannot see topics in private forumswe’re probably both insane !
It worked on my test site, but then I do have a lot cooking on there.
back to my code above, can you try
case bbp_get_participant_role() :in place of the line
case 'bbp_participant':In reply to: Pre-Installation Questions About Capabilitiesyes if you use bbpress/buddypress, but add my private groups plugin, then you can add groups which can have separate access to some forums, and if wanted common access to others
In reply to: Participants cannot see topics in private forumsok – thanks for that
Having re-read your thread then I think what you want is:
User : Participant
Forum : Private
Should be able to read, publish toics and create replieswhich is what bbpress does as default.
Can you confirm that this is what you want, and what is not happening, and if so can you let us know
what theme you are using
what plugins you are usingI presume that you are wanting different logged in users to see different things?
If so you can restrict who sees what using my private groups plugin
In reply to: Remove Category Hyperlink?given previous experience of one line questions – can you try and write a bit more about quite what you want to do with bbpress.
In reply to: Participants cannot see topics in private forumsgreat – please do come back – this can be resolved one way or another !
In reply to: Participants cannot see topics in private forumsps
I just cribbed this code from elsewhere, so the capabilities may not be the participant ones, you’ll need to check what they should be
In reply to: Participants cannot see topics in private forumsuntested, but this should in theory let you play with the capabilities of the participant role
function add_role_caps_filter( $caps, $role ) { /* Only filter for roles we are interested in! */ if( $role == 'bbp_participant' ) $caps = custom_capabilities( $role ); return $caps; } add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 ); function custom_capabilities( $role ) { switch ( $role ) { /* Capabilities for 'participant' role */ case 'bbp_participant': return array( // Primary caps 'spectate' => true, 'participate' => true, 'moderate' => false, 'throttle' => false, 'view_trash' => false, // Forum caps 'publish_forums' => false, 'edit_forums' => false, 'edit_others_forums' => false, 'delete_forums' => false, 'delete_others_forums' => false, 'read_private_forums' => true, 'read_hidden_forums' => false, // Topic caps 'publish_topics' => true, 'edit_topics' => true, 'edit_others_topics' => false, 'delete_topics' => false, 'delete_others_topics' => false, 'read_private_topics' => true, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => true, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => true, ); break; default : return $role; } }In reply to: get_the_post_thumbnail & $post_idok – that’s great – I think I now understand
loop-single-topic is probably not the right/only place
but within loop single topic, you can get the ID from bbp_topic_id() which will be itself, so no need to call post parent
Replies – that is posts in response to a topic, which is I think what you are after, are handled by loop-single-reply.php
There each reply has an id found by using bbp_reply_id, so you would use something like
$postimage = wp_get_post_parent_id( bbp_reply_id() );in your code above
In reply to: get_the_post_thumbnail & $post_idstill no clearer on where this code is going, and which thumbnail you are after.. sorry I’d love to help but I’m still not understanding what you are trying to achieve.
In reply to: get_the_post_thumbnail & $post_iddepends exactly where you are putting that code, and which thumbnail you are wanting
get_the_post_thumbnail( $reply_id, $size, $attr );may well be what you want.
Otherwise come back with where the code is going.
In reply to: meta-single-topicI’m not sure that this is in bbpress – it may be that it is in your theme, or your theme is amending bbpress.
Try the following to see if it disappears and to work out what is creating this
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
In reply to: How to set up a page with unanswered topics?I’ve just added that capability to one of my existing shortcodes in my style pack plugin, so if you install
https://wordpress.org/plugins/bbp-style-pack/
and then see
Dashhboard>settings>bbp style pack>shortcodes for a description of how to use it in detail, but
[bsp-display-topic-index noreply='true']used in a page will get you what you want
In reply to: single forum shortcode not workingThe correct code would be
[bbp-single-forum id='3569159-2']but I suspect ‘3569159-2’ is the url not the post ID as post ID are a whole number and what you want
so go to
Dashboard>forums and select all forums
If you hover of ‘edit’ of then forum you want, you’ll see at the bottom left of the screen
url…post.php?post=12345&action=edit
it is the 12345 that you want to put in the shortcode
In reply to: Show replies on main forum pagenot quite sure what you are asking?
Do you want to show each forum, and then all topics and replies all on one page?
Please come back and explain further
suspect it is a theme or plugin issue#
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
In reply to: Forum not accessible in public viewhave you followed
and what have you got for step 3?