Search Results for 'bbpress'
-
AuthorSearch Results
-
October 19, 2014 at 3:53 pm #153557
jugoretz
ParticipantWell, I think I’ve found a better workaround than the Network Activate Solution.
Based on a lead from this topic from a year ago https://bbpress.org/forums/topic/missing-admin-menu-items/ , I tried activating Capability Manager Enhanced (https://wordpress.org/plugins/capability-manager-enhanced/) and surprise! There were the missing capabilities, not checked, not active, in the Capability Manager settings.
So I just enabled all the forum-related capabilities for administrators (could do this for any role, I’m sure) in CME, and that made everything work again for the site administrators, even when bbPress is not activated network-wide.
So that’s a much better solution (from my perspective, at least). If you want to use bbPress in multisite, just be sure to also use Capability Manager Enhanced on any site where you want the site admin to have the capability to add/edit/delete/manage forums.
October 19, 2014 at 3:46 pm #153555In reply to: Change forum color
DVDfever
ParticipantI want to change the horrible green colour in the forum, but looking in bbpress.css, I’m getting nothing like the following which I saw on here. I’ve searched aplenty on this forum but just can’t find it. How do I change the colours, please?
.forum a { color: white !important; }
.bbp-forum-info { color: black !important; }
.bbp-forum-topic-count { color: black !important; }
.bbp-forum-reply-count { color: black !important; }
.bbp-forum-freshness { color: black !important; }
October 19, 2014 at 2:12 pm #153553In reply to: Disabling topic creation-box
jessy
Participant@cubeacid: You want this: Do not allow users to publish new topics, just replies on your topics. Correct?
1, Install plugin: WPFront User Role Editor
2, Go to Roles => All roles => and choose Participant, it has 8 capabilities
3, You need uncheck publish_topics and edit_topics and assign_topic_tags and delete_topic_tags
4, with this plugin you can do it because it is built in role from plugin bbPress
5, But, we can customize it with filter function pasted below
6, Jast paste it into function.php and refresh the page in admin plugin WPFront User Role Editor in Participate role how magicaly capabilities are removed 🙂
7, If the participant or regular registered user will go on topics, they will be message “You cannot create new topics.” and if user click on your own created topic, he can reply 🙂Paste it into functions.php
function my_custom_get_caps_for_role_filter($caps, $role) { /* Only filter for roles we are interested in! */ if ($role == 'bbp_participant' ) $caps = my_custom_get_caps_for_role($role); return $caps; } add_filter('bbp_get_caps_for_role', 'my_custom_get_caps_for_role_filter', 10, 2); function my_custom_get_caps_for_role($role) { switch ($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' => false, 'read_hidden_forums' => false, // Topic caps 'publish_topics' => false, 'edit_topics' => false, 'edit_others_topics' => false, 'delete_topics' => false, 'delete_others_topics' => false, 'read_private_topics' => false, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => false, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => false ); break; default: return $role; } }I have try that ad for me it works.
October 19, 2014 at 12:57 pm #153551In reply to: bbPress isn't showing any forum/category
jessy
ParticipantYou are using WordPress 4 and there is a bug for bbPress forum posts.
Install plugins:
http://www.rewweb.co.uk/bbpress-wp4-fix
http://www.rewweb.co.uk/bbpress-wp4-fix2/October 19, 2014 at 12:49 pm #153550In reply to: Remove box around the author name
jessy
ParticipantRewrite your theme styles with this, paste this on very bottom on style.css or into <head> tag section and wrap t with <style text/css></style>:
#bbpress-forums p.bbp-topic-meta span { white-space: nowrap; background: none; border: none; }October 19, 2014 at 11:23 am #153544In reply to: Issues inserting/embedding videos
jessy
ParticipantInstall plugin bbPress2 shortcode whitelist.
just write string: video into that small text area
October 19, 2014 at 11:22 am #153543In reply to: Issues inserting/embedding videos
mannmithund
ParticipantAwesome!
Video is now embedded. However, if a bbpress post contains text followed by the video, the text is not displyed, only the video. In pure text posts, nothing is displayed at all…
Any other ideas?
– MannMitHund
October 19, 2014 at 11:11 am #153542In reply to: Issues inserting/embedding videos
jessy
ParticipantInstall plugin bbPress2 shortcode whitelist
And to settings write video
October 19, 2014 at 10:47 am #153539In reply to: Set featured image for bbpress forum posts
jessy
ParticipantInto your function.php paste this code, you will allow to Custom Post Type forum – bbPress have featured images in admin.
add_theme_support( 'post-thumbnails', array( 'forum' ) ); add_post_type_support('forum', 'thumbnail');October 19, 2014 at 9:55 am #153536In reply to: Issues inserting/embedding videos
jessy
ParticipantIf your theme support this shortcode on posts and pages we can assume your shortcode is working fine, but bbPress is for security reasons blocking.
Place this code into functions.php
function jm_bbp_shortcodes( $content, $reply_id ) { return video( $content ); } add_filter('bbp_get_reply_content', 'jm_bbp_shortcodes', 10, 2); add_filter('bbp_get_topic_content', 'jm_bbp_shortcodes', 10, 2);Let me know if you need help.
October 19, 2014 at 9:18 am #153534In reply to: Restricting bbpress to a single forum
jessy
ParticipantTwo solutions:
1, Go to Settings => Forums it is settins for bbPress and just find Forum root should show and choose Topics by Freshness
2, You need to use shortcode [bbp-single-forum id=2766]
It is simple, create one forum and use your single forum ID, you can find it if you hover over the forum in the admin, check the bottom the link and there is the ID, replace it to your shortcode in custom page.
If you need help, let me know.
October 19, 2014 at 8:40 am #153533Topic: Issues inserting/embedding videos
in forum Troubleshootingmannmithund
ParticipantHello there
I fail in inserting / embedding an m4v video into a forum posts. Posts show text and images as intended, but for videos, just the smart tag is shown:
[video width="640" height="640" m4v="video.m4v"][/video]What am I doing wrong?
I run wordpress 4 and bbpress 2.5.4Help is much appreciated.
– MannMitHund
October 19, 2014 at 6:40 am #153530Topic: Restricting bbpress to a single forum
in forum Installationbee7er
ParticipantHi All
Is it possible to limit the WordPress plugin bbpress to a single forum? And by-pass the forums list and go straight into the topics for the forum.I have checked the settings and there does not appear to be any way of doing this.
Thanks
October 19, 2014 at 6:37 am #153529In reply to: Set featured image for bbpress forum posts
yoshimitsu1234
ParticipantCan anyone answer my question in detail?
How do i add featured image to a bbpress forum post from wordpress post editor page?October 19, 2014 at 4:28 am #153523In reply to: bbPress conflict with WooCommerce
Robin W
Moderatoryou may need to rule out other factors, as far as I know bbpress works with woocommerce eg
bbPress WooCommerce Integration: Tutorial on How to setup a Paid Forum on WordPress
bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and woocommerce 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 twentytwelve, and see if this fixes.
October 19, 2014 at 4:23 am #153522In reply to: How do i customize user roles?
Robin W
ModeratorGreat – presume you’re fixed if not
October 18, 2014 at 10:20 pm #153517In reply to: How do i customize user roles?
esportsstream
ParticipantSo i made a new file called bbpress-functions.php and put this into it
<?php //code to add tutor role function add_apply_role( $bbp_roles ) { /* Add a role called apply */ $bbp_roles['bbp_apply'] = array( 'name' => 'apply', 'capabilities' => custom_capabilities( 'bbp_apply' ) ); return $bbp_roles; } add_filter( 'bbp_get_dynamic_roles', 'add_apply_role', 1 ); function apply_role_caps_filter( $caps, $role ) { /* Only filter for roles we are interested in! */ if( $role == 'bbp_apply' ) $caps = custom_capabilities( $role ); return $caps; } add_filter( 'bbp_get_caps_for_role', 'apply_role_caps_filter', 10, 2 ); function custom_capabilities( $role ) { switch ( $role ) { /* Capabilities for 'apply' role */ case 'bbp_apply': 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' => false, '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' => false, // Reply caps 'publish_replies' => true, 'edit_replies' => true, 'edit_others_replies' => false, 'delete_replies' => false, 'delete_others_replies' => false, 'read_private_replies' => false, // Topic tag caps 'manage_topic_tags' => false, 'edit_topic_tags' => false, 'delete_topic_tags' => false, 'assign_topic_tags' => true, ); break; default : return $role; } }I have no idea where i put this file in my site directory……
October 18, 2014 at 9:16 pm #153514Topic: How do i customize user roles?
in forum Troubleshootingesportsstream
ParticipantI am using bbpress ver 2.5.4
This is my problem. Spectator can not post (want to change this) spectator can not see private forums (which I want to keep the same)
Contributor can post (I do want) Can see private forums (dont want)
This is what i want to do. I want to either make it so a spectator can post and not see private forums or I want to set it up a new default subscriber role that can post in normal forum sections but can not see or post in private sections until I turn them into contributor.
How do I do this? I am using bbpress as a plugin for my wordpress site not on wordpress.org
Thanks
October 18, 2014 at 5:31 pm #153509Topic: bbPress conflict with WooCommerce
in forum TroubleshootingIvalde
ParticipantThe bbPress plugin is found to be in conflict with the WooCommerce plugin. When both bbPress and WooCommerce is activated, backend ends up in a complete blank page with no content, and the frontend GeoDirectory map does not load. When bbPress is then deactivated, backend is back to normal and the same also for the GeoDirectoty map which then loads.
Is the same conflict experienced in other installations?
Do you have an idea about what makes the problem?
October 18, 2014 at 4:18 pm #153508In reply to: bbPress 2.0.2 and 1.6MM posts = painfully slow
Daniel J. Lewis
ParticipantAny update to this? I, too, have a large bbPress forum and I see the following in my error log:
SlowTimer [6357ms] at runtime/ext_mysql: slow query: SELECT SQL_CALC_FOUND_ROWS wp_13_posts.ID FROM wp_13_posts INNER JOIN wp_13_postmeta ON (wp_13_posts.ID = wp_13_postmeta.post_id)\nINNER JOIN wp_13_postmeta AS mt1 ON (wp_13_posts.ID = mt1.post_id) WHERE 1=1 AND wp_13_posts.post_type = 'topic' AND (wp_13_posts.post_status = 'publish' OR wp_13_posts.post_status = 'closed') AND (wp_13_postmeta.meta_key = '_bbp_last_active_time'\nAND (mt1.meta_key = '_bbp_forum_id' AND CAST(mt1.meta_value AS SIGNED) != '133643') ) GROUP BY wp_13_posts.ID ORDER BY wp_13_postmeta.meta_value DESC LIMIT 0, 25October 18, 2014 at 4:05 pm #153507In reply to: Topics not appearing in forum
Robin W
ModeratorThe issue is related to how wp4.0 looks at search and in particular at the ‘s’ parameter submitted to wp-query. wp4.0 does it differently and what didn’t look like a search to previous wp versions now does when sent from bbpress functions.
Hence why your
$query->is_searchwas affectedOctober 18, 2014 at 3:42 pm #153506In reply to: Topics not appearing in forum
mkoenen
ParticipantI had the same problem. After upgrading to WP 4.0 only sticky topics were visible. I tried the patch/plugin “bbpress wp4 fix”. I could now see all topics, but when I clicked on any one of them only the first forum topic would open. The URL was correct, but the wrong topic appeared in the page. I deactivated the plugin and after some more research, found that I had a piece of code in my functions file that interfered with the topics showing. Here is the code that caused the problem:
//exclude from search results function fb_search_filter($query) { if ( !$query->is_admin && $query->is_search) { $query->set('post_type', array('course_unit') ); // id of page or post } return $query; } add_filter( 'pre_get_posts', 'fb_search_filter' );I don’t know why this code is a problem, but I no longer needed it. I deleted it and now my forums are working just fine.
October 18, 2014 at 1:50 pm #153504Robin W
ModeratorGreat that you want to help, and it’s a great way to learn as well.
The easiest way to help is to just monitor the forums page
and just dive in if you think you can contribute to someone’s issues (or more accurately contribute to solving someone’s issues!).
I’m just a humble helper myself, I have no official connection with bbpress, I am only a moderator because I’m here regularly and this lets me get rid of spam.
This is a community and the more helping others the better 🙂
October 18, 2014 at 1:14 pm #153499In reply to: Size font bbpress
Robin W
Moderator@ricsca2
bbpress does have a css of its own as yiou found earlier, but tries to use much of the one from the host themeI am trying to write a bbpress css plugin where you can set areas simply
eg
Header : Colour? size? etc.
but progress I slow whilst I work out what bits of the bbpress.css code do and when
Tell me which parts you are still having trouble with eg breadcrumb and I’ll try and help further
October 18, 2014 at 8:18 am #153495In reply to: Size font bbpress
Ricsca2
Participant@robin-w With the code you’ve written now the various parts of the forum is bigger.
The problem is that I can not change manualente all parts of the theme.
The theme for bbPress does not have a css because it goes to get the css of wordpress theme right?As ever with the theme HUEman this does not happen?
Very thanks
-
AuthorSearch Results