Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 751 through 775 (of 11,571 total)
  • Author
    Search Results
  • #222152
    lolataylor1
    Participant

    WordPress 5.8
    bbPress 2.6.6
    BuddyPress 9.0.0
    Astra Theme 3.6.5

    Help! I have read every forum post about creating new custom roles in bbPress, but it still isn’t working for me. The created role names are displaying on my Users page in my Admin dashboard, but the roles themselves are not working as intended. When I assign a user a forum role, it is adding it under the “Roles” [i.e., Subscriber (WP Role), Founder (bbPress Role)] and not “Forum Roles.” I tested the different user role settings and they, too, are not working.

    Am I missing something or doing something wrong? I’m new to bbPress and very frustrated after spending hours trying to get this to work.

    This is the code I have create and placed in my Code Snippet plugin. The forum is being added to a paid members only website, so the URL would not be useful.


    function authorready_add_new_roles( $bbp_roles ) {
    $bbp_roles['bbp_probation'] = array(
    'name' => 'Probation',
    'capabilities' => custom_capabilities( 'bbp_probation' )
    );

    $bbp_roles['bbp_subscriber'] = array(
    'name' => 'Subscriber',
    'capabilities' => custom_capabilities( 'bbp_subscriber' )
    );

    $bbp_roles['bbp_founder'] = array(
    'name' => 'Founder',
    'capabilities' => custom_capabilities( 'bbp_founder' )
    );

    $bbp_roles['bbp_leader'] = array(
    'name' => 'Group Leader',
    'capabilities' => custom_capabilities( 'bbp_leader' )
    );

    $bbp_roles['bbp_moderator'] = array(
    'name' => 'Moderator',
    'capabilities' => custom_capabilities( 'bbp_moderator' )
    );

    $bbp_roles['bbp_administrator'] = array(
    'name' => 'Administrator',
    'capabilities' => custom_capabilities( 'bbp_administrator' )
    );

    return $bbp_roles;
    }

    add_filter( 'bbp_get_dynamic_roles', 'authorready_add_new_roles', 1 );

    function authorready_add_role_caps_filter( $caps, $role )
    {
    /* Only filter for roles we are interested in! */
    if( $role == 'bbp_probation' )
    $caps = custom_capabilities( $role );

    if( $role == 'bbp_subscriber' )
    $caps = custom_capabilities( $role );

    if( $role == 'bbp_founder' )
    $caps = custom_capabilities( $role );

    if( $role == 'bbp_leader' )
    $caps = custom_capabilities( $role );

    if( $role == 'bbp_moderator' )
    $caps = custom_capabilities( $role );

    if( $role == 'bbp_administrator' )
    $caps = custom_capabilities( $role );

    return $caps;
    }

    add_filter( 'bbp_get_caps_for_role', 'authorready_add_role_caps_filter', 10, 2 );

    function custom_capabilities( $role )
    {
    switch ( $role )
    {

    /* Capabilities for 'probation' role */
    case 'bbp_probation':
    return array(
    // Primary caps
    'spectate' => true,
    'participate' => false,
    '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' => false,
    'edit_replies' => false,
    '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,
    );

    /* Capabilities for 'subscriber' role */
    case 'bbp_subscriber':
    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' => false,
    'edit_topics' => false,
    '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' => false,
    );

    /* Capabilities for 'founder' role */
    case 'bbp_founder':
    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' => false,
    'edit_topics' => false,
    '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' => false,
    );

    /* Capabilities for 'group leader' role */
    case 'bbp_leader':
    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' => false,

    // Topic caps
    'publish_topics' => false,
    'edit_topics' => false,
    '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' => true,
    'delete_replies' => true,
    'delete_others_replies' => true,
    '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 'moderator' role */
    case 'bbp_moderator':
    return array(
    // Primary caps
    'spectate' => true,
    'participate' => true,
    'moderate' => true,
    'throttle' => true,
    'view_trash' => true,

    // 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' => true,
    'read_private_replies' => true,

    // Topic tag caps
    'manage_topic_tags' => false,
    'edit_topic_tags' => true,
    'delete_topic_tags' => true,
    'assign_topic_tags' => true,
    );

    /* Capabilities for 'administrator' role */
    case 'bbp_administrator':
    return array(
    // Primary caps
    'spectate' => true,
    'participate' => true,
    'moderate' => true,
    'throttle' => true,
    'view_trash' => true,

    // Forum caps
    'keep_gate' => true,
    '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,
    );

    break;

    default :
    return $role;
    }
    }

    #222107

    In reply to: bbpress and cache

    neon67
    Participant

    I used for bbpress wp fastest with a cheetah for a long time .. until I found out that the mobile version went into the premium segment)
    Spent a week experimenting and found an even more faster solution.
    1. Nginx cache – compression, reddis, headers.
    2. PhastPress – enable all parameters – then disable unnecessary ones. These are pictures, scripts, queues optimizations.
    3. And finally WP Super Cache – this is the cache stuff, but unlike w3 total – the cache in dynamic, which is what for the forum. Good results – Expert mode enabled.
    Hope this helps you a little.

    #222091
    techinbermudas
    Participant

    Hello

    So i own a website in wordpress with latest bbpress installed but i’m having cache issues with the forum. So when browsing i get old content, always have to ctrl+shift+r.

    Googling the issue i saw some topics with users but it couldnt be fixed entirely.

    I have tried:
    – No cache on the hosting;
    – Automatic cache on hosting;
    – Installed LiteSpeed Cache
    Disabled Cache for logged in users
    Added /topic* /forum* /forums* to be excluded
    Every other setting i found online
    – Installed W3 Cache (i have it currently)
    Still cache issues specially editing topics (shows old content), going back on forum shows also outdated content. Same happens after editing topics
    – Also tried no Cache Plugins, same results.

    It has been a pain to try to deal with this and my knowledge is limited on this.
    Any help?

    #222018
    Robin W
    Moderator

    I’ve just upgraded my test site to wordpress 5.8 and all looks ok.

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #221997
    heygirlmarketing
    Participant

    Hello,

    I set up the Forum page, the registration page and the password reset pages. It seemed to be working ok until I get to creating a new user as if I am someone new (in order to test it).

    This is for a multi-vendor site, using WooCommerce and Dokan Multi-Vendor.

    Please check out this page as an example and proceed as if you are a new user setting up their username.

    Forum Register/Login

    After you enter the username and email and then click the register button it directs to the shop page for the site. There isn’t a place in the editor that I can see that allows me to change where the register button links to. I filled out the urls correctly in the bb press login widget.

    See attached photo: https://ibb.co/N10SKLt

    This is urgent as it is keeping my client from launching their site. Thank you for your help!

    #221871
    Ricsca2
    Participant

    I’m migrating a forum from vbulletin to bbpress, after a lot of tests I managed to get everything working but the images of the old forum and the emoticons are transferred to the root ex: mysite.it/smile.gif
    Do you know a way to set a specific folder or at least the folder where I am in vbulletin?
    Thank you

    #221870
    Robin W
    Moderator

    the keymaster role is further down the profile – it is an additional role to the wordpress one.

    If you have keymaster set for you, then it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #221862
    Robin W
    Moderator

    that’s not code from bbpress.

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #221814

    In reply to: 404 on Forums

    Robin W
    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    haddlyapis
    Participant

    Yes, I know this sounds strange, but I have tested it.

    For setting “Hold a comment in the queue if it contains 2 or more links”:

    tried doing 2 hyperlinks: got moderation reply
    tried doing 2 images + 1 hyperlink: got moderation reply
    tried doing 1 hyperlink no problem
    tried doing 1 hyperlink + 1 image: got moderation reply
    tried doing 2 images got moderation reply

    Set it to 0 links
    no problem posting regardless of link/image.

    #221786
    Robin W
    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #221776
    Robin W
    Moderator

    just run it on my test site, and the counts stay as they should

    #221775
    Ricsca2
    Participant

    I also tried with a test site that I have and if I click on “Recount the answers in each forum” the number of posts has become the same as that of the Topics …

    Robin W
    Moderator

    ok, so you have users who have a wordpress role, but no bbpress role – yes?

    If so, then testing for a bbpress role, or as you are suggesting a capability such as create_topic seems a sensible solution.

    bobdobbs
    Participant

    Hi Robin.

    I specifically want to discover if the user is logged in as a user of bbpress.

    This is to account for a case where I have some registered websites users who are not forum users.

    For the moment I’m testing capabilities.
    At the moment the only people with access to the forum are people who can create posts.

    So I’m testing of the user has the capability create_topic

    This might work, but feels a bit clumsy to me.

    bobdobbs
    Participant

    I’m wanting to create conditional logic that responds to whether a user is logged in to bbpress.

    Googling helped me to find these two functions:

    bb_current_user_can()
    bb_is_user_logged_in()

    However, when I use them, I get the error “Call to undefined function bb)…”.

    This happens even when I tie my containing function to the hook ‘plugins_loaded’, which I believe fires after all activated plugins have loaded.

    (I first tried to use the hook ‘wp’)

    So I’m just double-checking…

    Should I be able to use either of those two functions to test if a user requesting a resource is a logged-in bbpress user?

    #221532
    Robin W
    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    Robin W
    Moderator

    ok, so if you are a keymaster then I can only suggest

    1. reset the permalinks – dashboard>settings>permalinks and just click save – this resets them.

    2. if that doesn’t fix, it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    goosie00
    Participant

    I’ve done something, but I don’t know what? I think the slugs for the ‘forum’ page may have had a conflict (there was a warning message, but I changed the names), and I think the tabs went missing after I rebuilt the tables, but the tabs have totally disappeared now, and I don’t know how to get them back. Its a backend issue, as its not affecting the front end – you can still get to the forum page
    I uninstalled and deleted/reinstalled bbpress, and it hasn’t brought the tabs back.
    I’m really worried that if I delete the Buddypress plugin, I will lose my settings and customer lists of Participants. Any advice would be very much appreciated.
    bbPress Version 2.6.6
    Buddypress Version 8.0.0
    Wordpress the latest
    FORUM HERE

    Robin W
    Moderator

    if they are not showing, then it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #221425
    Robin W
    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #221342

    In reply to: Scheduling a Topic

    Robin W
    Moderator

    ok, scheduling works fine on my test site, so not sure what to suggest next.

    #221336
    mrforum
    Participant

    Hello all,

    I have a question i am testing a migration from phpbb to bbpress. but now for a while i get a repeat of step 8, how long does this take? i have about 60 times step 8 now and counting.

    And i do not see any users from the original forum, i still have to do the repair as mentioned above to see if that works.

    #221323

    In reply to: Scheduling a Topic

    Robin W
    Moderator

    suspect it might be a another plugin that is adding these (possibly one of mine, but hopefully not!)

    so the standard fault finding applies

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #221243
    Robin W
    Moderator

    great – thanks for posting your experience. Partial forum transfers are always difficult as there is lots of meta-data like counts and latest items that need to be correct at the end

Viewing 25 results - 751 through 775 (of 11,571 total)
Skip to toolbar