Forum Replies Created
-
I 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?
In reply to: re-size topic or reply formGreat – glad you are fixed
Would you care to share the solution to help someone googling this topic at a later date?
In reply to: Increasing Avatar Size?In which case this is the easiest way.
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/loop-single-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/loop-single-topic.phpbbPress will now use this template instead of the original
and you can amend thisso go to line 60 which says
<span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>and change the ‘size’ => ’14’ to a larger number for instance ‘size’ => ’20’
In reply to: Increasing Avatar Size?Do you access to your theme’s functions file?
In reply to: Image on top portionThis is within your theme, not within bbpress.
You could put a single image in, but not easily one per forum as far as I can see.
In reply to: How to change blockquote in bbPress onlyno problem – glad you are fixed !
In reply to: How to change blockquote in bbPress onlyprobably better to contact the bbPress Toolbox plugin support !
In reply to: How to change blockquote in bbPress onlyThe two ‘test’ items below are easier, as they just use blockquote so you can add this to your css
#bbpress-forums blockquote { color: green; }I presume that you don’t want to change the class in the other plugin?
In reply to: One user can leave new topics but NOT replyok, can as a test you try disabling Askimet and seeing if that fixes – I am trying to work out where the problem is occurring.
In reply to: Forum Index Customizationno problem – glad you are fixed !
In reply to: Forum Index CustomizationThis is the default display.
If you are into coding, you can check out
or if coding is not your thing use my plugin Style Pack which will let you set up lots of stuff, including fixing the above
In reply to: One user can leave new topics but NOT replycan you check if it is being logged as spam
If the service catches a topic that is spam, you will see it in the WordPress backend in the topics section under spam, and the same process for replies.