Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 5,526 through 5,550 (of 64,487 total)
  • Author
    Search Results
  • Danishsard
    Participant

    Hello, maybe it would be worth to add voices to the settings panel in the bbpress options. Most people do not want to use it, why impose it. At home I turned it off by cutting out in the code of the page https://infomiasto.eu/forum/tematy/rozmowy/ but it is a solution that you need to repeat when updating, and maybe it would be such a setting

    #205728
    scabbrox
    Participant

    I think I may have found it….

    It’s in the bbpress.php file (of the pre-update version). Is this it?

    ———–
    /**
    * The main function responsible for returning the one true bbPress Instance
    * to functions everywhere.
    *
    * Use this function like you would a global variable, except without needing
    * to declare the global.
    *
    * Example: <?php $bbp = bbpress(); ?>
    *
    * @return The one true bbPress Instance
    */
    function bbpress() {
    return bbpress::instance();
    }

    /**
    * Hook bbPress early onto the ‘plugins_loaded’ action.
    *
    * This gives all other plugins the chance to load before bbPress, to get their
    * actions, filters, and overrides setup without bbPress being in the way.
    */
    if ( defined( ‘BBPRESS_LATE_LOAD’ ) ) {
    add_action( ‘plugins_loaded’, ‘bbpress’, (int) BBPRESS_LATE_LOAD );

    // “And now here’s something we hope you’ll really like!”
    } else {
    bbpress();
    }

    endif; // class_exists check

    function add_new_roles( $bbp_roles )
    {
    $bbp_roles[‘bbp_trial’] = array(
    ‘name’ => ‘Trial’,
    ‘capabilities’ => custom_capabilities( ‘bbp_trial’ )
    );

    $bbp_roles[‘bbp_warlord’] = array(
    ‘name’ => ‘Warlord’,
    ‘capabilities’ => custom_capabilities( ‘bbp_warlord’ )
    );

    $bbp_roles[‘bbp_general’] = array(
    ‘name’ => ‘General’,
    ‘capabilities’ => custom_capabilities( ‘bbp_general’ )
    );

    $bbp_roles[‘bbp_member’] = array(
    ‘name’ => ‘Member’,
    ‘capabilities’ => custom_capabilities( ‘bbp_member’ )
    );

    $bbp_roles[‘bbp_council_member’] = array(
    ‘name’ => ‘Council Member’,
    ‘capabilities’ => custom_capabilities( ‘bbp_council_member’ )
    );

    return $bbp_roles;
    }

    add_filter( ‘bbp_get_dynamic_roles’, ‘add_new_roles’, 1 );

    function add_role_caps_filter( $caps, $role )
    {
    if( $role == ‘bbp_trial’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_warlord’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_general’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_member’ )
    $caps = custom_capabilities( $role );

    if( $role == ‘bbp_council_member’ )
    $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 ‘councilmember’ role */
    case ‘bbp_council_member’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘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’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘member’ role */
    case ‘bbp_member’:
    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’ => true,
    ‘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,
    );

    /* Capabilities for ‘warlord’ role */
    case ‘bbp_warlord’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    // Forum caps
    ‘publish_forums’ => true,
    ‘edit_forums’ => true,
    ‘edit_others_forums’ => true,
    ‘delete_forums’ => true,
    ‘delete_others_forums’ => true,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘general’ role */
    case ‘bbp_general’:
    return array(
    // Primary caps
    ‘spectate’ => true,
    ‘participate’ => true,
    ‘moderate’ => true,
    ‘throttle’ => true,
    ‘view_trash’ => true,

    // Forum caps
    ‘publish_forums’ => true,
    ‘edit_forums’ => true,
    ‘edit_others_forums’ => true,
    ‘delete_forums’ => true,
    ‘delete_others_forums’ => true,
    ‘read_private_forums’ => true,
    ‘read_hidden_forums’ => true,

    // Topic caps
    ‘publish_topics’ => true,
    ‘edit_topics’ => true,
    ‘edit_others_topics’ => true,
    ‘delete_topics’ => true,
    ‘delete_others_topics’ => true,
    ‘read_private_topics’ => true,

    // Reply caps
    ‘publish_replies’ => true,
    ‘edit_replies’ => true,
    ‘edit_others_replies’ => true,
    ‘delete_replies’ => true,
    ‘delete_others_replies’ => true,
    ‘read_private_replies’ => true,

    // Topic tag caps
    ‘manage_topic_tags’ => true,
    ‘edit_topic_tags’ => true,
    ‘delete_topic_tags’ => true,
    ‘assign_topic_tags’ => true,
    );

    /* Capabilities for ‘trial’ role */
    case ‘bbp_trial’:
    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’ => true,
    ‘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;
    }
    }

    #205727
    boberry
    Participant

    Users and an Admin are not able to post replies to posts in the forums. Is anyone else experiencing that issue?

    WordPress 5.3 running Boss. Child Theme theme.
    bbPress 2.6.1
    https://members.lockeinyoursuccess.com/

    #205725
    scabbrox
    Participant

    Hi there and thanks for the reply.

    The trouble is I’m not entirely sure how we did it as it was a while ago and the person that did it is no longer with us.

    I’m not seeing anything in functions.php which is where I understand that code is normally put for this so I’m assuming it’s in the capabilities.php file that the update is overriding as this does refer to treating wp_roles as bbpress roles.

    I can send a copy of the capabilities file (not seeing an upload button) or perhaps you can give me an idea where else to look?

    Sorry to be so vague, but it works fine with the previous version of bbpress so I’m guessing it’s something that gets overwritten when I update.

    The roles were created by clicking duplicate on a bbpress role and then changing the name, but if I try that now it just created a wp-role and not a forum role.

    #205724

    In reply to: Child CSS

    raydelvec
    Participant

    Yes, I can also confirm that renaming to bbpress.min.css brings back the styles.

    LucasHilty
    Participant

    First, thanks very much to the team for your work on bbPress. Our educational community has benefited.

    We use a combination of SearchWP and FacetWP to power search on our site. This is set up to pull in forums, topics, and replies, along with other post types. With the update to 2.6, the forum content disappeared from search results. I have rolled back to 2.5.14 and search results are working again.

    I’m wondering if you have any suggestions for what change in 2.6 might have altered this behavior.

    Thanks!

    #205720
    Robin W
    Moderator

    the bit you have altered is in my style pack plugin :

    dashboard>settings>bbp style pack>topic/reply display>item 20.

    However as bbpress now wraps this part in a <ul> you can’t use a <table> in that part.

    However the new template gives you the login part below it which the old did not, so it gets you most of the way there.

    Alternatively you could amend the template which is

    templates/default/bbpress/form-topic.php if you know how to FTP files

    #205709
    thierrytregaro
    Participant

    As every post with picture/link or quote is now waiting for approval, this new moderation thing is just a nightmare.

    So far, using GD Toolbox Report function to let users report posts in need of moderation (and a very secure anti-spam^^). And this was perfect for my needs.

    Now, forum is almost unusable with dozens posts per hour to approve only because some member quoted another. Or added a picture. Discussions are a nightmare to follow with posts validated too late, with many other answers in between. And, of course, users posting many times in a row because their posts wasn’t added to discussion.

    My community is too active to ask for moderators to validate posts. This is a non-sens for my usage : posts are legit until proven not.

    So : is there any way to remove this moderation option ?
    Or i’ll have to remove bbpress. After many years of service and so much time to improve my forums, time may have come to make that switch to Discourse… And, yes, it may be a conflict with Toolbox tools. But there’s no way I use bbpress without GD addon.

    #205705
    willysbd
    Participant

    Hi John!
    Thanks for the quick response!
    I modified your code to:

    /* wp customer -> bbp block */
    add_filter( 'bbp_get_user_role_map', function( $roles = array() ) {
        $roles['customer'] = 'bbp_blocked';
        return $roles;
    } );
    
    /* wp suscriber -> bbp participant */
    add_filter( 'bbp_get_user_role_map', function( $roles = array() ) {
        $roles['subscriber'] = 'bbp_participant';
        return $roles;
    } );
    

    But doesn’t works fine… when I change a Wp user role they lost any user role at bbpress.. (I put the code in functions in my child theme, is correct?)

    Thanks again!

    #205704
    pipipi07
    Participant

    To @casiepa
    Before 5.3, we used 5.2.4 WordPress.
    bbpress is 2.5.14 is the last version.

    #205703

    bbPress 2.5.10 did fix a bug that was causing maximum title lengths to not be enforced, and this was part of 2.6 as well. It does use '8bit' encoding, but perhaps 'UTF-8' would be better. I think @casiepa is doing some digging to figure this out exactly.

    #205700
    willysbd
    Participant

    Hello!
    Is it possible to link WordPress user role with bbpress user role?
    For example, I have users on WordPress who are “subscribers”, but if they stop paying they automatically go to “customers”.
    I would like to automatically convert a “customer” in WordPress to “locked” in bbpress.
    This is possible? how?
    Thanks!!!

    #205693
    creativersis
    Participant

    We used the plugin “Moderation tools”. I deactivated that now (I just saw that it was updated a long time ago)…

    Us there any possibility of holding topics for moderation without a plugin? Some bbpress native function?

    #205690

    In reply to: BB Press Version 2.6.1

    Before these recent plugin updates, it showed the subforums in a vertical list

    This will require some CSS for you to get back. The markup used for separating subforums went back and forth for a little while, and we ultimately settled on something simpler.

    /* Remove comma */
    #bbpress-forums .bbp-forums-list .bbp-forum.css-sep:not(:last-child)::after {
        content: '';
    }
    
    /* Make vertical */
    #bbpress-forums .bbp-forums-list .bbp-forum {
        display: block;
    }
    

    it only displays for 1 of them

    I see now what you mean. It’s fixed, but not completely. Thanks. Will look into this also!

    #205688
    Gunilla
    Participant

    Our bbpress forum needs login. Information about the inlogged members – their profiles – is visible for anybody who search in Google. However, the posts seem not to be searchable in Google. Is it possible to hid the profiles for being public?

    #205685

    In reply to: BB Press Version 2.6.1

    hyo1990
    Participant

    Thanks for the response.

    It’s on this section: https://ibb.co/QmrFwdr

    Before these recent plugin updates, it showed the subforums in a vertical list (ban appeals/ ban requests / vouch requests, etc.) – and it was working for both forums (Defense of the Ancients and Legion Tower Defense)

    Since the upgrade to 2.6.1 , it only displays for 1 of them as you can see, and even that one, is horizontally (not vertical anymore)

    I’ve tried looking at the bbpress settings, but it doens’t seem like there’s anything i can do on my side to rearrange it (and it was working as mentioned before this recent update..)

    #205679
    hyo1990
    Participant

    Hi there,

    I’ve updated the plugin BB Press to the latest version (2.6.1), but the subforums display situation isn’t solved (We have 2 forums (Defense of the ancients & Legion Tower Defense) with subforums associated – The 1st one displays them in a incorrect way, and the 2nd doens’t display at all)

    Tried searching the previous topics, but coulnd’t find any information regarding it (after the release of 2.6.1)

    Thanks in advance

    Wordpress: version 5.3
    BBPress: version 2.6.1
    Website: https://firstbloodgaming.com/forums/ (which is the affected page)

    #205677
    pipipi07
    Participant

    If default=21, I was able to input 7 characters in Japanese!
    Apparently, 18-20 can be up to 6 characters, 21-23 can be up to 7 characters, 24 can be up to 8 characters in Japanese. This was a new discovery!

    When bbPress was changed to 2.6, wordpress was upgraded to 5.3 as well. As you say, it may have an impact. I will try a little more to find out what’s wrong.
    For the time being, I decided to set 60 instead of 20.

    Thank you for your cooperation!

    #205671
    stracy2
    Participant

    Robin,

    I can confirm the quoted method works using bbPress 2.6 RC 7.

    I’m grateful for the help.

    Thanks.

    #205661

    In reply to: Child CSS

    Sorry, but bbPress 2.6.1 just went out without this fixed.

    (There were a few issues that needed fixing ASAP.)

    As soon as we have this figured out, another new bbPress release will happen.

    Thanks for helping and being patient! 🙏

    #205659

    In reply to: Child CSS

    hydrogriff
    Participant
    • Yes. W3TC with CSS minification.
    • Yoast SEO. As far as I know, it doesn’t interact with CSS files.
    • No.
    • No.

    Related change test: Tested with both screen and all. Did not work.

    Additional information:

    I have dequeued bbpress stylesheets for non-bbpress pages, using the below code.

    
    function dequeue_bbpress_style() {
        if ( class_exists('bbPress') ) {
          if ( ! is_bbpress() ) {
            wp_dequeue_style('bbp-default');
            wp_dequeue_style( 'bbp_private_replies_style');
            wp_dequeue_script('bbpress-editor');
          }
        }
    }
    add_action( 'wp_enqueue_scripts', 'dequeue_bbpress_style', 99 );
    

    I hope this helps.

    I also noted another issue where the replies were not loading (both topic replies and threaded replies) for any topics.

    #205658
    Chuckie
    Participant

    In the admin area we have several menu items in various places:

    Topics
    Replies
    Forums
    Tools – Forums
    Settings – Forums

    Is it not possible to have them grouped together? At least first three in BBPress menu?

    #205657

    In reply to: Child CSS

    Subforums are not listed.

    The subforums not being listed will be fixed in 2.6.1.

    A few more questions:

    • Using any caching plugins?
    • Using any SEO plugins that might be interacting with CSS files?
    • Using a right-to-left language?
    • Overriding any constants? (WP_CONTENT_DIR, WP_PLUGIN_DIR, WP_THEME_DIR, etc…)

    Anything else about your WordPress installations you can share?

    The only related change I can find, is: https://bbpress.trac.wordpress.org/ticket/3012

    If you’re able to edit that file in bbPress directly, and revert it back, and test, that would be super helpful to confirm or disconfirm if that does it.

    #205655

    In reply to: Child CSS

    hydrogriff
    Participant

    Hi JJJ,

    Renaming to bbpress.min.css brings the style back. Yes, the bbpress.css is inside a subdirectory css.

    Also, the subforum is not appearing. And I see two favorite and subscribe elements in the topic page now.

    #205654

    In reply to: Child CSS

    One last question:

    Are your bbpress.css files in the root of your theme directory, or under a subdirectory?

    Like…

    • css/bbpress.css
    • assets/css/bbpress.css

    etc…

Viewing 25 results - 5,526 through 5,550 (of 64,487 total)
Skip to toolbar