Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 14,051 through 14,075 (of 94,561 total)
  • Author
    Search Results
  • merxhanemini
    Participant

    Hello,

    I am trying to add a custom activity action and add it to the database after a form is submitted. The activity does not show on the activity stream and it is not added on the database.

    I can’t figure out why. Here is my code below first I use the bp_activity_set_action and bp_activity_add inside the nen_register_activity_actions action as suggested on the documentation, I define the component id-s and callback but can’t figure out why the the activity is not registred and not added on the database.

    Thank you to everyone for the help

    
    add_action("gform_after_submission_79", "nen_update_date_time_treaty", 10, 2);
    function nen_update_date_time_treaty($entry, $form) {
    
            $user_id = get_current_user_id();
            $treaty_date =  date('Y/m/d');
        
            $status = rgar( $entry, '4.1' );
           // var_dump($status);
    
            
            if ($status == '1') {
                //global $bp;
                
            
                //get the current user link with First Name and last name
                // $buddypress_link = bp_core_get_userlink( bp_loggedin_user_id(), $no_anchor = false, $just_link = false ); 
                // //post buddypress activity
                // bp_activity_post_update(array('content' =>"$buddypress_link has ratified the <a href='/ratify-new-earth-treaty' target='_blank' class='fancybox'>New Earth Treaty</a> ", 'user_id' => bp_loggedin_user_id()));
                	 function nen_register_activity_actions() {
    					global $bp, $wp_query;
    					$bp = buddypress();
    					
    					/* arguments are :
    					- 'component_id', 'component_action_type' to use in {$wpdb->prefix}bp_activity database
    					- and 'caption' to display in the select boxes */
    						bp_activity_set_action(
    							$bp->activity->id,
    							'nen_treaty_ratified',
    							__( 'Ratified new earth treaty', 'buddypress' ),
    							'bp_activities_format_activity_action_left_group',
    							__( 'Members Ratified', 'buddypress' ),
    							array( 'activity', 'group', 'member', 'member_groups' )
    						);
    
    					//$activity_content = 'ACTIVITY CONTENT';
    					$this_user_profile_url = bp_core_get_user_domain($wp_user_id);  
    					$action_String = "<a href=\"". $this_user_profile_url ."\">@" . bp_core_get_username($wp_user_id)."</a> has just ratified the new earth treaty";
    					//add activity to the database
    					bp_activity_add( array(     
    					    'user_id' => $wp_user_id,
    					    
    					    'action' => $action_String,
    					    // 'content' => $activity_content,
    					    'component' => 'nen_treaty_ratified_action',
    					    // 'primary_link' => '<a href="'.get_post_permalink($this_activity_id).'">' . $title . '</a>',
    					    'type' => 'custom_activity_update',
    					    'hide_sitewide' => false
    					));
    					
    				}
    
    			add_action( 'bp_register_activity_actions', 'nen_register_activity_actions' );
                update_user_meta($user_id, 'treaty_ratified', $status );
                update_user_meta($user_id, 'treaty_timestamp', $treaty_date );
            } else {
                delete_user_meta($user_id, 'treaty_timestamp');
            }
    }
    
    
    #257494

    Topic: Re-Tweet Activity

    in group forum Third Party Plugins
    Humiges
    Participant

    Hi,
    I’m wondering if is there a plugin for re-tweeting buddypress activity?
    I know there was some – but it’s not available anymore… I googled, looked at 100s of plugins and I couldn’t find anything.
    Could you recommend any?
    Thanks 🙂

    #257490
    Paul Wong-Gibbs
    Keymaster

    Hi @marco129

    BuddyPress emails are stored as custom post types. In wp-admin, Tools > BuddyPress, there is a tool that reinstalls BuddyPress emails. You normally want to do this if you’ve translated the email text *after* BuddyPress has been installed (it adds the text in as English).

    If you’ve translated the BuddyPress email text, and assuming Loco Translate works properly (I don’t know anything about it), then a re-install of the emails should fix it.

    abooster
    Participant

    How to prevent duplicate activity entries when bbPress replies edited?

    I tried this here:
    https://buddypress.org/support/topic/duplicate-activity-entries-when-bbpress-replies-edited/
    but it doesn’t work.
    Duplicate activity entries are still being posted after a forum reply has been edited.

    HELP!

    #257486
    fail2reap
    Participant

    Hi there, I am trying to redirect a user who signs up using the buddypress registration form to a register confirmation page.

    I have tried numerous code snippets from across the internet and some simply added a white bar to the top of my website, others did nothing and I am still stuck for a solution.

    Is there anyone that could help? I am simply looking to redirect users to complete registration to be redirected to another page.

    Is it possible to maybe make this standard functionality in BuddyPress in the future? Seems like a lot of people are trying to do something like this.

    #257484
    marco129
    Participant

    Hello,

    I have the same problem here. I use WP 4.5.3 and the Theme Woffice from ThemeForest and BuddyPress 2.6.2. I translate all with the plugin Loco Translate but some translations are not working. There ist nothing to repair. What can I do? Any idea?

    Best regards

    Marco

    #257478
    leandro_S
    Participant

    Hi there,

    I’m using buddypress as a recruiting platform where people have a form with xprofile fields to complete a complex CV. I want all the data (even members list) to be private, I just want the user to be able to see his own data and delete or modify it.
    Only admin should be able to see the member list in order to select profiles when necessary.
    To do so, I have set almost all fields to “Only me” and limited access to public areas in the following way:

    /* Prevent logged out users from accessing bp activity page and other profiles*/
    add_filter('get_header','nonreg_visitor_redirect',1);
    
    function nonreg_visitor_redirect() 
    {
    	global $bp;	
    	// The user ID of the currently logged in user
    	$current_user_id = (int) trim($bp->loggedin_user->id);
    
    	// The author that we are currently viewing
    	$author_id  = (int) trim($bp->displayed_user->id);
    	
    	if ( !current_user_can( 'manage_options' ) )
    	{		
    		if( bp_is_activity_component() || bp_is_groups_component() || bp_is_group_forum() || bp_is_page( BP_MEMBERS_SLUG ) || ($current_user_id !== $author_id && $author_id != 0))
    		{
    			wp_redirect( get_option('siteurl') );
    		}
    	}
    }
    

    For me it works fine, but I’m new at Buddypress, and I wonder if I’m missing something.
    Is there any backdoor that I have forgot?
    Should I limit something else?
    To preserve this info is crucial for me.

    #257477
    leandro_S
    Participant

    Hi there!
    I have a child theme in my WordPress and it has the appropiate buddypress folder inside.
    I have successfully done a custom buddypress>members>profile-loop.php and buddypress>members>members-loop.php, but I’m struggling to make buddypress>members>single>member-header.php work.
    Is there anything wrong with the files’s path?
    The changes I do in the file don’t show in the website afterwards.
    The original file come from buddypress>bp-themes…

    What am I doing wrong?

    #257474
    @mercime
    Participant

    Just to note that the “add friend and cancel friendship” tooltips, among other tooltips have been removed in BP 2.7 trunk (see #7090).

    #257471
    kstkeyes
    Participant

    I notice when I am logged into my s2member website as a paid user, if I click on my profile (Buddypress) and change password, it logs me out and then I can no longer log in. I opened up phpMyAdmin to look up my user record, and the password in the user_pass field was NOT encrypted. So in my buddypress profile I changed my password to ‘welcome’ (sans quotes..), and in the user_pass field in the WP users table, the password was not encrypted. Ideas?

    #257470
    elliottmina
    Participant

    Hello!

    I am setting up a new WP multisite for two sites, using different domains for each site. I would like to use BuddyPress on both sites, but share the same BuddyPress instance/data between each site. The two communities will have a lot of overlap, and one site may eventually subsume the other.

    Can BuddyPress do this? If so, what configuration do I need to look for?

    I found this link, but I am unfamiliar with the terminology. While the steps were clear, I am new and their overall intent was opaque to me.

    Installation in WordPress Multisite

    TIA!

    yahya92
    Participant

    Hello there,
    I know that this issue has been posted somewhere before but as far as I saw this issue has not been resolved yet
    in fact I am surprised that buddypress does not include such important feature !
    I want conditional fields on my registration page based on a choice the visitor makes
    for example
    Your job: dropdown box contains {engineer, translator}
    if the visitor selects engineer another dropdown will appear with the following options {computer, civil} else the child dropdown will have {En to Fr, En to Chinese}

    #257465
    maxlinux2000
    Participant

    Hi all,

    I need to add some extra fields to the “Request Membership” page for some private group, in order to permit to the administrators to make some pre-selections of candidates.

    The ideal was be that the groups administrators could create the list of fields by themselves

    someone know if exist a plugin for that?

    I tried “BuddyPress Groups Extras” but is not that I need.

    #257464

    In reply to: Bug list member

    fusion85
    Participant

    I now have control css file, that the file to edit is a BuddyPress CSS, is called “mentions.min” , it’s possible? :((

    #257461

    In reply to: Bug list member

    mrjarbenne
    Participant

    The BuddyPress Plugin doesn’t apply any style when you hover over a suggested @mention. When using a default WP theme (which is what the BP developers base their testing on) there is no hover effect on the suggested username. Which indicates that it is probably something in the style of the theme you are using that is applying this additional effect.

    The quickest way to see if it’s the theme or not, is to quickly change themes to one of the Twenty-xx themes that are packaged with WordPress, and if the hover effect disappears, you know where the problem is.

    That’s only part one. The next part is to figure out where in the theme the issue is and patch it.

    This might be helpful: https://www.studiopress.com/using-firebug/

    #257459

    In reply to: Bug list member

    fusion85
    Participant

    Hi friend 🙂

    In fact, I never thought to check the css, but I understand it depends on the issue (Sweetdate) or depends on BuddyPress plugin css?

    #257456
    mrjarbenne
    Participant

    I haven’t tried this plugin in a few years, and it hasn’t been updated for a while, but it once did exactly what you are talking about.

    https://wordpress.org/plugins/buddypress-activity-stream-bump-to-top/

    #257451
    mrjarbenne
    Participant

    The BuddyPress login widget is just a styled version of the WordPress login page. Hackers are still hitting the same database regardless of if they are finding your login widget — or more likely — blinding hitting your /wp-login.php page. wp-login isn’t being replaced here. If you are worried about brute force attacks, you should look into mechanisms created to protect WordPress (captchas, limit login attempts, etc.)

    Replacing the WP login infrastructure with something else is a whole other matter, and something you would need to do on the WP side. As @djpaul mentioned, BP leaves that side of the site to the existing BP user management system.

    #257450
    idichoo
    Participant

    Well… I would prefer buddypress to inform user on wrong user id or password entered instead of redirect user to wordpress login. It will encourage for hacking. Do you have any ways to so that it doe not redirect to wordpress login but show wrong userid or password.
    Thanks for your help.

    risinghowcase
    Participant

    I am trying to add extra fields into my registration form using the following code into the functions.php file in my child theme (One Social). The code should capture the data for woo commerce to use at the checkout.

    //Adding Registration fields to the form

    add_action( ‘register_form’, ‘adding_custom_registration_fields’ );
    function adding_custom_registration_fields( ) {

    //lets make the field required so that i can show you how to validate it later;
    $firstname = empty( $_POST[‘firstname’] ) ? ” : $_POST[‘firstname’];
    $lastname = empty( $_POST[‘lastname’] ) ? ” : $_POST[‘lastname’];
    ?>
    <div class=”form-row form-row-wide”>
    <label for=”reg_firstname”><?php _e( ‘First Name’, ‘woocommerce’ ) ?><span class=”required”>*</span></label>
    <input type=”text” class=”input-text” name=”firstname” id=”reg_firstname” size=”30″ value=”<?php echo esc_attr( $firstname ) ?>” />
    </div>
    <div class=”form-row form-row-wide”>
    <label for=”reg_lastname”><?php _e( ‘Last Name’, ‘woocommerce’ ) ?><span class=”required”>*</span></label>
    <input type=”text” class=”input-text” name=”lastname” id=”reg_lastname” size=”30″ value=”<?php echo esc_attr( $lastname ) ?>” />
    </div><?php
    }

    //Validation registration form after submission using the filter registration_errors
    add_filter( ‘woocommerce_registration_errors’, ‘registration_errors_validation’ );

    /**
    * @param WP_Error $reg_errors
    *
    * @return WP_Error
    */
    function registration_errors_validation( $reg_errors ) {

    if ( empty( $_POST[‘firstname’] ) || empty( $_POST[‘lastname’] ) ) {
    $reg_errors->add( ’empty required fields’, __( ‘Please fill in the required fields.’, ‘woocommerce’ ) );
    }

    return $reg_errors;
    }

    //Updating use meta after registration successful registration
    add_action(‘woocommerce_created_customer’,’adding_extra_reg_fields’);

    function adding_extra_reg_fields($user_id) {
    extract($_POST);
    update_user_meta($user_id, ‘first_name’, $firstname);
    update_user_meta($user_id, ‘last_name’, $lastname);
    update_user_meta($user_id, ‘billing_first_name’, $firstname);
    update_user_meta($user_id, ‘shipping_first_name’, $firstname);
    update_user_meta($user_id, ‘billing_last_name’, $lastname);
    update_user_meta($user_id, ‘shipping_last_name’, $lastname);
    }

    The code works fine until Buddypress is activated. The it just reverts to the usual wordpress log in with only the profile fields that are shown in the “Profile Fields” tab on the wordpress dashboard.

    I feel like I must be missing something obvious but it is driving me crazy! Any help would be enormously appreciated. Thanks!

    maryt66
    Participant

    Does BuddyPress comply with disability W3C standards? I have a client who needs a fully compliant website with forum features.

    Thanks

    Mary

    santhosh46
    Participant

    Hi Buddypress Team

    As of now when a user sends a private message to another user, it is inserted in the database with a id, thread_id, sender_id, subject, message and date_sent and foreach at the same user send message new subject there is a new thread id.

    How we can make a single thread id for every users.

    Basicly im looking for a way to display messaging the way facebook does it. If anyone could give me a hint or point me in the right direction i would be very grateful.

    #257374
    Paul Wong-Gibbs
    Keymaster

    BuddyPress doesn’t affect user authentication or password resets. We leave that to WordPress.

    WordPress’ lost password link can be found on the .com/wp-login.php screen. You can copy that link into your theme/navigation menu, etc, if you want it elsewhere.

    #257373

    In reply to: Adding Custom Emails

    Paul Wong-Gibbs
    Keymaster

    The error is “missing_email”, which happens when we get can’t find an email post in the database with the term “post_recieved_comment” (in our special bp-email-type taxonomy).

    First thing to do, is re-install the email; go to wp-admin Tools > BuddyPress, then choose the re-install email option. After this, go to wp-admin Emails, and see if you can see your custom email listed.

    If it doesn’t appear, please pastebin all the custom code you’ve added for this, and i’ll take a look. Thanks!

    #257371
Viewing 25 results - 14,051 through 14,075 (of 94,561 total)
Skip to toolbar