Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 3,376 through 3,400 (of 22,615 total)
  • Author
    Search Results
  • #267309
    shanebp
    Moderator

    You could replace this: ($_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php')

    With this: ! wp_doing_ajax()

    wp_doing_ajax()

    #267288
    margarit0
    Participant

    I am using the plugin “TinyMCE Advanced” for wordpress pots, maybe it makes the error, but I need it for wordpress posts.

    r-a-y
    Keymaster

    This has been filed as a bug, but was too late to make v2.9:
    https://buddypress.trac.wordpress.org/ticket/7569

    There is a patch attached with a fix if you want to fix this temporarily.

    #267239
    Henry Wright
    Moderator

    I just don’t know what impact this will have on overal performance when I go wish in other tables for content.

    It depends. WordPress and BuddyPress do a great job when it comes to optimising queries but there are things that will cause a big site to simply fall over (the meta_value column isn’t indexed for example so meta querying could be problematic).

    #267233
    shanebp
    Moderator

    You can turn off registration.
    Head over to Settings » General page in your WordPress admin area. Scroll down to the ‘Membership’ section and uncheck the box next to ‘Anyone can register’ option.

    #267230
    Henry Wright
    Moderator

    get_post() will get a WordPress post from the wp_posts table. This is different to a BuddyPress activity item which is stored in the wp_bp_activity table.

    #267221
    livingflame
    Participant

    Try with this:

    function tubs_sanitize_user($username, $raw_username, $strict) {
        $new_username = strip_tags($raw_username);
        // Kill octets
        $new_username = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '', $new_username);
        $new_username = preg_replace('/&.?;/', '', $new_username); // Kill entities
    
       // If strict, reduce to ASCII for max portability.
       if ( $strict )
            $new_username = preg_replace('|[^a-z0-9 _.\-@+]|i', '', $new_username);
    
        return $new_username;
    }
    add_filter( 'sanitize_user', 'tubs_sanitize_user', 10, 3);

    Source

    Or try with this:

    // Force Strong Username
    function strong_username() {
     global $bp;
    
     if ( !empty( $_POST['signup_username'] ) )
       if ( !valid_username( $_POST['signup_username'] ) ){
        $bp->signup->errors['signup_username'] = __( 'Your username is not strong enough. Use uppercase, lowercase, numbers and special chars like - _', 'bp-strong-username-password', 'buddypress' );
       }
     }
     add_action( 'bp_signup_validate', 'strong_username');
    
     function valid_username($candidate) {
       $r1='/[A-Z]/';  //Uppercase 
       $r2='/[a-z]/';  //lowercase
       $r3='/[0-9]/';  //numbers
       $r4='/[-_]/'; //Special chars, underscore...
    
       if(preg_match_all($r1,$candidate, $o)<1) return FALSE;
       if(preg_match_all($r2,$candidate, $o)<1) return FALSE;
       if(preg_match_all($r3,$candidate, $o)<1) return FALSE;
       if(preg_match_all($r4,$candidate, $o)<1) return FALSE;
       if(strlen($candidate)<6) return FALSE;
    
       return TRUE;
    }
    #267211

    In reply to: Help with this code

    Henry Wright
    Moderator

    is_user_logged_in() is a WordPress function. It’ll return true if the user is authenticated and false if not.

    bp_loggedin_user_id() will return the ID of the BuddyPress member currently logged in.

    The two functions are different.

    #267208
    r-a-y
    Keymaster
    antelam
    Participant

    <form action=”” name=”signup_form” id=”signup_form” class=”standard-form”
    when I remove the class standard-form in the inspect element/console/DOM Explorer of IE

    I can then add text to the fields.
    I was also able to submit the FORM successfully.

    Im not sure how to solve though as I am not a PHP developer and I don’t know how to navigate wordpress files since I am new to wordpress.

    Please help THanks.

    #267144
    Henry Wright
    Moderator

    Is https://www.example.com/example/ a WordPress page? If it is you can target it with

    if ( is_page( 'example' ) ) {
        // Do something.
    }

    Also, I just added the code below and I can still access the members directory when not logged in

    Where did you add the snippet? The code should work.

    #267132
    Henry Wright
    Moderator

    Or you can try to access to some page in WordPress admin area (e.g.: with an ajax call) ?

    BuddyPress doesn’t do this by default. Considering you can’t reproduce, I expect the client is using custom code that’s causing the problem (either in their functions.php file, bp-custom.php file or in an activated plugin). Check those 3 locations on your client’s site for anything strange.

    #267129
    magland
    Participant

    Just to add something further I think this is specifically an issue with Safari. Just tried chrome on my iphone and it works ok. Several other people reporting the problem on the iphone and they are also using Safari.

    However, the default WordPress media uploader does work in Safari.

    #267127
    Andrea Grillo
    Participant

    Hi,

    no I’m not. I think….I have an option to prevent Shop Manager view WordPress backend, probably you use some backend action ? Or you can try to access to some page in WordPress admin area (e.g.: with an ajax call) ?

    Let me know.
    thanks for your help.

    Have a nice day
    Andrea

    Hugo64
    Participant

    Hi @johnriggs78,

    Thank you for your answer.

    Let me precise my message: If I install the 2.8. version and above, the install will be done, and the main site will run, but not the subsites with Error 500.
    This is also the case with only buddypress activated in my wordpress, which shows it is a problem of Buddypress plugin.
    Best,

    Hugo

    #267083
    brucelewis55
    Participant

    HI, we have worked on some add ons in buddypress.

    https://profiles.wordpress.org/wbcomdesigns#content-plugins

    thelovebridges
    Participant

    WordPress 4.8
    BuddyPress 2.8.2

    #267030

    In reply to: Fatal error

    Hugo Ashmore
    Participant

    This has been opened as a trac ticket:
    https://buddypress.trac.wordpress.org/ticket/7570


    @jaeyholic
    can you provide the details requested there, thanks.

    #267000

    In reply to: Notifications

    Henry Wright
    Moderator

    I’m not sure there is something available. Try searching through the list of plugins at wordpress.org

    Yanur Islam Piash
    Participant

    I figured out the problem was not with Buddypress. This article provides a solution

    #266968
    r-a-y
    Keymaster

    WordPress is on 4.8, not 4.9 unless you are using the development branch.

    Can you try switching your theme to see if that fixes your issue? Also could be caused by a plugin conflict. You can also check your browser’s JS console to see what pops up.

    #266961
    enacta2
    Participant

    So I tried to post this last night:

    Please try to supply answers to the following questions.

    1. Which version of WordPress are you running?
    4.8

    2. Did you install WordPress as a directory or subdomain install?
    Directory

    3. If a directory install, is it in root or in a subdirectory?
    Root

    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    Upgrade, but upgrading isn’t linked to this issue

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    Yes

    6. Which version of BP are you running?
    2.8.2

    7. Did you upgraded from a previous version of BP? If so, from which version?
    No

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Yes, many. But they don’t seem to be linked to this issue

    9. Are you using the standard WordPress theme or customized theme?
    Customized theme

    10. Which theme do you use ?
    WeChange by Curly Themes

    11. Have you modified the core files in any way?
    Yes. Functions.php for WYSIWYG editor for bbPress

    12. Do you have any custom functions in bp-custom.php?
    No

    13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    2.6-rc-3 because I have PHP 7.1.6 running

    14. Please provide a list of any errors in your server’s log files.
    There are no errors

    15. Which company provides your hosting?
    SiteGround

    16. Is your server running Windows, or if Linux; Apache, nginx or something else?
    nginix

    #266959
    Christian Wach
    Participant

    By default BuddyPress operates across sites in a multisite/multinetwork context. You’ll need to look at one of these plugins depending on your requirements:

    BuddyPress Multi Network

    BP Multi Network

    #266918
    Sanket Parmar
    Participant

    Hi @rafiamudasar,

    You can try wordpress.org/plugins/bp-activity-share/, this plugin shares activity locally like FB does.

    Let me know if it helps you 🙂

    jamesdoherty1708
    Participant

    Hi, thanks for getting back to me so quickly @henrywright,

    sorry if this is a really dumb question, but do i need to be using ftp to do that?
    right now i’m editing through my child theme’s function.php section in the wordpress.org theme editor.

    I’ve tried making a members-loop.php section in my child theme to edit the do_action( ‘bp_directory_members_item’ ); but it doesnt seem to be updating on to the site,
    Thanks again, James.

Viewing 25 results - 3,376 through 3,400 (of 22,615 total)
Skip to toolbar