Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 20,301 through 20,325 (of 94,567 total)
  • Author
    Search Results
  • Rapforthemoment
    Participant

    Hello, Buddypress community. I have an issue I can’t seem to find the answer to.

    On this link, you’ll see my profile: http://rapforthemoment.com/emcees/admin/profile/

    The title colors for Base, Affiliate Program, and myCRED are all yellow. No matter what code I put in it won’t change. I want #cc0200 but can’t seem to get it to alter.

    Please assist me if possible. Thank you in advance for all your work and input!

    -Jeff

    #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

    sjaakkuil
    Participant

    Hello,

    I’m having trouble with buddypress, I can’t see the save buttons at the components and pages page. I get the error:

    The following active BuddyPress Components do not have associated WordPress Pages: Members, Activity Streams. Repair

    But i can’t repair it because I cant save it, I’ve tried to create blank pages with the titles of the missing pages.

    I can give you the following information:
    Version wordpress: 4.1.1.
    BuddyPress by first intall: I think it worked fine, but I messed up and I don’t remember exactly.
    Version BP: 2.2.1.
    Other plugins: Social Login
    Theme: Customizr
    Modified core: Yes I tried to copy it from another website of a friend of mine, where it worked correctly.. I think I need to reinstall BP but when I do I still get the same errors and settings.
    Host: GoDaddy
    Server running: Windows

    I hope someone can help me out. Looking forward to a reaction!

    Many Thanks

    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/

    #237228
    andrew55
    Participant

    I am using myCred and need the hooks for when the following actions are completed in Buddypress:

    Creating Profile Updates
    Adding Avatar
    Gaining New Friendships
    Adding New Comment

    Where might I find these?

    I found this link:

    BuddyPress Action Hook Sequence During Startup

    …but I’m not sure what specific actions I need.

    Thanks for any suggestions.

    #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.

    nkeatign
    Participant

    We are currently using the BuddyPress Follow plugin to allow users to follow authors and create their own feed of posts from authors they follow.

    I’m wonder if anyone has seen a way to apply the same functionality to topics/categories.

    A great example of this is elite daily (built on buddypress and they also use buddypress follow plugin). Example here: http://elitedaily.com/topic/march-madness/

    Any ideas?

    Thanks!

    #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!

    #237212
    yadigit
    Participant

    Hi guys. I hope someone can help me out here. I got this to work for the most part but im still having problems with reloading the page.
    I created a new profile sub nav.
    Ex

    
    function my_bp_nav_adder()
    {
    bp_core_new_nav_item(
       array(
         'name' => __('Wall Posts', 'buddypress'),
         'slug' => 'hidden-truths',
         'parent_url' => $bp->loggedin_user->domain . $bp->groups->slug . '/',
         'position' => 10,
         'show_for_displayed_user' => true,
         'screen_function' => 'my_hidden_truths',
         'item_css_id' => 'all-conversations',
         'default_subnav_slug' => true,		
       ));
      print_r($wp_filter); 
    }
    
    function my_hidden_truths() {
     add_action( 'bp_template_title', 'truth_wall_header_title' );
     add_action( 'bp_template_content', 'truth_wall_content' );
     bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/bpwall/index' ) );
    }
    
    function truth_wall_header_title() {
    #stuff
    }
    
    function truth_wall_content() {
    #stuff
    } add_action( 'bp_setup_nav', 'my_bp_nav_adder' );

    It works. But not 100%
    This is what im aiming to do.
    Eg..
    $varibel = $_POST['somedata'];
    (POST[‘somedata’] will be data drawn from the database. a number to be exact.)

    
         'name' => __('Wall Posts', 'buddypress'),
         'slug' => 'hidden-truths',
         'parent_url' => $bp->loggedin_user->domain . $bp->groups->slug . '/post/$varible',
         'position' => 10,
         'show_for_displayed_user' => true,
         'screen_function' => 'my_hidden_truths',
         'item_css_id' => 'all-conversations',
         'default_subnav_slug' => false,		
       ));
    

    I got it to work, but I when I refresh the page. I get a 404. I understand that the data is not sticking and once you refresh the page, the data gets released..

    Is there anyway to use data from the database and enter it in the slug?

    Kinda like what it’s like for the members url. It’s not hard coded and it’s data drawn from the database.
    /../members/admin/
    /../members/users1/
    /../members/users2/
    Regardless of what user you go to, the same data (for the most part) is loaded, but if you change the url from users1 to admin, The data for admin is loaded.

    I do apologize if this isn’t enough information.
    Thank you!

    #237211
    Piotr Kunicki
    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.

    #237199
    Matthias
    Participant

    In buddypress forums the @username autolinks to the usernames profile.
    Is this normal behavior or a plugin?
    The @mention link to profile does not work in my bbpress forum. It works in my buddypress activitiy stream.
    Any ideas to get @mention link to profile working in my bbpress site?
    Thanks
    Matthias

    #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;)

Viewing 25 results - 20,301 through 20,325 (of 94,567 total)
Skip to toolbar