Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 7,351 through 7,375 (of 64,431 total)
  • Author
    Search Results
  • #191141
    Robin W
    Moderator

    The 2nd function assumes that you only have the default roles.

    Put this first and it should work ie

    //BBpress Rename Roles //
         /* BBPress Renaming Roles */
        add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' , 1);
        function ntwb_bbpress_custom_role_names() {
        return array(
        // Keymaster
        bbp_get_keymaster_role() => array(
        'name' => 'Administrator',
        'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
        ),
        // Moderator
        bbp_get_moderator_role() => array(
        'name' => 'Moderator',
        'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() )
        ),
        // Participant
        bbp_get_participant_role() => array(
        'name' => 'Member',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
        ),
        // Spectator
        bbp_get_spectator_role() => array(
        'name' => 'Spectator',
        'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() )
        ),
        // Blocked
        bbp_get_blocked_role() => array(
        'name' => 'Blocked',
        'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() )
        ));}
    //BBpress Rename Roles End //
    
    //BBpress Custom Roles // 
    function add_new_roles( $bbp_roles )
    {
        /* Add a role called tutor */
        $bbp_roles['bbp_lead'] = array(
            'name' => 'Community Lead',
            'capabilities' => custom_capabilities( 'bbp_lead' )
            );
     
        return $bbp_roles;
    }
     
    add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 );
     
    function add_role_caps_filter( $caps, $role )
    {
        /* Only filter for roles we are interested in! */
        if( $role == 'bbp_lead' )
            $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 'tutor' role */
            case 'bbp_lead':
                return array(
                    // Primary caps
                    'spectate'              => true,
                    'participate'           => true,
                    'moderate'              => true,
                    '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'    => 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,
                );
     
                break;
     
            default :
                return $role;
        }
    }
    // End BBpress Custom Roles //
    #191126
    jelliott2014
    Participant

    I am creating a forum for my club (about 60 members) containing a few forums and sub forums. I would like to have the content of all replies/topics that members create under eacb forum be displayed together. This would be greatly preferred from a user experience standpoint for a small forum.

    I can get all topic headings to appear, but then can view only one topic at a time. I have seen sites with this layout, so I’m missing something obvious.

    I am using bbPress 2.5.14 with WP 4.9.4. Also using bbPress style pack.

    Thanks.

    #191125
    kingofblingbling
    Participant

    It’s under the title “Forum” in the bar/header; I think is to default for all but I can explain better if you dont understand.

    erich199
    Participant

    Hi @robin-w,

    For some odd reason it’s making two post entries in bbpress. It’s showing duplicate topics on a “Recent Topic” widget and the url’s are different. It’s strange. I can let you take a look at my website if you have time.

    Thanks again for this, it really is great and helps me a lot.

    #191095
    wpturk
    Participant

    I use this to change default Profile URL (author link) to my custom Profile Page URL.

    How can I also change mention links to my custom profile page url?

    (bbpress 2.6 RC5)

    wpturk
    Participant

    I use the latest bbpress 2.6 RC5. The new feature mention is not working properly.

    Whenever a user has email address in the text body, the domain after “@” is considered as mention.

    ex: in text body info @ test.com (I use with space because the same case here in forum)

    changes to:


    @test
    .com”>info @test.com

    and @test is clickable as a mention.

    #191074

    In reply to: Creating Custom Search

    Adolfo Augusto
    Participant

    It was necessary create file bbpress.php, copy the files for folder(in my theme) bbpress: content-search, loop-search and pagination-search.

    how this post

    Getting Started in Modifying the Main bbPress Template

    for tamplate customized.

    #191072

    In reply to: Newsletter Integration

    Robin W
    Moderator

    it integrates to buddypress I believe

    Available Integrations

    and this may help

    bbPress Integration

    #191059
    Robin W
    Moderator

    It could be coded, but it would be an hours work and several calls. A plugin that relies on bbpress should check that when loaded, but whilst I know most of mine do, I couldn’t swear that they all do !!

    #191057
    erich199
    Participant

    Hello,
    I’m trying to rename the current roles as well as ADD new roles. When I add the filter to change the current role name, it doesn’t add the new user role I’ve added. If I remove that code, then the new user role shows up.

    This is the code I’m using.

    //BBpress Custom Roles // 
    function add_new_roles( $bbp_roles )
    {
        /* Add a role called tutor */
        $bbp_roles['bbp_lead'] = array(
            'name' => 'Community Lead',
            'capabilities' => custom_capabilities( 'bbp_lead' )
            );
     
        return $bbp_roles;
    }
     
    add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 );
     
    function add_role_caps_filter( $caps, $role )
    {
        /* Only filter for roles we are interested in! */
        if( $role == 'bbp_lead' )
            $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 'tutor' role */
            case 'bbp_lead':
                return array(
                    // Primary caps
                    'spectate'              => true,
                    'participate'           => true,
                    'moderate'              => true,
                    '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'    => 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,
                );
     
                break;
     
            default :
                return $role;
        }
    }
    // End BBpress Custom Roles //
    
    //BBpress Rename Roles //
         /* BBPress Renaming Roles */
        add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
        function ntwb_bbpress_custom_role_names() {
        return array(
        // Keymaster
        bbp_get_keymaster_role() => array(
        'name' => 'Administrator',
        'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
        ),
        // Moderator
        bbp_get_moderator_role() => array(
        'name' => 'Moderator',
        'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() )
        ),
        // Participant
        bbp_get_participant_role() => array(
        'name' => 'Member',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
        ),
        // Spectator
        bbp_get_spectator_role() => array(
        'name' => 'Spectator',
        'capabilities' => bbp_get_caps_for_role( bbp_get_spectator_role() )
        ),
        // Blocked
        bbp_get_blocked_role() => array(
        'name' => 'Blocked',
        'capabilities' => bbp_get_caps_for_role( bbp_get_blocked_role() )
        ));}
    //BBpress Rename Roles End //
    #191056

    In reply to: list of all functions

    Robin W
    Moderator

    would love to find the time to write it!!

    Like all open software bbpress relies on users to make it successful, and I’m not a bbpress author, just a user who got into it, and I wrote much of the ‘getting started’ guide as I installed my first bbpress site.

    If you want to help, then as above the key start point is the templates. Mapping these into a user understandable chart would be a great start, so go to

    bbpress/templates/default/bbress/content-archive-forum.php
    This is the first template called, and all the functions and templates you want to use will cascade from here.

    #191054

    In reply to: list of all functions

    Nate Zander
    Participant

    Bump. Would love an actually complete codex to help guide theme development.
    https://codex.bbpress.org/developer/ 🙁

    #191047
    haddlyapis
    Participant

    Hi there,
    the issue here is that I have several bbpress add-on plugins. If I deactivate BBpress before deactivating all of the add-on plugins (e.g. google translate, AsynCRONous bbPress Subscriptions, bbpress Toolkit etc) the website crashes. If I deactivate all of them first, then no problem.
    Is there is simple fix “if” statement that i can add to my functions.php file, whereby “if” Bbpress plugin is inactive, also make the following plugins inactive?
    Apart from that, this plugin is great.
    Thx

    #191046

    In reply to: signature separator

    Robin W
    Moderator

    bbpress doesn’t have a signature field. Are you using another plugin to do this ?

    #191039
    TechHaus
    Participant

    Thank you @robin-w! So the function I linked to activated the feature, and then I was able to copy the content-single-topic-lead.php into a bbpress folder in my theme, and edit it a bit like in your link. Feeling good about it.

    I do have a question though, if anyone can help me figure this out (i’m new to php and am not familiar with the syntax). In the file https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/loop-single-topic.php , on line 73, what this mean:

    `<?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?>’

    That’s one of the few places I see the function called at all in the templates they edited. Still digging and learning. Thanks for any help or ideas.

    kais12
    Participant

    Hi

    I used bbpress 2.6 RC 5 and migrated and an SMF forum to bbpress. All went well but the users ae being shown wrong posts .

    Some users had 12000+ posts in SMF and now they have 2700 or 3000

    Help please!

    Kais

    #190997
    discusspf
    Blocked

    Hi, I am using bbPress 2.5 here: https://discusspf.com/community/

    My problem is occurring as follows: I have the forum set up so it displays the recent topics as a shortcode on a page for the forum. This works fine for me (keymaster) and displays a create topic box at the bottom of the forum. However, for normal users it displays that they cannot create topics on the forum index, but when they navigate to a particular forum area they are able to create topics then. What is causing this issue and how might I fix it?

    Thanks in advance.

    #190993
    Robin W
    Moderator
    #190992
    TechHaus
    Participant

    Ok, found this… still digging…

    bbp_show_lead_topic

    #190990
    Robin W
    Moderator

    bbpress changed from sending individual subscription updates to sending a bulk one, by sending an email to no-reply@site-name and then bcc’ing in all the people due to get an email.

    This is why you are seeing this.

    kais12
    Participant

    Hi

    I recently imported a huge SMF into bbpress 2.6 RC 5.
    It was faster than 2.5.x and even 2.6 beta .

    Now i am facing a huge issue of misplacement of replies and users wrongly linked to replies. I am trying to run Recalculate position of each reply in each topic since past few hours and all i get is following error mesaged Fatal error: Out of memory (allocated 73400320) (tried to allocate 200704 bytes)

    I have edited the PHP.in and put in highest values i could think of .

    Can someone please help me here

    @stephen_edgar says if it timesout and we re-run it , it starts from the index wher it had stopped. Is it so ?

    Regards
    Kais

    #190981

    In reply to: Private Threads?

    Robin W
    Moderator

    It wouldn’t be the same ticket thread. Perhaps I’m not explaining myself clearly.

    The previous comment was spam promoting a dentist site which I have deleted, so ignore that.

    On private groups.

    You would set up a group say called ‘users’

    You would set up two forums – one public where public posts can be posted as per standard bbpress, and then one that belongs to the private group ‘users’ which you set up above.

    Users are joined to users group either manually or by default.

    You then enable topic permissions opn the private forum, and set the topic permisisons for that group to Create/edit OWN topics. Users will only see their own topics and any replies posted.

    If just keymasters are responding, then they will see all topics on that forum. If others will be responding, then set up another group and make them able to see the whole forum.

    #190958
    cri00
    Participant

    Hello!

    We are looking to modify BBpress meaning:

    – remove the possibility for anonymous users posting answers to questions.
    – remove BBpress notices like ”You can publish HTML content” or ”You can use BBCodes to format your content”.
    – remove the website field request when asking a question, along subject type and question status.
    – add a name for the description field regarding the title of the subject.
    – customize the right sidebar to include: add a question, search and categories of the forum.

    We are using bbpress 2.5.14 and wordpress 4.7.9. Any help will be much appreciated.

    Thank you!

    #190944

    In reply to: Changing Display Name

    lilymonsterz
    Participant

    WordPress 4.9.4, bbPress 2.5.14

    #190942
    bhammondCVL
    Participant

    No worries–I am looking forward to a nice weekend myself. Here are some more, possibly useful, details:

    I installed bbPress on another, far more generic, site and got the same behavior–bounced messages to no-reply@site-name if any user had subscribed to a forum or topic.

    I installed the plugin “bbPress Custom Topic & Reply Notifications” by Pippin Williamson and got its customized notifications, but also the no-reply bounces.

    I deactivated that and installed “bbPress Notify (No-Spam)” by Vinny Alves, which said it provided the ability to override bbPress’s default subscription functions. Using this plugin seems to have resolved the bounces.

    So it would seem to be a problem with bbPress’s subscriptions functions, and not a conflict with some other plugin or some other site-specific oddity.

Viewing 25 results - 7,351 through 7,375 (of 64,431 total)
Skip to toolbar