Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 13,451 through 13,475 (of 69,016 total)
  • Author
    Search Results
  • #237261
    landwire
    Participant

    ok, in the end I used this to solve the problem, as I ran into issues when trying to save an array of arrays with the bp functions. Just in case someone is looking for this as well:
    First: I stripped the slashes before saving serialized data to the DB with a filter
    Second: I had to copy/create a different xprofile_get_field_data() function, as it would not get complex serialized values (array of arrays). Single arrays it works ok, but not nested arrays. Basically I had to remove all those filters that were called during xprofile_get_field_data().
    It’s hacky, but I tried many options. This seems to be the one that worked in the end.

    /**
     * Fetches profile data for a specific field for the user.
     *
     * When the field value is serialized, this function unserializes and filters
     * each item in the array.
     *
     * @package BuddyPress Core
     * @param mixed $field         The ID of the field, or the $name of the field.
     * @param int $user_id         The ID of the user
     * @param string $multi_format How should array data be returned? 'comma' if you want a
     *                             comma-separated string; 'array' if you want an array
     * @uses BP_XProfile_ProfileData::get_value_byid() Fetches the value based on the params passed.
     * @return mixed The profile field data.
     */
    function lw_xprofile_get_field_data( $field, $user_id = 0, $multi_format = 'array' ) {
    
    	if ( empty( $user_id ) ) {
    		$user_id = bp_displayed_user_id();
    	}
    
    	if ( empty( $user_id ) ) {
    		return false;
    	}
    
    	if ( is_numeric( $field ) ) {
    		$field_id = $field;
    	} else {
    		$field_id = xprofile_get_field_id_from_name( $field );
    	}
    
    	//d($field_id, 'The field ID ><><><><><>><>>>>>>>_+++++++++++++');
    	if ( empty( $field_id ) ) {
    		return false;
    	}
    
    	$values = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( $field_id, $user_id ) );
    	//d($values, 'The values <><><>>><><><><><><><><>><');
    
    	return $values;
    }
    
    add_filter( 'xprofile_filtered_data_value_before_save', 'lw_strip_slashes_before_db', 10, 3);
    
    function lw_strip_slashes_before_db($filtered_value, $value, $data_obj ) {
    	//d($filtered_value, '$filtered_value');
    	//d($value, '$value');
    	//d($data_obj, '$data_obj');
    	if ( is_serialized($value) ) {
    		$filtered_value = stripslashes($filtered_value);
    	}
    	return $filtered_value;
    }
    #237259
    andrew55
    Participant

    Thanks for the clarification, although I’m still a little lost.

    Upon further research, the only BuddyPress actions I really need are:

    1. created activity wall update in profile
    2. created activity wall comment in profile

    I’ve been digging through the myCred plugin files, and have found these:

    1. bp_activity_posted_update
    2. bp_activity_comment_posted

    Just to clarify, these are the action hooks used in BuddyPress for when a user posts an activity update or activity comment? Thanks for any insights.

    #237247
    shanebp
    Moderator
    #237245
    danbp
    Participant

    You’re connected to BuddyPress support forum, where you can get some help. There is no other way for that.

    Nobody here can debug your site at your place. If you’re unable to do that, you can use BP Job Board to hire somebody.

    No One Seems to be able to assist me here.

    πŸ™„ You apparently use a premium theme (sixteen plus), which make things more difficult anyway, as we have no free access to it’s code. And you use a lot of plugins… And perhaps some custom function in your theme functions.php or bp-custom.php.

    No idea what happens and i’m unable to reproduce what you describe.

    See here if you can apply what is described by @r-a-y.

    danbp
    Participant

    hi @mcpeanut,

    this snippet useable from BP 2.0.1 and above, can be added to bp-custom.php
    it will hide the field ID 1 which is the default Name field to all, except site admin.

    it will also avoid the user to edit that field. So if you use this, i recommand you tell them on register page that once they entered a name it they could change it later. You can than ask them $$$$ to do it. πŸ˜€

    function bpfr_hide_profile_field_group( $retval ) {
    	if ( bp_is_active( 'xprofile' ) ) :	
    	
    	// hide profile group/field to all except admin	
    	if ( !is_super_admin() ) {		
    		//exlude fields, separated by comma
    		$retval['exclude_fields'] = '1';  
    		//exlude field groups, separated by comma
    		$retval['exclude_groups'] = '1'; 			
    	} 
    	return $retval;		
    	
    	endif;
    }
    add_filter( 'bp_after_has_profile_parse_args', 'bpfr_hide_profile_field_group' );

    More here:

    Using bp_parse_args() to filter BuddyPress template loops

    #237240
    Reginald
    Participant

    Is there a way to contact Buddypress directly? This Has been going on way to long not to have this resolved. No One Seems to be able to assist me here.

    #237239
    Reginald
    Participant

    Here is my issue once again

    I am using wordpress 4.1.1 and buddypress Version 2.2.1

    When I try to create a new Group it allows me to Put in the name of the Group, and when I hit next, it shows in the browser like it goes to the settings page, but it does not bring up any of the settings.

    Whem I click next nothing comes up. I can type in the browser this link ../groups/create/step/group-avatar/
    and it will act like it’s on the Avator page, but nothing on the page like the settings page.

    When I maually type in the browser groups/create/step/group-invite/ it acts as it going to the invite page but again nothing comes up. When I click Finish it goes back to the Details Page.

    When I type in the Group Name in the Browser it appears there, but it will not all me to create any new ones. That group still shows like it needs to be finished, although it appears in my groups.

    I have tried to, switch to twenty fourteen and still getting the same error so I tried to uninstall buddypress, deleting it and reinstalled it, and I am still getting that error. My Tested one of my other WP Sites the same version of BP & WP and it creates new groups just fine amy suggestions.

    #237235
    danbp
    Participant

    hi @sjaakkuil,

    is WordPress correctly installed and running ?
    As you use a windows server, you may have some extra config operation. 5see godaddy’s doc for that)
    Also it is not recommanded to use a preinstalled WP or BP (if exist). Prefer manual upload by FTP.

    Once you’re sure WP is correctly setup and running, deactivate any third party elements first. Then activate 2015 theme and BP and setup BP pages if they aren’t created automatically.

    Also, don’t forget to set your permalinks to something other than default.

    https://codex.wordpress.org/Installing_WordPress

    Installation

    danbp
    Participant

    See your theme or 3th party plugin documentation, BP has no star button for favorites.

    https://buddypress.org/support/topic/favorite-button-in-the-post/
    https://wordpress.org/plugins/wp-favorite-posts/

    #237227
    Matthias
    Participant

    Hi @danbp,
    no I mean the link to the profile shown here in the buddypress forum replies.
    When I write @danpb it is linked to your profile!
    Just want the same in my bbpress install, but the code in functions.php above does not work…

    #237226
    5high
    Participant

    Ok I’ve searched the BP codex, all the BP forum again and the i/net and basically got nowhere. I’ve tried a few more times and new (test) members are still having email notification ON by default, so it’s definitely not working.

    I’ve tracked down 2 files that seem to be involved in this and they are:-
    buddypress/bp-notifications/bp-notifications-functions.php
    buddypress/bp-activity/bp-activity-notifications.php

    Please can someone help me here? From searching it’s obviously a common request – but no answer anywhere!

    Waiting hopefully…

    #237224
    shanebp
    Moderator

    Thank you for the report.

    What happens if you activate it per site instead of networked ?

    Did you note that is

    Compatible up to: WP 4.1.1 / BP 2.2.1

    ?
    So wordpress-4.2-beta3 is out of range.

    Please continue this discussion on the support forum for this free plugin.

    #237222
    disha76
    Participant

    wordpress-4.2-beta3 – Multisite subfolder install,
    Default Twentyfifteen theme
    Buddypress 2.2.1
    Latest version of this plugin
    Network Activated this plugin

    A buddypress member can see the Events tab in profile and can fill up the Events form, but on submission the Event is not saved – empty form is returned. Thus the members cannot use Events at all.

    I have assigned all Roles the permission to create Event. See this http://s18.postimg.org/5wmavsiop/event.png
    The site super admin can create Event but NO map is seen.

    If you have any Multisite subfolder demo with latest WP 4.2beta3 can you kindly set up a demo link?
    Thank you.

    techguy123
    Participant

    Hi, the thing is when I install the plugin, it messes up my login pages.

    However, I’ve sort of managed to figure something out. The following code, when placed in bp-custom.php file, does exactly what I need it to do. Just ONE thing, is that it doesnt show the “Confirm Email” field during the first try. So when you click the “Complete signup” button, the page reloads and THEN it says confirm email field is missing. So on the second try, a user can successfully fill in all the fields and sign up. Would you know how to make this label “Confirm Field” show up when the page loads the first time? Thanks for your assistance, greatly appreciate it!! πŸ˜€

    <?php
    
    function registration_add_email_confirm(){ ?>
        <?php do_action( 'bp_signup_email_first_errors' ); ?>
        <input type="text" name="signup_email_first" id="signup_email_first" value="<?php
        echo empty($_POST['signup_email_first'])?'':$_POST['signup_email_first']; ?>" />
        <label>Confirm Email <?php _e( '(required)', 'buddypress' ); ?></label>
        <?php do_action( 'bp_signup_email_second_errors' ); ?>
    <?php }
    add_action('bp_signup_email_errors', 'registration_add_email_confirm',20);
     
    function registration_check_email_confirm(){
        global $bp;
     
        //buddypress check error in signup_email that is the second field, so we unset that error if any and check both email fields
        unset($bp->signup->errors['signup_email']);
     
        //check if email address is correct and set an error message for the first field if any
        $account_details = bp_core_validate_user_signup( $_POST['signup_username'], $_POST['signup_email_first'] );
        if ( !empty( $account_details['errors']->errors['user_email'] ) )
            $bp->signup->errors['signup_email_first'] = $account_details['errors']->errors['user_email'][0];
     
        //if first email field is not empty we check the second one
        if (!empty( $_POST['signup_email_first'] ) ){
            //first field not empty and second field empty
            if(empty( $_POST['signup_email'] ))
                $bp->signup->errors['signup_email_second'] = 'Please make sure you enter your email twice';
            //both fields not empty but differents
            elseif($_POST['signup_email'] != $_POST['signup_email_first'] )
                $bp->signup->errors['signup_email_second'] = 'The emails you entered do not match.';
        }
    }
    add_action('bp_signup_validate', 'registration_check_email_confirm');
    ;
    
    ?>
    
    #237214

    In reply to: Email notification

    5high
    Participant

    Hi,
    I’m after the same thing – see my post ( https://buddypress.org/support/topic/turn-off-email-notifictions-in-functions-php/#post-237213 ) which has some sode suggestions from a previous thread. Unfortunately I could get it to work yet – maybe you could try it?
    It’s a popular request, but no answer easily found – pity!

    #237211
    kuperman87
    Participant

    It’s known issue and will be fixed in WordPress 4.2

    More informations may be found in this tread:
    https://buddypress.org/support/topic/version-2-2-0-and-is_page/#post-234315

    Thanks for the help, problem solved.

    Jaremilus
    Participant

    no, because i can’t edit only few of that (B group) req. fields when i logged as admin…

    my registration looks like this: https://buddypress.org/support/topic/how-to-create-register-form-with-selectbox-and-hidden-fields/ (here C group)

    haagsekak
    Participant

    @danbp thanks for the tip. That activity sticky gives me another option to enhance the site, but I still need to have the ability to have new activity on past updates/posts bump to the top of the activity stream.

    The only plugin that seems to do everything we need is
    But it hasn’t been updated since 2011 and after testing it doesn’t work on my site.

    I see many others who are asking for the same thing so not sure why there is nothing else available.

    Do you have any suggestions?

    Thanks for your input.

    #237198
    nathoudu38
    Participant

    I solved the problem but it removes all comments on all pages. So I spent my pages where I wanted to comment on articles.

    Page.php in your theme:
    <?php // comments_template('',true); ?>

    // put the comments in the code.

    If I suppressed this line, the bar at the top buddypress don’t work and menu …

    Thank you;)

    #237194
    danbp
    Participant

    Don’t know any other source than Trac or Git mirror.

    If you need to know such precise things, almost constantly, the best for you would to connect to by SVN or Git.

    So you will be informed in real time which BP file is modified.

    That said, templates are relatively quiet in regard of more in-depth core files….
    And on Trac you have a revision number, so it’s easy to follow. And even on codex.

    Other:
    Following dev’s blog: bpdevel.wordpress.com
    git clone git:// buddypress.git.wordpress.org/
    http://teleogistic.net/2015/03/the-number-one-reason-to-start-using-git-interactive-staging/

    #237189
    danbp
    Participant

    This is the path to all BP templates /bp-templates/bp-legacy/buddypress/ and it would better that it stays untouched.

    You can update manually from Trac or download the latest BP from plugin repo.

    Your custom theme should be in WP’s theme folder and containing a /buddypress/ folder with all files you have modified. In brief, a copy from what you find in bp-legacy. You use only the files you want to modify, not the whole bp-legacy content.

    That way, you can update BP without loosing anything and adapt, or not, your own templates.

    See template hierarchy, if it’s unclear.

    #237188
    danbp
    Participant

    BuddyPress doesn’t handle post comments.
    As you’re certainly using a premium theme (your picture is stored by that theme support), they have to tell you how you can deactivate those comments on BP pages.
    You paid a licence with included support. And we have no free access to the theme, so it’s quite impossible to tell you exactly what to do.

    If they don’t give you support, change your theme or find by yourself. Sorry for that.

    Technically, you have to create a child-theme first. Add a copy of the original page.php of your theme and remove the part related to comments.

    Which part precisely, or even a specifif function of your theme is impossible to say, as we have no information. And you didn’t tell which theme you’re using.

    Search for similar question on the forum, you’ll probably find some.

    #237183
    nathoudu38
    Participant

    Did you find the problem?

    I have the same problem except that it is on all buddypress pages. That comments are enabled or not.
    Example photo.

    problem

    This comes from an incompatibility with my theme Foodrecipes.

    It can be necessary to remove the buddypress code comments?

    I am looking for … Let me know!

    Thank you!

    #237182
    Reginald
    Participant

    I am using wordpress 4.1.1 and buddypress Version 2.2.1

    When I try to create a new Group it allows me to Put in the name of the Group, and when I hit next, it shows in the browser like it goes to the settings page, but it does not bring up any of the settings.

    Whem I click next nothing comes up. I can type in the browser this link http://www.earndailypay.com/groups/create/step/group-avatar/
    and it will act like it’s on the Avator page, but nothing on the page like the settings page.

    When I maually type in the browser groups/create/step/group-invite/ it acts as it going to the invite page but again nothing comes up. When I click Finish it goes back to the Details Page.

    When I type in the Group Name in the Browser it appears there, but it will not all me to create any new ones. That group still shows like it needs to be finished, although it appears in my groups.

    I have tried to, switch to twenty fourteen and still getting the same error so I tried to uninstall buddypress, deleting it and reinstalled it, and I am still getting that error. My Tested one of my other WP Sites the same version of BP & WP and it creates new groups just fine amy suggestions.

    #237180
    Henry Wright
    Moderator

    Can this be reported to BuddyPress dev team?

    You can report bugs using Trac:

    https://buddypress.trac.wordpress.org/

    Your login details will be the same as those you use here in the forums.

Viewing 25 results - 13,451 through 13,475 (of 69,016 total)
Skip to toolbar