Forum Replies Created
-
In reply to: Increase Side Login Widget Avatar’s size
no problem
In reply to: Increase Side Login Widget Avatar’s sizethere is, but it is in the code, but in core code that does not have a filter to change.
I could re-write the widget as a new one in a plugin for you, but that would be paid work !
In reply to: Increase Side Login Widget Avatar’s sizeas stated above
You should note that this just magnifies the image, so it will be less defined the bigger you make it.
best I can do without code (I’m just a bbpress user!)
In reply to: Widgets on ForumIn reply to: Increase Side Login Widget Avatar’s sizewe’ve all been there !! π
glad to have helped
In reply to: Increase Side Login Widget Avatar’s sizefix is to add this to your custom css
.bbp-logged-in img.avatar { height: 80px !important; width: 80px !imprtant; }and play with the number. You should note that this just magnifies the image, so it will be less defined the bigger you make it.
the size is hard coded, so can’t be changed
In reply to: Widgets on ForumThe issue is with your theme, which should have a page file which allows you to have sidebars. Then issue is not with the %postname% setting
Since this is a paid theme which we don’t have access to, you will need to contact support for your theme
In reply to: Create new private Thread for each new User?thanks
In reply to: Layout for CategoriesIn reply to: Bbpress should support schemano
In reply to: Image preview from URL pasted within bbpress posts?if you do figure it, please post back and let me know before I duplicate effort π
In reply to: 502 Error on all Replies and on Admin Replies Pagethat is presuming you have run the normal tests
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.
In reply to: 502 Error on all Replies and on Admin Replies Pagesuggest you start with
dashboard>tools>forums>repair forums and run one at a time.
In reply to: Comments Blacklistok, try this plugin
once activated go to tools>bbp blacklist checker
This lets you switch off the code that is causing the issue.
It’s just a bit of testing code, not intended for permanent live use, but may help confirm if it’s bbpress or something behind that is causing the issue.
Try it for both anew post and an edited one
In reply to: Layout for Categoriesok, no idea what your question is, you say you want them to look like what you have already solved.
Have another go at phrasing the question
In reply to: What’s in a name?bulletin board press
In reply to: Create new private Thread for each new User?You can achieve what you want if I have understood by the following
Install the private groups plugin
then
a. Public discussion β just set up a public forum, and all users will be able to access this β no private groups settings needed
b. Then for the keymaster only forum β do as follows
1. Go into dashboard>settings>bbp private groups>topic permissions and activate this feature
2. Create a group in dashboard>settings>bbp private groups>Group 1 (or whichever group you want)
3. Create a new forum, set it as private (so only logged in users see it) and in the forum groups set group 1 with access4. Then click save and when then page refreshes, you will see topic permissions have appeared below the forum groups
5. Now select Create/Edit OWN topics
This then means that within that forum, users will only see topics they have created, and be able to reply. The keymaster can then see/reply to these topics. Any topic created by the keymaster will be visible to all users in this forumSo from the user point of view they get a forum where they can post threads which only you and they see.
I think this should achieve what you want β and given they can create multiple threads on what looks like to them as their own private forum, maybe is even better as they can create a new thread for a new topic !!
In reply to: Layout for Categoriesok, now I can see – this is well beyond free help, buy suggest you start by looking at modifying
wp-content/plugins/bbpress/templates/default/bbpress/content-archive-forum.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/content-archive-forum.phpMake 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/content-archive-forum.php
bbPress will now use this template instead of the original
and you can amend thisIn reply to: Layout for Categoriesseems I need login as well
In reply to: Layout for Categoriesok, you just posted links to stuff that is not a forum and goes to the below
In reply to: Allow Participants to Trash / own Topics and Postsfor anyone finding this topic
I kicked this code around to improve it and also stop the 404 error when a participant trashes a topic, so latest version is
/*Customize the BBPress roles to allow Participants to trash topics*/ add_filter( 'bbp_get_caps_for_role', 'ST_add_role_caps_filter', 10, 2 ); function ST_add_role_caps_filter( $caps, $role ){ // Only filter for roles we are interested in! if( $role == bbp_get_participant_role() ) { //only change delete topics $caps ['delete_topics']= true ; } return $caps; } /*then only allow participants to trash their own topics*/ add_filter( 'bbp_map_topic_meta_caps', 'ST_tweak_trash_meta_caps', 11, 4 ); function ST_tweak_trash_meta_caps( $caps, $cap, $user_id, $args ){ // apply only to delete_topic if ( $cap == "delete_topic" ){ // Get the post $_post = get_post( $args[0] ); if ( !empty( $_post ) ) { // Get caps for post type object $post_type = get_post_type_object( $_post->post_type ); // Add 'do_not_allow' cap if user is spam or deleted if ( bbp_is_user_inactive( $user_id ) ) { $caps[] = 'do_not_allow'; // Moderators can always edit forum content } elseif ( user_can( $user_id, 'moderate' ) ) { $caps[] = 'moderate'; // User is author so allow edit if not in admin } elseif ( user_can( $user_id, 'participate' ) && ( (int) $user_id === (int) $_post->post_author ) ) { $caps = array(); // Unknown so do not allow } else { $caps[] = 'do_not_allow'; } } } // return the capabilities return $caps; } //then redirect to the forum after trashing topic add_action('bbp_template_redirect', 'ST_trash_topic_check', 8); //check if topic has been trashed by author and show forum if it has function ST_trash_topic_check() { $topic_slug = get_option( '_bbp_topic_slug') ; //quick check if we need to do this function, so bail if not a topic if (strpos($_SERVER['REQUEST_URI'], $topic_slug) == FALSE) return ; $forum_slug = bbp_get_root_slug() ; //if check is set (ie we prefix forums with the forum slug) then part 1 will be forum slug and part 2 will be topic slug, if not part 1 will be topic slug $check = bbp_include_root_slug() ; $link = explode('/',$_SERVER['REQUEST_URI']); //next we need the topic id (post id) of the topic so we need to check if it is a topic and if so, find the topic id if (is_user_logged_in() && $check && $link[1] == $forum_slug && $link[2] == $topic_slug ) { $post = bsp_get_page_by_slug( $link[3], OBJECT, 'topic' ); $login_check=1 ; } elseif (is_user_logged_in() && empty($check) && $link[1] === $topic_slug) { $post = bsp_get_page_by_slug( $link[2], OBJECT, 'topic' ); $login_check=1 ; } //now we need to check if the topic has been trashed by author if (!empty ($login_check) && $post->post_status == 'trash' && $post->post_author == get_current_user_id() ) { $topic_id = $post->ID; //then redirect to the forum we came from $forum = bbp_get_forum_permalink (bbp_get_topic_forum_id ( $topic_id )) ; wp_redirect ($forum) ; exit ; } else return ; }I’ll add this function into my style pack plugin shortly
In reply to: How to let Authors delete their own posts?I kicked this code around to improve it and also stop the 404 error when a participant trashes a topic, so latest version is
/*Customize the BBPress roles to allow Participants to trash topics*/ add_filter( 'bbp_get_caps_for_role', 'ST_add_role_caps_filter', 10, 2 ); function ST_add_role_caps_filter( $caps, $role ){ // Only filter for roles we are interested in! if( $role == bbp_get_participant_role() ) { //only change delete topics $caps ['delete_topics']= true ; } return $caps; } /*then only allow participants to trash their own topics*/ add_filter( 'bbp_map_topic_meta_caps', 'ST_tweak_trash_meta_caps', 11, 4 ); function ST_tweak_trash_meta_caps( $caps, $cap, $user_id, $args ){ // apply only to delete_topic if ( $cap == "delete_topic" ){ // Get the post $_post = get_post( $args[0] ); if ( !empty( $_post ) ) { // Get caps for post type object $post_type = get_post_type_object( $_post->post_type ); // Add 'do_not_allow' cap if user is spam or deleted if ( bbp_is_user_inactive( $user_id ) ) { $caps[] = 'do_not_allow'; // Moderators can always edit forum content } elseif ( user_can( $user_id, 'moderate' ) ) { $caps[] = 'moderate'; // User is author so allow edit if not in admin } elseif ( user_can( $user_id, 'participate' ) && ( (int) $user_id === (int) $_post->post_author ) ) { $caps = array(); // Unknown so do not allow } else { $caps[] = 'do_not_allow'; } } } // return the capabilities return $caps; } //then redirect to the forum after trashing topic add_action('bbp_template_redirect', 'ST_trash_topic_check', 8); //check if topic has been trashed by author and show forum if it has function ST_trash_topic_check() { $topic_slug = get_option( '_bbp_topic_slug') ; //quick check if we need to do this function, so bail if not a topic if (strpos($_SERVER['REQUEST_URI'], $topic_slug) == FALSE) return ; $forum_slug = bbp_get_root_slug() ; //if check is set (ie we prefix forums with the forum slug) then part 1 will be forum slug and part 2 will be topic slug, if not part 1 will be topic slug $check = bbp_include_root_slug() ; $link = explode('/',$_SERVER['REQUEST_URI']); //next we need the topic id (post id) of the topic so we need to check if it is a topic and if so, find the topic id if (is_user_logged_in() && $check && $link[1] == $forum_slug && $link[2] == $topic_slug ) { $post = bsp_get_page_by_slug( $link[3], OBJECT, 'topic' ); $login_check=1 ; } elseif (is_user_logged_in() && empty($check) && $link[1] === $topic_slug) { $post = bsp_get_page_by_slug( $link[2], OBJECT, 'topic' ); $login_check=1 ; } //now we need to check if the topic has been trashed by author if (!empty ($login_check) && $post->post_status == 'trash' && $post->post_author == get_current_user_id() ) { $topic_id = $post->ID; //then redirect to the forum we came from $forum = bbp_get_forum_permalink (bbp_get_topic_forum_id ( $topic_id )) ; wp_redirect ($forum) ; exit ; } else return ; }I’ll add this function into my style pack plugin shortly
In reply to: Image preview from URL pasted within bbpress posts?this site only does this for the wordpress and bbpress sites.
I’ll take a look at the plugin above soon, but tied up with other stuff at the moment
In reply to: Comments BlacklistNot sure why it does not for an edited post.
In reply to: Comments Blacklistok, can you check if this happens with that word in a NEW post.
I just want to understand if having blacklisted a post, it is having trouble reassessing it, or the issue is more core