Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 36,901 through 36,925 (of 69,106 total)
  • Author
    Search Results
  • #119902
    Mike84
    Member

    I should add that wordpress is installed in a development folder, /web. BuddyPress is located in /web/wp-content/plugins.

    #119899
    LPH2005
    Participant

    BP 1.2.10 installed on two wp 3.2.1 networked sites without issue.

    Congratulations on working so hard on BP 1.5. Now – if there was only a way to get the activity stream to be “real-time” … :)

    #119898
    acurran
    Member

    My 3 step solution to this problem is as follows:

    1. Install plugin – BuddyPress Pending Activations (https://wordpress.org/extend/plugins/buddypress-pending-activations/)
    2. Make hack to plugin function bp_pending_activations_admin() so that it sends an email when a user is activated:
    $resendusers = $wpdb->get_results( $wpdb->prepare( “SELECT u.ID, u.user_login, u.user_email, m.meta_value FROM ” . CUSTOM_USER_META_TABLE . ” m, “. CUSTOM_USER_TABLE .” u WHERE u.ID = m.user_id AND m.meta_key = ‘activation_key’ AND u.ID IN ({$userids})” ) );

    foreach ( $resendusers as $resend ) {

    /* Activate the signup */
    $user = apply_filters( ‘bp_core_activate_account’, bp_core_activate_signup( $resend->meta_value ) );

    /* If there was errors, add a message and redirect */
    if ( $user->errors ) {
    echo ‘There was an error activating this account, please try again: ‘. $resend->user_login;
    } else {
    $to = $resend->user_email;
    $subject = “Your ?????? Account Has Been Activated!”;
    $message = “Your account has been activated. Go to http://??????/ and sign in with the username and password that you created when you signed up.nnWelcome to ?????!”;
    $admin_email = get_site_option( “admin_email” );
    $from_name = “??????????”;
    $message_headers = “MIME-Version: 1.0n” . “From: “{$from_name}” n” . “Content-Type: text/plain; charset=”” . get_option( ‘blog_charset’ ) . “”n”;
    wp_mail( $to, $subject, $message, $message_headers );
    }
    3. Redirect activation email to admin (to use as a noitification for admin instead of automatically sending activition key to user) by adding this to functions.php:
    function change_activation_email_to($content) {
    return get_site_option( “admin_email” );
    }
    add_filter( ‘bp_core_activation_signup_user_notification_to’, ‘change_activation_email_to’);

    So the when a new user signs up, they do not get any activation email. That goes to the admin instead. You will need to change the wording in your template to let the user know that they have to wait for manual approval. Admin logs in to WP admin and goes to Pending Activitations and activates the user. An email is sent to user to let them know they have been activated.

    #119891
    Boone Gorges
    Keymaster

    BuddyPress 1.5 has not been released in a stable version yet. We are in Release Candidate status. https://buddypress.org/2011/09/buddypress-1-5-release-candidate-1-and-buddypress-1-2-10/

    #119890
    Thorsten :-)
    Participant

    Where can I upgrade from BP 1.2.10 to 1.5? WP 3.2.1 shows me version of BP 1.2.10 only.

    #119888
    Boone Gorges
    Keymaster

    @mercime ‘s method will work correctly. But, as of https://buddypress.trac.wordpress.org/changeset/5124, it shouldn’t be necessary. The method that @alanchrishughes suggests should work properly. Please ensure that you’re running 1.5-rc-1, or an svn checkout of at least r5124.

    #119880
    rossagrant
    Participant

    Very excited for 1.5!

    Counting down the days to a full public release!

    #119868
    @mercime
    Participant
    #119867
    @mercime
    Participant

    @kkradel if you used BP template pack plugin, check out the selectors used in bp.css file as a guide to start you off – https://plugins.svn.wordpress.org/bp-template-pack/tags/1.1.4/bp.css

    side note: nope, your site url didn’t show up in update

    #119866
    Quint
    Participant

    So far, so good. Thanks, guys!!!!!

    #119863
    @mercime
    Participant
    #119862
    @mercime
    Participant

    Three cheers!

    #119861
    @mercime
    Participant

    @idahoannie @kkradel after installing BP Template Pack plugin, you need to go through the process including imposing your active WP theme’s HTML structure onto the BP template files transferred into your WP theme’s folder in server.

    https://codex.buddypress.org/theme-development/wordpress-to-buddypress-theme/
    https://codex.buddypress.org/theme-development/bp-template-pack-walkthrough-level-easy-2/

    If you require further assistance:
    – open up your theme’s page.php file, select all and copy
    – go to pastebin.com and paste the code, click on submit button
    – copy the generated pastebin.com url and post here.

    #119851
    NKTricker
    Member

    1. Also latest version of WP, and BP. WordPress is installed in a sub directory.
    Everything was just installed today. So latest version on everything.
    No other plugins other than bbPress and Buddy Press installed.
    Using the standard Buddy Press theme. I notice that you can’t really create separate forum in the bbPress version installed in BuddyPress. Is the internal version limited in someway or something???
    Please help, and thanks in advance.

    #119850
    NKTricker
    Member

    Also, I don’t really like the bbPress forums at all. It seems very very limited and you can’t make forum categories with it. Is there anyway to get the BuddyPress forums working with phpbb? I tried the gateway plugin, but it corrupted my database and I couldn’t find the correct files to use with it.

    #119848

    In reply to: Profile rating system

    @christophg

    I’m glad to help! I’m sure some of my ideas are not the cleanest way to solve the problems, but they seem to work. And as it seems difficult to get answers to questions here sometimes, I try to help where I can.

    Let me know how things go after you get a chance to try them out. Ps. the code I pointed to in that link, if it is not clear- I used it to create an ‘if’ statement.

    Peace.

    sdls
    Member

    understood.. thanks again Boone!

    Boone Gorges
    Keymaster

    The functions are not new – the whole point of a framework like BuddyPress, from the beginning, has been so that you *don’t* have to reinvent the wheel :)

    I think that for your purposes you can use `xprofile_get_field_data()`. See bp-xprofile/bp-xprofile-functions.php.

    sdls
    Member

    thanks @boonebgorges !

    WOW searching through all these new functions will be time consuming at first, but I’m sure will make things better over the long term. are these new to BP 1.5?

    I’m so used to just using SQL to solve my problems these seems way complicated… (above my head and slightly to the left) So let’s say I just want to check for the whether a record exists, is it suggested that these BP functions should be used for all database communication?

    for example… this checks for the existence of the field in the first place

    `
    $sql4 = “SELECT *
    FROM wp_bp_xprofile_data XP
    WHERE XP.user_id = $iUserID”;
    $acheck_for_user_xprofile = $wpdb->get_col( $wpdb->prepare($sql4));
    if ($acheck_for_user_xprofile) {
    $check_for_user_xprofile_answer = “yes“;
    } else {
    $check_for_user_xprofile_answer = “no”;
    }
    `

    Boone Gorges
    Keymaster

    That’s what `xprofile_set_field_data()` is for.

    `xprofile_set_field_data( 1, $iallusersUserID, $nicename );`

    No need to use $wpdb!

    #119840
    lexayo
    Member

    hum… do you know how to follow @r-a-y about this plugin? is he working on this already?
    thank you all

    #119839

    In reply to: adding group fields

    4ella
    Participant

    @qrahaman yes , group fields are already working for us on that link and I got from @brajesh http://www.buddydev.com even better solution for group custom fields (maybe non paid members can’t see it) :
    http://buddydev.com/forums/topic/displaying-group-custom-fields-in-group-headerphp
    I didn’t have a time till now to check it out , but as soon as possible I can I will check it out and if I understood it well it should help us to display whatever we wish if group value is EMPTY.

    and as far as I know @slaffik have said that his plugin in future versions will work exactly as you’ve said (at least I wish it will work like that – you’ve perfectly described my wish how slaffik’s plugin should work.)

    #119831

    In reply to: Profile rating system

    christophg
    Member

    Hey @embergermedia,
    As usual your advise dose not disappoint! I’m in the process of moving and also the creation of s second business site so as soon as I can I’ll give you an update on how it all works out! Ill also continue to mull over your problem and see if I can help at all! Talk to you soon!

    sdls
    Member

    Thanks both for the feedback!… looking into xprofile_insert_field() in bp-xprofile/bp-xprofile-functions.php. This appears to be the function for adding a new profile field to the BP system.

    `function xprofile_insert_field( $args = ” ) {
    global $bp;

    extract( $args );

    /**
    * Possible parameters (pass as assoc array):
    * ‘field_id’
    * ‘field_group_id’
    * ‘parent_id’
    * ‘type’
    * ‘name’
    * ‘description’
    * ‘is_required’
    * ‘can_delete’
    * ‘field_order’
    * ‘order_by’
    * ‘is_default_option’
    * ‘option_order’
    */

    // Check we have the minimum details
    if ( !$field_group_id )
    return false;

    // Check this is a valid field type
    if ( !in_array( $type, (array) $bp->profile->field_types ) )
    return false;

    // Instantiate a new field object
    if ( $field_id )
    $field = new BP_XProfile_Field( $field_id );
    else
    $field = new BP_XProfile_Field;

    $field->group_id = $field_group_id;

    if ( !empty( $parent_id ) )
    $field->parent_id = $parent_id;

    if ( !empty( $type ) )
    $field->type = $type;

    if ( !empty( $name ) )
    $field->name = $name;

    if ( !empty( $description ) )
    $field->description = $description;

    if ( !empty( $is_required ) )
    $field->is_required = $is_required;

    if ( !empty( $can_delete ) )
    $field->can_delete = $can_delete;

    if ( !empty( $field_order ) )
    $field->field_order = $field_order;

    if ( !empty( $order_by ) )
    $field->order_by = $order_by;

    if ( !empty( $is_default_option ) )
    $field->is_default_option = $is_default_option;

    if ( !empty( $option_order ) )
    $field->option_order = $option_order;

    return $field->save();
    }
    `
    All I really need to do is add a little record into the existing “wp_bp_xprofile_data” table

    This below code works however it’s definately not Open source friendly or BP friendly

    `

    // grab this users nicename

    $user = get_userdata( $iallusersUserID );
    $nicename = $user->user_nicename;
    $last_udpated = date(‘Y-m-d H:i:s’);

    // create a new record in bp_xprofile_data and add the nicename

    $wpdb->insert(
    ‘wp_bp_xprofile_data’,
    array(
    ‘field_id’ => 1,
    ‘user_id’ => $iallusersUserID,
    ‘value’ => $nicename,
    ‘last_updated’ => $last_udpated
    ),
    array(
    ‘%d’,
    ‘%d’,
    ‘%s’,
    ‘%s’
    )
    );
    `

    Any thoughts? Thanks again!

    Paul Wong-Gibbs
    Keymaster

    We fixed this in BuddyPress 1.5

Viewing 25 results - 36,901 through 36,925 (of 69,106 total)
Skip to toolbar