Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 4,776 through 4,800 (of 22,602 total)
  • Author
    Search Results
  • #250903
    johnywhy
    Participant

    Hi,

    so i created a custom function to achieve this. It works:

    function bp_Get_FieldgroupID($FieldgroupName){
         global $wpdb;
         // will want to dynamically find table name for future wordpress installs. 
         $query = "SELECT ID FROM wp_t9s5y8_bp_xprofile_groups WHERE name = '$FieldgroupName'";
         return $wpdb->get_var($query);
    }

    This page explains the basics of wordpress mysql queries:
    https://diigo.com/08f43m

    What i don’t know is how to dynamically find the table name– obviously no one else can use this function in their BP until it dynamically uses the correct table name. I welcome any help with that.

    thx!

    #250864
    Paul Wong-Gibbs
    Keymaster

    Right. That’s WordPress 4.4’s embed feature https://codex.wordpress.org/Version_4.4

    I think we added support for that to our activity stream in our last relese.
    If you don’t want the feature at aall, https://wordpress.org/plugins/disable-embeds/ might work.

    #250861
    Henry Wright
    Moderator

    Is it a relatively simple process?

    Yes, BuddyPress is just a plugin so once you have WordPress set up you can install BuddyPress via a few clicks.

    Importing members from a spreadsheet will most likely need a plugin. Try searching the Plugin Directory to see what is available.

    #250859
    nilay89
    Participant

    Sorry I am not getting well

    You must have a plugin that affects how WordPress delivers email.

    Are you talking about any plugin for email? If yes, I am not using any plugin for send mail but I am using SMPT mail with override wordpress “phpmailer_init” function

    See below function

    add_action( 'phpmailer_init', 'wpse8170_phpmailer_init' );
    
    function wpse8170_phpmailer_init( PHPMailer $phpmailer ) {
        $phpmailer->Host = 'smtp.gmail.com';
        $phpmailer->Port = xxx; // could be different
        $phpmailer->Username = 'xxx@gmail.com'; // if required
        $phpmailer->Password = 'xxx'; // if required
        $phpmailer->SMTPAuth = true; // if required
        $phpmailer->SMTPSecure = 'tls'; // enable if required, 'tls' is another possible value
    
        $phpmailer->IsSMTP();
    } 
    #250857
    Paul Wong-Gibbs
    Keymaster

    You must have a plugin that affects how WordPress delivers email. Can you list what plugins you have active?

    #250853
    Henry Wright
    Moderator

    It isn’t really a copy-and-paste example. You’ll need to be comfortable with PHP and WordPress 🙁

    Alternatively though, you could look for a plugin in the Plugin Directory. Maybe the functionality you need already exists?

    #250837
    Paul Wong-Gibbs
    Keymaster

    To update this thread, I’ve just added a fix for emails not sending for certain server configurations. See https://buddypress.org/support/topic/read-this-first-buddypress-2-5-master-list/ and https://buddypress.trac.wordpress.org/ticket/6947

    I think this will help many people, but I would surprised if it fixed everything for everyone. Fingers crossed!

    #250833
    Paul Wong-Gibbs
    Keymaster

    I’ve just added a fix for emails not sending for certain server configurations. See https://buddypress.org/support/topic/read-this-first-buddypress-2-5-master-list/ and https://buddypress.trac.wordpress.org/ticket/6947

    I think this will help many people, but I would surprised if it fixed everything for everyone. Fingers crossed!

    #250827

    In reply to: howto downgrade?

    Henry Wright
    Moderator

    Did you keep a backup copy of your database? If so then you’ll need to use that. Then there’s the files and folders. You should be able to get the 2.4.3 zip from:

    https://downloads.wordpress.org/plugin/buddypress.2.4.3.zip

    Paul Wong-Gibbs
    Keymaster

    @invisibleland Can you start by looking in your web browser’s Javascript Console for any problems? See https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors — go to step 3.

    #250803
    Paul Wong-Gibbs
    Keymaster

    @karolbielecki The German language pack has not been updated for BuddyPress 2.5, so that’s expected: https://translate.wordpress.org/projects/wp-plugins/buddypress/language-packs

    Please start a new support discussion, I don’t think your issues have anything to do with this thread.

    Henry Wright
    Moderator

    …but WordPress multisite and regular WordPress have different character restrictions in the username.

    Nice 🙁

    Paul Wong-Gibbs
    Keymaster

    No, but WordPress multisite and regular WordPress have different character restrictions in the username.

    Henry Wright
    Moderator

    Update: With reference to usernames on the wordpress.org forum:

    Since [dotorg11555] only a-z and 0-9 are allowed for usernames.

    Ref: https://meta.trac.wordpress.org/ticket/1308#comment:13

    I’m not sure if this change will extend to the WordPress platform and BuddyPress.

    Henry Wright
    Moderator

    sanitize_user() is used on the username at signup time so it should be alphanumeric characters plus _ space . – * and @.

    Ref: https://codex.wordpress.org/Function_Reference/sanitize_user

    #250778
    DCstyle
    Participant

    Hey Paul Gibbs, I did what you asked and the results in the mail i got from the site admin was :

    Email delivered – true

    Also i do get mails when users change stuff from there wordpress profile, for example in the backand i changed a users email and he got a mail of email change.

    My users do not get any mails from registering or activitys on the site they signed up for

    #250760
    name
    Participant

    Just adding to master topic tracking this.
    I’m seeing similar problems using Mandrill to send email.

    Here’s the plugin I’m using: https://wordpress.org/plugins/wpmandrill/
    I’ve got version 1.33 installed.
    Wordpress 4.4.2, Buddypress 2.5, Single Instance wordpress running on nginx

    #250759
    name
    Participant

    Paul, here’s the plugin I’m using: https://wordpress.org/plugins/wpmandrill/
    I’ve got version 1.33 installed

    Henry, I believe they did, and now require a mailchimp account (or will soon) to use it.

    Paul Wong-Gibbs
    Keymaster

    I don’t know how easy this might be to change at the moment – I think someone would have to write a small plugin – but we are tracking this feature request at https://buddypress.trac.wordpress.org/ticket/5500 for inclusion in a future BuddyPress release.

    #250734
    Paul Wong-Gibbs
    Keymaster

    @fidelleon Thanks for testing!

    Support for “WP-Mail-SMTP” and “Easy WP SMTP” will be fixed in BuddyPress 2.5.1.
    See https://buddypress.trac.wordpress.org/ticket/6945 for tech details.

    #250732
    Paul Wong-Gibbs
    Keymaster

    Support for “WP-Mail-SMTP” and “Easy WP SMTP” will be fixed in BuddyPress 2.5.1.
    See https://buddypress.trac.wordpress.org/ticket/6945 for tech details.

    Note that filters like wp_mail_from will continue to not be supported. See previous posts for how to implement the change in new versions of BuddyPRess.

    #250714
    shanebp
    Moderator

    Please use the code button when sharing code.

    The fields field_id and field_value do not exist in the function you are attempting to filter.
    See this for accepted fields:
    https://buddypress.trac.wordpress.org/browser/tags/2.2.1/src/bp-members/bp-members-template.php#L453

    I think you want this field retval['include'].

    Something like:

    function see_woman_gender( $retval ) {
    	global $wpdb;
    
    	$field_id = 3;
    	$field_value = 'Woman';
    	
    	$query = "SELECT user_id FROM " . $wpdb->prefix . "bp_xprofile_data WHERE field_id = " . $field_id . ' AND field_value = ' . $field_value;
    
    	$woman_ids = $wpdb->get_col( $query );
      
    	if ( !empty( $woman_ids ) ) 
    		$retval['include'] = $woman_ids;
    
    	return $retval;
    }
    add_filter( 'bp_after_has_members_parse_args', 'see_woman_gender' );

    There are field re meta data; I don’t think they work with profile data.
    But you could try this and let us know if it works:

    function see_woman_gender( $retval ) {
         $retval['meta_key'] = '3';
         $retval['meta_value'] = 'Woman';
     
        return $retval;
    }
    add_filter( 'bp_after_has_members_parse_args', 'see_woman_gender' );
    #250707
    Paul Wong-Gibbs
    Keymaster

    Hi @nkeatign

    It ought to be totally do-able, but you’ll need to write it. If BuddyPress detects that something has re-implemented WordPress’ wp_mail function (like the Sendgrid plugin does), then it’ll use the plain text version of the email and pass that to wp_mail to let the custom wp_mail implementation deliver the email.

    I am not aware of anyone who’s written a Sendgrid implementation for BuddyPress 2.5 yet, because the 2.5 release is still pretty new! Maybe you could write an integration plugin and be the first!

    Here’s what you need to do (we can document this process more formally if this works for you): — off the top of my head, not tested, be wary of unexpected dragons, etc —

    1) Add add_filter( 'bp_email_use_wp_mail', '__return_false' );
    2) Add add_filter( 'bp_send_email_delivery_class', function( $delivery_class ) { return 'Your_Class'; } );.

    These steps tell BuddyPress to always use its own email APIs, and tell it to use the class named Your_Class to handle the email delivery. The default delivery class is BP_PHPMailer which uses PHPMailer. I strongly suggest you use it as a reference for implementing a Sendgrid implementation.

    Your_Class needs to implement the interface BP_Email_Delivery which provides a method bp_email(), which receives a BP_Email object. Everything about the email is contained inside the BP_Email object.

    What your bp_email() method will need to do is call the Sendgrid’s plugin email-sending function. You can get all the information you need (recipients, HTML body, plain text body, etc) from the BP_Email object.

    #250705
    fidelleon
    Participant

    Hello,

    I agree having more betatesters would be fine but sometimes it’s difficult when you just manage only one Buddypress site.

    I’m having the same problem, the activation mail is not being sent since I updated. I have activated full debug mode (E_ALL and Display_errors) but nothing shows in the error log.

    Besides, I had overriden the normal activation mail in my child’s theme’ functions.php. After it stopped working I did a grep and saw the function I was trying to use was in the v2.5 deprecated list, so I commented out all the overriding code.

    I’m using the Easy WP SMTP plugin, the sender mails are good ones both in the plugin and the main WordPress configuration, and it can receive mails.

    #250700
    danbp
    Participant

    Yep, now it’s clearer. But sorry, I don’t know about a way to get some groups on main site and some others only on a secondary site.

    Group should be intended as members group. And a group is not a site. It is just a bunch of members attached to a group.

    Also, a group is not a blog and that’s why you get on a multisite install several blogs who share the same members, belonging eventually to differents groups. What and wherever the install is on main or seconday blog.

    Members are all in the same DB table and WP doesn’t share them by groups, but by username > blog authors…

    As you already know, BuddyPress comes with a member directory and a group directory. And on a multisite(aka network), a blog directory. But basically, all 3 cases are related to members, not to blog. There is no relation between a blog and a group. You can eventually install a blog into a group (buddypress group blog plugin), but you can’t install a group into a specific blog (outside the one where BP is activated). A group is not a blog.

    On codex it is specified: buddypress root blog (the one you get from WordPress) or buddypress root blog on secondary site.

    In other words, It should go to the secondary site. is not possible.

    But i can be completely wrong. 😉

Viewing 25 results - 4,776 through 4,800 (of 22,602 total)
Skip to toolbar