Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 19,176 through 19,200 (of 94,540 total)
  • Author
    Search Results
  • #240770

    In reply to: Member import

    David Cavins
    Keymaster

    Hi Zoe-

    My memory is that users need to have usermeta with the key last_activity and a value like 2015-06-16 13:29:04 to reliably appear in the members directory. You can “repair” this value once the users are imported by visiting (from wp-admin) Tools > BuddyPress then select Repair user "last activity" data. In fact, it probably wouldn’t hurt to run all of those repair tools one at a time since you’ve got a bunch of untracked users.

    #240767

    Topic: Member import

    in group forum Installing BuddyPress
    Zoe Ellison
    Participant

    Could anyone advice me on how to import members to BuddyPress from a cvs file, I tried to purchase the BuddyPress Members Import plugin but only got as far as add to cart and the check out process would not load.

    I have been able to import all the members into WordPress it self, but this does not display them correctly within the BuddyPress members page.

    sanjaynakate
    Participant

    i have added some custom field in group when group is creating this field’s store properly and displaying on group header properly suppose some group have this value “Art and Culture” inserted from custom field. so now have added option in order by like “Art and Culture” if user select this option filter will display the group which have this value “”Art and Culture”

    Bellow is the code i have added option in order by options.

    <?php 
    function antares_groups_filter_options() {
        //echo '<option value="user-league">User League</option>';  
    	echo '<option value="Art and Culture">Art and Culture</option>';
    }
    add_action( 'bp_groups_directory_order_options', 'antares_groups_filter_options' );
    
    function antares_ajax_querystring( $query_string, $object ) {
    
    	if ( 'groups' != $object ) 
    		return $query_string;
    
    	if ( ! bp_is_groups_directory() ) 
    		return $query_string;
    	
    	$query_args = wp_parse_args( $query_string, array() );
    
            $page = $query_args['page'];
    
    	if( isset( $query_args['action'] ) && $query_args['action'] == 'Art and Culture' ) {
    	
    		$query_args = array();
    		$query_args['page'] = $page;
    		$query_args['orderby'] = 'Art and Culture';		
    		$query_args['order'] = 'ASC';
            //$query_args['value'] = 'Art and Culture';		
    		$query_args['include'] = antares_get_groups(); 
    		$query_string = http_build_query( $query_args );
    
    	}
    
    	return $query_string;
    
    }
    add_filter( 'bp_ajax_querystring', 'antares_ajax_querystring', 32, 2 );
    
    function antares_get_groups() {
    
        // put your custom sql here
        // return a csv string of the groups ids
        // for example '1,22,57'
    
    } ?>

    For adding the custom fields in group i have used bellow code

    <?php
     //group custom field
    /**
     *
     *
     * This file defines and implements custom group fields for Great Books Great Discussions.
     *
     *  
     */
     
    function custom_field($meta_key='') {
            //get current group id and load meta_key value if passed. If not pass it blank
            return groups_get_groupmeta( bp_get_group_id(), $meta_key) ;
    }
     
    //code if using seperate files require( dirname( __FILE__ ) . '/buddypress-group-meta.php' );
    // This function is our custom field's form that is called in create a group and when editing group details
    function group_header_fields_markup1() {
            global $bp, $wpdb;?>
     
           
           
     
            <label for="group-custom-field-city">City</label>
            <input id="group-custom-field-city" type="text" name="group-custom-field-city" value="<?php echo custom_field('group-custom-field-city'); ?>" />       
              
    		  <label for="group-custom-field-cat">Category</label>
              <select name="group-custom-field-cat" id="group-custom-field-cat">
    	      <option value="Animal Welfare">Animal Welfare</option>	  
               <option value="Art and Culture">Art and Culture</option>
               <option value="Clean City">Clean City</option>
               <option value="Clean Lake">Clean Lake</option>
               <option value="Education">Education</option>
               <option value="Elderly Care">Elderly Care</option>
               <option value="Energy Conservation">Energy Conservation</option>
               <option value="Environment">Environment</option>
               <option value="Fun and Recreation">Fun and Recreation</option>
               <option value="Health and Medical">Health and Medical</option>
               <option value="Industrial Development">Industrial Development</option>
               <option value="Infrastructure Development">Infrastructure Development</option>
               <option value="Poverty Eradication">Poverty Eradication</option>
               <option value="Social Development">Social Development</option>
               <option value="Sports">Sports</option>
               <option value="Substance Abuse / Addiction">Substance Abuse / Addiction</option>
               <option value="Women's Issues/ Gender Equality">Women's Issues/ Gender Equality</option>
      
    </select>
         <label for="group-custom-field-city-be-fore">Before</label>
         <input type="file" name="uploadfiles[]" id="uploadfiles" size="35" class="uploadfiles" /> 
    <label for="group-custom-field-city-af-ter">After</label>
         <input type="file" name="uploadfiles1[]" id="uploadfiles1" size="35" class="uploadfiles" />  	 
            <br>
     
    <?php }
    
    function group_header_fields_save1( $group_id ) {  
    	
           
            global $bp, $wpdb;
     
            $plain_fields = array(
           
                 
                    'group-custom-field-city',
    				'group-custom-field-cat',
    				'group-custom-field-after',
    				'group-custom-field-before',
    				
                   
           
            );
     
            foreach( $plain_fields as $field ) {
           
                    $key = $field;
                   
                    if ( isset( $_POST[$key] ) ) {
           
                            $value = $_POST[$key];
           
                            groups_update_groupmeta( $group_id, $field, $value );
                    }
            }
    }
     
    add_filter( 'groups_custom_group_fields_editable', 'group_header_fields_markup1' );
    add_action( 'groups_group_details_edited', 'group_header_fields_save1' );
    add_action( 'groups_created_group',  'group_header_fields_save1' );
             
    // Show the custom field in the group header
    function show_field_in_header( ) {
           
            echo "<p>City:" . custom_field('group-custom-field-city') . "</p>";
    		  echo "<p>Category:" . custom_field('group-custom-field-cat') . "</p>";
    		   //echo "<p>After:" . custom_field('group-custom-field-after') . "</p>";
    		   echo "<p>Before:</p>";
    			 echo "<img src='". custom_field('group-custom-field-before') ."'/>";
    			 echo "<p>After:</p>";
    			  echo "<img src='". custom_field('group-custom-field-after') ."'/>";
       
    }
     
    add_action('bp_group_header_meta' , 'show_field_in_header') ; ?>

    can any body help me to achieve this.

    #240761
    b2marketing
    Participant

    Hi

    I need the hyperlink to stay because I am using Ultimate Member with BBPress and BuddyPress but the problem is that BuddyPress is overruling Ultimate Member in the Forum Profile link. I would like BBPress forum links to go to Ultimate Member profile instead of BuddyPress. Because of this then I cannot use this idea: https://bbpress.org/forums/topic/remove-hyperlink-from-user-name/

    So I am wondering if there are a similar filter as this one below but for BBPress profile links:
    remove_filter( ‘comments_array’, ‘bp_core_filter_comments’, 10, 2 );

    I tried looking in bp-core-filters.php but could find any.

    Thanks
    Philip

    #240757
    danbp
    Participant
    #240755
    oliver_rub
    Participant

    @danbp
    Thanks for your suggestion Dan.
    I already tried that. There are two problems with that snippent. The first being that the is_bbpress() is returning false when i access bbpress forums in a buddypress group (theme: firmasite). Thats easy to solve through eliminating that check.
    The second problem is that currently the @mentions system isn’t working for the visual tab in tinyMCE, it works only for the text tab. Also discussed briefly between Paul Gibbs and Unsal Korkmaz here: https://buddypress.org/support/topic/buddypress-2-1-patsy/ (see comments)

    One of the requirements for our platform is that users can use those fancy buttons in the visual tab, but having the mentions autocomplete only in the text tab is a little bit ..you know…unexpected for users ๐Ÿ˜‰
    Thus i hoped i can somehow manage to reproduce the approach of OakCreative, but I havent been successful.
    Maybe also updating the at.js is a way to go, but the jump from the used version (0.5.2) to the current (1.3.0) seems to be to big to work just with replacing the script.
    So this is my current knowledge about this topic. Does anyone know how to proceed? Or should i create a ticket for this, so that the devs can have a look into this in future releases? I havent found any ticket dealing with exactly this.

    #240754
    dinesh.ravajani07
    Participant

    Hello All,

    I am also facing the same problem with bp_verify_nonce_request() function.

    It proper works on my Localhost but on my live server its not working properly

    In File : bp-members-screen.php file
    } elseif ( isset( $_POST[‘signup_submit’] ) && bp_verify_nonce_request( ‘bp_new_signup’ ) ) {

    this will not work.. but if i will replace the above code with the below code then it will work

    Below code will work properly
    } elseif ( isset( $_POST[‘signup_submit’] ) || bp_verify_nonce_request( ‘bp_new_signup’ ) ) {

    I know that if i will make changes in Buddypress core files then after update my changes will be lost.

    Is any Hook are available so that i can use in my functions.php file.
    Please help me someone. Its urgent and i want to complete my project as soon as possible.

    Thanks

    #240747
    VentureCore
    Participant

    OK, so here’s the solution…

    <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?>
    <?php do_action( 'bp_before_members_loop' ) ?>
    
    <?php
    if ( bp_ajax_querystring( 'members' ) ==""){
    $queryString = "type=alphabetical&action=alphabetical&page=1";}
    else {$queryString = bp_ajax_querystring( 'members' );}
    ?>
    
    <?php if ( bp_has_members( $queryString) ) : ?>

    Depending on how/if your theme developer has written their members-loop.php you will want to replace these two entries…

    <?php do_action( 'bp_before_members_loop' ); ?>
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>

    This not only gives you the ability to have buddypress default to listing names Alphabetically, it also maintains your ability to sort ‘Last Active’ and ‘Newest Registered’. This should be the default way to display the members directory. IMOP

    Now, if you want to then change the alphabetical listing default to return names by the lastname of your members you would add the following code to your theme’s function.php file. Preferably to the child theme’s function.php file.

    /** Sort alphabetical name listings by lastname */
    function alphabetize_by_last_name( $bp_user_query ) {
        if ( 'alphabetical' == $bp_user_query->query_vars['type'] )
            $bp_user_query->uid_clauses['orderby'] = "ORDER BY substring_index(u.display_name, ' ', -1)";
    }
    add_action ( 'bp_pre_user_query', 'alphabetize_by_last_name' );

    Good luck!

    #240741
    danbp
    Participant
    #240738
    danbp
    Participant
    #240726
    Henry Wright
    Moderator

    Yes. You can use bp_parse_args() for that. See the Using bp_parse_args() to filter BuddyPress template loops article for more info.

    #240718
    Henry Wright
    Moderator

    I can view anyones messages when logged out.

    And you’re definitely talking about what BuddyPress refers to as private messages?

    Can you try again after disabling all plugins, reverting to TwentyFifteen and removing all custom code? If you still get to see private messages when logged out then that shouldn’t be happening.

    #240717
    CodeMonkeyBanana
    Participant

    I can view anyones messages when logged out. If I log in I think it shows me my own messages, not sure, the main issue is that someone could easily harvest every single message from a buddypress site. Users are not tech savy and will presume that correspondence is relatively secure so there may be sensitive data stored. Or at worst it would give enough information for an attacker to social engineer the additional data they need.

    #240716
    Henry Wright
    Moderator

    With standard buddypress (no modifications) you can freely view anyoneโ€™s messages without even logging in

    That shouldn’t be the case for all users. Only users with admin capabilities should be able to do that. Are you able to see people’s private messages when logged in as a subscriber? If so, that’s a bug

    #240715
    CodeMonkeyBanana
    Participant

    With standard buddypress (no modifications) you can freely view anyone’s messages without even logging in. Personally I think that is not very good security/privacy, whatever you want to call it.

    I made a ticket as I don’t think that “private messages” should be publicly viewable
    (https://buddypress.trac.wordpress.org/ticket/6504#ticket)

    What privacy/security checks would you recommend for people who don’t want users private data publicly viewable?

    #240712
    CodeMonkeyBanana
    Participant

    @henrywright How would you do the security check? If I follow current way buddypress does things with loading the template part for the tab any logged out user can just modify the javascript and get into any profile page they like. It’s first time I’ve done this so appreciate the advice.

    what harm could come from a visit to a simple profile tab?

    You could see hidden data that user did not want displayed. I believe if you hold data and say it is private then you should attempt to secure it. You could also view their messages and private groups.

    The thing I am struggling to understand is how buddypress functions work on the post request. I wrote some test code and data is correctly populated from displayed user. Does buddypress read a referrer value somewhere on every ajax post?

    #240707
    comsys13
    Participant

    I am trying to comprehend what I am doing wrong since this appears so hard ๐Ÿ™‚

    In the options: buddypress configuration > pages I have selected http://example.com/profiles as the page I want to use for listing members

    However, it shows its page title in English โ€œMembersโ€ and no matter how much I edit the page โ€“ I can no change he page title to Danish.

    I have also gone through the language files and translated all I could.

    #240706
    comsys13
    Participant

    I am trying to comprehend what I am doing wrong since his is so hard

    In option buddypress configuration > pages I have selected http://example.com/profiles as the page I want to use for listing members

    However, it shows is title in English “Members”, but no matter how much I edit the page – i has zero effect on the result.

    maelga
    Participant

    Thanks @shanebp.
    It only works if I remove the function triggered at bp_loaded, as follows:

    	if ( class_exists( 'BP_Group_Extension' ) ) :
    		class members_nav_tab_in_group extends BP_Group_Extension {
    			function __construct() {
    				if( bp_is_group_single() ) {
    					$bp = buddypress();
    					$group_id = $bp->groups->current_group->id;
    					if( $group_id == '1' ) {
    						$args = array(
    						'slug'              => '../../members',
    						'name'              => 'Members Directory',
    						'nav_item_position' => 105,
    						);
    						parent::init( $args );
    					}
    				}
    			}
    		}
    	bp_register_group_extension( 'members_nav_tab_in_group' );
    	endif;
    

    What is the rationale/advantage for adding this function add_group_tab()?

    #240704
    #240701
    Dr.Raven0
    Participant

    After updating WP BP’ group function stopped working. Every time I try to create a group it dumps me in the activity feed. And it’s just the Groups function, every thing else seems to be working perfectly. And it does this regarless of the theme or any active or inactive plugins.

    I’m using WP 4.2.2 and BuddyPress 2.3.1 and my web host is ByteHost.com

    I don’t know if I’m the only one with this issue, as I’ve searched the forum and there are no other topics about this.

    shanebp
    Moderator

    May not be the best way, but try:

    function add_group_tab() {
    
    	if ( class_exists( 'BP_Group_Extension' ) ) :
    	
    		class members_nav_tab_in_group extends BP_Group_Extension {
    			
    			function __construct() {
    			
    				if( bp_is_group_single() ) {
    					
    					$bp = buddypress();
    					
    					$group_id = $bp->groups->current_group->id;
    					
    					if( $group_id == 1 ) {
    					
    						$args = array(
    						'slug'              => '../../members',
    						'name'              => 'Members Directory',
    						'nav_item_position' => 105,
    						);
    						
    						parent::init( $args );
    					}
    				}
    			}
    		}
    	
    	bp_register_group_extension( 'members_nav_tab_in_group' );
    	
    	endif;
    
    }
    add_action( 'bp_loaded', 'add_group_tab' );
    Arup
    Participant

    Hi, I am having issue with wp-signup.php. when buddypress plugin is installed in my site then wp-signup.php this page redirects to home page. Without buddypress plugin wp-signup.php working fine. But I need buddypress plugin also. So how can solve this issue?
    Note: I am using latest wordpress version, I setup pretty permalink option, I also tried with twenty fifteen theme, but still having this issue.
    Note: I have installed WPMUDEV Plugin.

    Thanks in Advance.
    Arup

    danbp
    Participant

    The following active BuddyPress Components do not have associated WordPress Pages: Activate, Register. Repair

    Those pages are not created automatically. When you get this error message, you have to create the pages manually first.

    Go back to bp settings > pages tab and allocate the new pages to the respective component. Save.

    You have also to set pretty permalinks to something other thant “by default”. Save.

    Now BP has his page assigned and should work.

    About the missing button.
    Clear your browser cache.
    If you use a cache plugin, clear it.
    Go to wp-config.php and activate debug mode at the end of the file.

    Deactivate all plugins except BP and activate one of WP’s theme (2015, 2014 or 2013…)

    See if you get some error message and correct the errors (if exist).

    If after tracking/repairing errors, the button is still not showing, deactivate buddypress, delete it and upload a fresh copy of BuddyPress to your site. Sometimes files can be corrupted and need to be replaced. No worry, this will not affect any data in your DB.

    If still nothing, check that your host plan has the required php version to be used with WP and BP: at least 5.2.4

    #240695
    danbp
    Participant

    Hi @manakio2k,

    you could try to just modify the template to get alphabetical as first sort option, instead of the default Last active.

    Create a child-theme first, add a folder called buddypress. In this folder add members folder and in that folder add a copy of index.php which is in bp-templates/bp-legacy/buddypress/members/index.php

    Around line 78, change the options order to get this:

    <select id="members-order-by">
    	<?php if ( bp_is_active( 'xprofile' ) ) : ?>
    		<option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    	<?php endif; ?>
    		<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
    		<option value="newest"><?php _e( 'Newest Registered', 'buddypress' ); ?></option>

    Now, members directory is sorted alphabetically by default.

Viewing 25 results - 19,176 through 19,200 (of 94,540 total)
Skip to toolbar