Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 726 through 750 (of 11,571 total)
  • Author
    Search Results
  • #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 ?

    #222730
    ROSEMILAN
    Participant

    Hi,

    I would like to remove the last page numbers in pagination,
    is there any function code to do this?

    at the moment, on latest topics on a big forum.. it shows like this..

    #222696

    Topic: Styling Issue

    in forum Themes
    jeremy
    Participant

    Hi. Testing bbPress using Penci Soledad. Installed Robin’s Style Pack, but none of the changes are being registered. I cleared caches and all. I should note that I have a dark theme on my site and the styling needs help. Any advice?

    #222667
    Robin W
    Moderator

    Atleast one that says it officially supports the latest wordpress version that is out.

    I thought it now did – certainly here

    bbPress

    #222666
    Chuckie
    Participant

    I appreciate that you took the time to look.

    Maybe sometime soon we will get an updated bbPress? Who knows …. Atleast one that says it officially supports the latest wordpress version that is out.

    #222494

    In reply to: Forum url changes

    Robin W
    Moderator

    ok you could also use a PHP variable rather than a wordpress function

    so

    $current_url = $_SERVER['REQUEST_URI'];

    should give you the displayed URL in all cases.

    you can then do an ‘if’ test to see if you are in forums using say

    if (strpos($_SERVER['REQUEST_URI'], '/qaforums/') == true ) …then you are in the forums

    #222486
    uksentinel
    Participant

    @robin-w on the other topic is very knowledgeable, turn off all cache plugin and see if problem is still there.

    Are you using any cookies plugin, as this I have had issue with ?

    have you always had this problem, as maybe a theme issues, any chance of you trying a different theme, just for testing ?

    #222466

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    I haven’t tried adding an extra forum to test it. I am just assuming it defaults to the highest forum ID, which is what it is currently doing.

    #222459

    In reply to: Forum url changes

    Robin W
    Moderator

    if get_page link returns :

    mywebsite.com/forum_name3/forum_name3/

    then you could just test for this eg

    if (get_page_link() == 'mywebsite.com/forum_name3/forum_name3/')  {
    get_permalink etc.
    }
    else {
    get_page_link()
    }
    #222458

    In reply to: Forum url changes

    pawanahluwalia
    Participant

    Thanks!

    However, is_bbpress() only seems to be true if you are on the root forum page.

    How can I test for any forum page?

    I tried

    echo get_permalink();

    on a forum page, but it does not display anything. It does display it on the root forum page, but it does not match the root forum page permalink. It again shows the highest Forum ID permalink instead.

    Presumably the page is being created in code and is overwriting the content of the current forum page.

    Any further suggestions?

    #222454
    #222424
    Robin W
    Moderator

    I’ve just taken a look – the whole way subscriptions works was changed in 2.6

    this code works on my test site

    add_action('bbp_template_before_single_topic', 'show_bbp_sub');
    function show_bbp_sub() { 
    	$subscriptions = bbp_get_subscribers(bbp_get_topic_id()) ;
    	$count = count($subscriptions) ;
    	echo 'number of users subscribed: '.$count;
    }
    #222260
    Fetch Designs
    Participant

    The plugin page shows last updated 9 months ago and Tested up to: 5.6.4 when the current version of WordPress is 5.8. Is bbPress still being maintained?

    #222189

    In reply to: GDPR EU legislation

    nicolasremy
    Participant

    Thanks Robin, a much appreciated, reassuring reply for me!

    So, I’ll recap my understanding below (maybe useful for others too):

    bbPress baseline features, when it comes to GDPR
    Right to be forgotten: when admin deletes a user (WordPress Dashboard > Tools > Erase Personal Data), it triggers WordPress’ “Personal Data Erasure” feature, and for bbPress content (posts/topics) will offer to re-assign to another user.
    Right to data portability: when admin hits (WordPress Dashboard > Tools > Export Personal Data), it triggers WordPress’ “Personal Data Export” feature, but the exported file won’t include posts/topics from the forum.

    Extra functionality is available via this plugin: https://bbpress.org/forums/topic/make-bbpress-gdpr-compliant/
    Right to be forgotten: when admin deletes a user (WordPress Dashboard > Tools > Erase Personal Data), forum posts/topics will be deleted (no chance to re-assign to another user).
    Right to data portability: when admin hits (WordPress Dashboard > Tools > Export Personal Data), forum posts/topics will be included in the exported file.

    I like the ability to re-assign posts (deletion time) but at export time, I like the idea to include those posts. Sounds like a “best of both worlds” to me. Would you or anyone know if that is a possibility? Seems like the above plugin is an “all or nothing”.

    Sorry if my questions seem numb, a bit of testing would certainly get the answer, but my website project is at its infancy: I don’t even have a host/wordpress yet, I am investigating which solution/plugins to assemble to achieve my vision.
    In fact, I am probably going to use the BuddyBoss platform, which is a fork of bbPress, so I am making the assumption that bbPress’ baseline features are available in BuddyBoss platform, but I might well be wrong!
    All-in-one, I will certainly do thorough testing on those aspects, but you know the V cycle idea, I don’t want to find-out late that I am in a dead end 🙁

    #222167

    In reply to: GDPR EU legislation

    Robin W
    Moderator

    if you want option 1, then on user deletion you get prompted as to where to allocate any topics/replies made by the user, including allocating to another user.

    So some people create a user called anything name you like eg ‘anonymous’ or ‘deleted user’, and assign the posts to them.

    to see how this works, create a ‘deleted user’ account, then create a test user and make some topics/replies using their username.

    then go to

    dashboard>users>all users and delete the test user, and you will see the prompt to let you assign to your ‘deleted user’ account.

Viewing 25 results - 726 through 750 (of 11,571 total)
Skip to toolbar