Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 651 through 675 (of 11,510 total)
  • Author
    Search Results
  • #223499
    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

    #223497
    Robin W
    Moderator

    And breadcrumb does not display on the forum.

    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

    #223458
    cachophrastus
    Participant

    Hi,
    WP 5.7.3 Admiral. Latest version of bbpress.
    https://www.seignalet-plus.com/forums/forum/surviving-the-scamdemic/

    I have a no right click plug in on my site. How can I exclude it from the forum? I want people to be able to post links (apart from spammers of course šŸ˜‰ ) and be able to embed videos.

    I’ve looked at all the no right click plug ins and none seem to have that capability.

    Thanks in advance for your help.

    #223455
    Robin W
    Moderator

    ‘There are some settings that will basically let you ā€œrefreshā€ certain aspects’

    ok no idea where that is and without a clear ‘click this, press that’ not really able to help on that aspect, and may well be an additional plugin which may be the cause.

    so I’d suggest

    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

    #223451
    cranney
    Participant

    Hi, we are using BBPress on ccwbra.com with WordPress 5.5.6 running Total theme.
    Our users can reach the forum landing page(https://ccwbra.com/forums_test/), but get 404 Page could not be found error when accessing any Forum or Topic.

    #223427
    Robin W
    Moderator

    I’d start by working out why emails are not arriving.

    bbpress just uses the wordpress registration so start with

    Email Test – Check if your emails are being delivered

    and then look at

    WP Mail SMTP by WPForms

    #223407
    uksentinel
    Participant

    I forgot to mention, I use the widget (BBPRESS- Recent replies) which work well but am looking o achive the same results via a MENU drop down (shortcoode) or simular hyperlink.

    I use the following to show latest Topics – https://uktechhub.com/forums/view/latest-topics/

    Looking o achieve simular for Replies ?

    Robin W
    Moderator

    sorry, untested code, go with

    if ($forum_id == ‘12345’) {

    outkax
    Participant

    I tested with your code Robin, it does not work. The if is missing parentheses. But even with that doesn’t work. It displays all the forums with the content of the if and does not take into account the id I give it.

    #223289
    bobdobbs
    Participant

    Hi Robin. I looked at this a while ago and did some experimentation with it.
    I’m sure it does what I need, but it requires too much configuration and mental overhead for my simple requirements.

    That’s not a criticism of the plugin itself! It looks great!

    But its flexibility requires me to learn its complex model.
    And my needs are dead simple: simply make all forum content inaccessible to everyone who isn’t signed in as a forum member.

    Afaict, the function I’ve created above does a good enough job toward that end.
    The main issue is that it allows access to anyone who isn’t a member, as long as they have a login to the website.

    For me this isn’t a problem yet: the only members of the site will be forum members.
    At this point I’m not sure how to test for that. I’ll get around to figuring that out at some point.

    #223269
    bobdobbs
    Participant

    I have a solution.

    It relies on a couple of assumptions: one being that the structure of URL’s is like this:
    http://mysite.com/forums/…’

    Assumption 2: all users with an account on the website are allowed to access the forum.

    This function does the following:
    If the user requests a resource under ‘/forums/’ then we test to see if the user has a wordpress account and is logged in. If the user isn’t logged into the wordpress account, then they get denied.

    In production I’ve replaced ‘wp_die’ with a wp_redirect to another page.

    /**
    * If a user is not a forum member, and requests the forum index page then redirect them
    */

    add_action('init', 'as_protect_forums');
    
    function  as_protect_forums() {
    
        // get the path of the requested URI
        $current_url = home_url($_SERVER['REQUEST_URI']);
    
        $path = parse_url($current_url, PHP_URL_PATH) ;
    
        $parts = explode('/', $path) ;
    
        $first_part = $parts[1] ;
    
        if (  $first_part === 'forums' ) {
            if ( 0 === get_current_user_id() ) {
                wp_die('nope');
            }
        }
    
    }
    
    
    #223248
    Ludovic S. Clain
    Participant

    Hi @robin-w,
    thanks for your reply!

    I managed to reproduce my problem:
    I created a WordPress instance on wptaste.com, reinstalled the essential bbpress plugins as well as Elementor Pro and Astra Pro, trying to redo my settings by hand, the error did not reproduce , I then exported my settings from the original site to re-import them into the test site and there I got the error.

    So I set out to reset my settings in Astra Pro and then redo them by hand, and now everything is back to normal.
    I didnā€™t understand what it was, but I was able to isolate it and find a solution that didnā€™t take your time.
    Thanks for putting me on the trail!
    Best regards,
    Ludovic from Reunion island šŸ‡·šŸ‡Ŗ

    #223137
    Robin W
    Moderator

    I took a look at this, but cannot see what is causing the issue

    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

    #223121
    Robin W
    Moderator

    As a test can you try not having the underscore eg customforum as a single word and see if that makes a difference.

    Also are you running buddypress as well ? (question not suggesting you should or shouldn’t !)

    #223084
    Robin W
    Moderator

    the easiest way to do this is to allow participant to ‘throttle’ – this then lets them bypass this check

    so the code (untested) should be :

    add_filter( 'bbp_get_caps_for_role', 'rew_throttle_bypass', 10, 2);
    
    function rew_throttle_bypass ($caps, $role) {
    	if ($role == bbp_get_participant_role() ) {
    		$caps['throttle'] = true ;
    	}
    return $caps ;
    }

    ut this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    #223082
    bhkh
    Participant

    Is there a way to disable the ā€œDuplicate reply detectedā€ error checking? My forum will mostly be people uploading audio attachments and they may very well just say the same thing each time they post. But in the short term itā€™s a bother to my testers since they canā€™t just write ā€œtestā€ each time.

    I know that the error code is in \wp-content\plugins\bbpress\includes\common\functions.php

    Iā€™m guessing there is some way to filter the bbp_check_for_duplicate function, but I donā€™t know enough php to do that.

    Iā€™ve seen some others post this question in the past but didnā€™t see answers.

    (BTW, I posted this question a few hours ago but it got marked as spam. Not sure why. I included some code in it but have removed it in this one. Hope it’s ok to repost.)

    #223063
    pandex
    Participant

    test

    #223042
    bhkh
    Participant

    Thanks again for such a quick reply!

    1. since this relates to bbpress attachments plugin specifically, it would be better to ask there ā€“ Milan should be able to help

    So I just now tested putting the code (in this case a link) I’m trying to filter in the body of a reply in addition to having it be in the attachment (hadn’t thought about trying that before) but before I posted I saw <div class="bbp-attachments"> in the page source and so figured that attachments were something in core bbP, not just the GD bbPress Attachments plugin.

    And the result of that test now is that the link in the body of the reply is also not filtered. So I think I’m back to this being a bbP thing and not a GD bbPress Attachments.

    I notice that you also asked about empty replies in that forum as well as this forum where I gave you a fix ā€“ it is very frustrating for plugin authors and helpers when they spend time on an issue only to find that the original poster has already fixed it

    I totally get that! At the time, I had no idea what the response rate was going to be. Sometimes communities/companies reply within the hour (as you did, thanks!!) or if they will take weeks. So not being sure which was causing the problem, I did post in both places. Please forgive me. I was surprised that both places replied so quickly.

    It would be polite to do this

    I did! Within minutes of seeing his response. Wasn’t it visible to you? Should I have linked back to the forum as well? I’m happy to, I just thought the code was enough. I totally know the frustration of support posts that end with “Oh, never mind, I fixed it.” and no solution.

    Anyway, since I now know that my filter also doesn’t catch things in the body of the reply either (and I would like it to) are we back to this being a bbP thing? Are there other troubleshooting things I’m missing? I have disabled all other plugins and tried a default theme.

    #222980

    In reply to: Allow empty replies

    Robin W
    Moderator

    there should be an error message at the top saying

    Your reply cannot be empty.

    but the other plugin may be affecting this.

    the quickest way to correct this is to create some content if it is blank.

    This filter (untested) will deal with empty content and add a space character.

    add_filter ('bbp_new_reply_pre_content' , 'rew_allow_blank_content') ;
    
    function rew_allow_blank_content ($reply_content) {
    	if ( empty( $reply_content ) ) {
    		$reply_content = ' ' ;
    	}
    return $reply_content ;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    I have initially set it to change empty content to a single space character ie

    $reply_content = ' ' ;

    however later checking by WordPress may delete this, so it may need some actual text – maybe like

    $reply_content = 'this reply is has no text' ;

    #222946

    Topic: Images Upload

    in forum Installation
    hardikchosla
    Participant

    this is testing purpos

    Robin W
    Moderator

    you need to wrap the url into an image tag as in

    https://www.w3schools.com/tags/tag_img.asp

    so (untested so may need fixing) and image sizing but try

    add_action('bbp_template_before_replies_loop', 'bbp_show_extra_fields');
    function bbp_show_extra_fields() {
      $topic_id = bbp_get_topic_id();
      $value1 = get_post_meta( $topic_id, 'bbp_extra_field1', true);
      $value2 = get_post_meta( $topic_id, 'bbp_extra_field2', true);
      $img1 = '<img src="'.$value1.'">' ;
      echo "Field 1: ".$img1."<br>";
      echo "Field 2: ".$value2."<br>";
    }
    Robin W
    Moderator

    just tested it on my site, and it seems to work.

    where did you put the code?

    Robin W
    Moderator

    untested but try this

    add_filter ('bbp_new_reply_redirect_to', 'rew_redirect_to_topic', 10 , 3) ;
    
    function rew_redirect_to_topic ($reply_url, $redirect_to, $reply_id ) {
    	$topic_id = bbp_get_reply_topic_id ($reply_id) ;
    	$redirect_url = bbp_get_topic_permalink( $topic_id, $redirect_to );
    return $redirect_url ;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    #222789
    Robin W
    Moderator

    it will be caching on your browser.

    you need to clear cache on the browsers to let them download the latest version of css.

    They look the same on my PC in all browsers, as I am looking at the site for the first time.

    #222741
    Robin W
    Moderator

    2.6 is that latest version – did you mean that ?

Viewing 25 results - 651 through 675 (of 11,510 total)
Skip to toolbar