Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,176 through 16,200 (of 69,016 total)
  • Author
    Search Results
  • dzung
    Participant

    Luckily I found it from a thread:
    Here’s in the plugin in buddypress-xprofiles-acl
    Comment the below function!

    /* function filter_xprofile_groups_with_acl() {
        global $bp, $profile_template, $current_user;
        get_currentuserinfo();
        foreach($profile_template->groups as $key => $profile_group) {
          if( ! in_array($profile_group->id, $this->user_allowed_xprofile_groups) ) {
            unset($profile_template->groups[$key]);
          }
        }
      }
      */
    dzung
    Participant

    I still get this issue, now only User can see his xProfile – Even Admin can’t see other user xProfile. I have tried to switched to the Twenty Theme, but it still happens.

    I have traced to here:

    //I have two profile Groups, the Base group and one more I created.
    // I created a User with full profile fields data.

    <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    <?php if ( bp_profile_group_has_fields() ) : ?>

    If the user view his own profile the bp_profile_group_has_fields() will return True two times. But if another user view this user profile it will only return True 1 time and the 2nd time is false – that makes it display only Base group profile Fields and xProfile fields can’t display.

    I use WP 3.9 Latest BuddyPress and installed a lot of plugins.

    shanebp
    Moderator
    #185829
    danbp
    Participant
    #185828
    Sokrates
    Participant

    Silly me – copy the legacy templates over to your child theme …… but don’t forget to add the following line to your child theme’s function.php file:

    add_theme_support( 'buddypress' );

    Doh! My excuse – it’s a Friday afternoon!

    #185827
    Sokrates
    Participant

    Hi @canadadre and @mercine

    Ron R. advises that this plugin is no longer required with BuddyPress v2 onwards

    To solve your redirection problem in a Genesis child theme, simply create a file in your Genesis child theme called register.php

    Copy the contents of page.php from the main Genesis theme into this file and save.

    Create a new page in the Dashboard e.g. “my new registration page”, assign it as the registration page in the Dashboard > Settings > BuddyPress > Pages et voila!

    From my admittedly limited understanding, copying the legacy templates across from the plugin into your child theme as per the BuddyPress Codex doesn’t work with Genesis – please correct me if I’m wrong dear reader!

    #185816
    danbp
    Participant
    #185812

    In reply to: Custom Component Help

    stoi2m1
    Participant

    I found that my custom post type and page Im using for the archive have the same slug. I have read in various places that this commonly causes a 404 error. I added a submenu item for single posts to display under the pages slug like so.

    $single_item_link = $bp->current_item;
    
    if ( bp_is_my_custom_component() && bp_is_single_item() ) {
    
    	// Reset sub nav
    	$sub_nav = array();
    	
    	// Add single music page but dont display in navigation
    	$main_nav = array(
    		'name'                => __( 'Single Music', 'bp-music' ),
    		'slug'                => $single_item_link,
    		'position'            => -1, // Do not show in BuddyBar
    		'screen_function'     => 'custom_component_screen_single',
    		'default_subnav_slug' => $this->default_extension,
    		'item_css_id'         => $this->id
    	);
    }

    This menu item loads a function in the screens file of the component

    function custom_component_screen_single() {
    	
    	if ( ! bp_is_single_item() )
    		return false;
    	
    	$bp = buddypress();
    
    	do_action( 'custom_component_screen_single' );
    
    	
    	bp_core_load_template( apply_filters( 'custom_component_screen_single', 'custom-component/single/home' ) ); //this loads a template file within the template folder of the component or within the theme
    	
    }

    And for now all is good. I would still like to find a way to load my custom taxonomy into the permalink structure so things would look like this.

    mydomain.com/custom-component/custom-taxonomy/single-item

    If anyone has any ideas on how I can get this to work as well please let me know. My guess is I could make another menu item to capture that instance and if the genre exists then it loads a template file. Then I need to find a way to make sure a single item and a custom taxanomy dont end up with the same name.

    Thanks,
    Jesse

    #185803
    eqerhe
    Participant

    Thanks, @henrywright

    I think TML just handles redirects after logging in or out. What I’m looking for is a way to manage the redirect when someone who isn’t logged in tries to visit a page that’s only for members, or someone visits a page that their membership type doesn’t allow them access to.

    For example, I’d like anyone to be able to see the member and group directories, but only members should be able to look at individual profiles and the group pages and forums.

    That being said, I was thinking today that I’d actually like separate pages for visitors or people who aren’t logged in to be able to see those things and other info, so maybe I’ll handle it that way. I guess then what I’m actually looking for is a way to change the top menu depending on whether someone is a logged in member or not.

    Sorry for a babble. This is my first swing at BuddyPress, so it’s all trial and error for me right now! Thanks for the help!

    #185793
    danbp
    Participant

    Before installing any plugin, consider this translation into persian from the official translation repo for WP/BP/bbP
    https://translate.wordpress.org/projects/buddypress/dev/fa/default

    You can also contribute to this persian translation. Everithing to do so is explained on Goltpress.

    #185792
    @mercime
    Participant

    @ancavreasy really depends on the scale your company is willing to engage with the customers.

    If you only need forums, you do not need BuddyPress, just install bbPress plugin. For a more engaged community interaction via groups, friending, profiles, etc, then BuddyPress is your plugin.
    e.g. of BP in action with some customizations
    university – http://www.bpinspire.com/cuny-academic-commons/
    newspaper – https://wordpress.org/showcase/my-telegraph/

    #185757
    danbp
    Participant

    @osamanuman,

    you removed and added the same action, so nothing would changes: it’s just normal !

    BuddyPress Action Hook Sequence During Startup

    The difference beetween BP and WP registration is the BP xprofile additionnal fields for your members.
    This means that BP modifies the aspect, not the registration process.

    Modifying the Registration Form

    Register and Activation Pages

    And here is an answer to your question:
    https://buddypress.org/support/topic/wordpress-login-and-registration-page/#post-171826

    danbp
    Participant

    Hi @marximusmg,
    BuddyPress Codex is your friend !

    Customizing Labels, Messages, and URLs

    #185728
    @mercime
    Participant
    NANOPASS
    Participant

    Hi danbp
    It Seems to me the answer to my question
    But, the problem is not resolved.
    I am very troubled!

    plugins/buddypress/bp-xprofile/bp-xprofiles-class.php(bp-xprofile-classes.php):1459

    
    	/**
    	 * Constructor for the datebox field type
    	 *
    	 * @since BuddyPress (2.0.0)
     	 */
    	public function __construct() {
    		parent::__construct();
    
    		$this->category = _x( 'Single Fields', 'xprofile field type category', 'buddypress' );
    		$this->name     = _x( 'Date Selector', 'xprofile field type', 'buddypress' );
    
    		$this->set_format( '/^\d{4}-\d{1,2}-\d{1,2} 00:00:00$/', 'replace' );  // "Y-m-d 00:00:00"
    		do_action( 'bp_xprofile_field_type_datebox', $this );
    	}
    
    	/**
    	 * Output the edit field HTML for this field type.
    	 *
    	 * Must be used inside the {@link bp_profile_fields()} template loop.
    	 *
    	 * @param array $raw_properties Optional key/value array of {@link http://dev.w3.org/html5/markup/input.html permitted attributes} that you want to add.
    	 * @since BuddyPress (2.0.0)
    	 */
    	public function edit_field_html( array $raw_properties = array() ) {
    		$user_id = bp_displayed_user_id();
    
    		// user_id is a special optional parameter that we pass to {@link bp_the_profile_field_options()}.
    		if ( isset( $raw_properties['user_id'] ) ) {
    			$user_id = (int) $raw_properties['user_id'];
    			unset( $raw_properties['user_id'] );
    		}
    
    		$year_html = $this->get_edit_field_html_elements( array_merge(
    			array(
    				'id'   => bp_get_the_profile_field_input_name() . '_year',
    				'name' => bp_get_the_profile_field_input_name() . '_year',
    			),
    			$raw_properties
    		) );
    
    		$month_html = $this->get_edit_field_html_elements( array_merge(
    			array(
    				'id'   => bp_get_the_profile_field_input_name() . '_month',
    				'name' => bp_get_the_profile_field_input_name() . '_month',
    			),
    			$raw_properties
    		) );
    

    Please tell me Where Do I change specifically.

    #185724
    JesperG
    Participant

    Hey sorry @mercime But thats not what im after! What i done is a map that will do a member search for a custom field So basically when someone press a state of my country they will do a search to only show members from that state. But i need a way to add my map into the buddypress member directory.

    I tried several documents but cant find the one changing things in the member directory. I thought it would be members/index file but that one doesn’t work changing

    #185720
    alex80ks
    Participant

    Read More problem solved
    here is pastebin
    on line 367 added .trigger('post-load') in file wp-content/plugins/buddypress/bp-themes/bp-default/_inc/global.js

    Im sorry i have made mistake. this last post linked to Load more problem is working when i add same trigger .trigger('post-load') to line 342 in wp-content/plugins/buddypress/bp-themes/bp-default/_inc/global.js

    Pastebin of Load more

    so you can test it by yourself and add if you want.
    Thank you

    #185717
    danbp
    Participant
    #185715

    In reply to: count & no-count !?!

    danbp
    Participant

    Hi @noyzen,

    if you only updated BuddyPress, it’s possible that the translation file contains an error.

    Check your .po file for any strings looking like this one

    https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-languages/buddypress.pot#L3464

    Example: Groups <span class=\"%s\">%s</span> or Members <span class=\"%s\">%s</span>
    If correctly translated, perhaps is something wrong in your theme or child theme or even a plugin.
    in this case, you should check the file indicated above the string to translate.
    %s is very important to stay in the translation and in the original file to get the count

    #185712
    aces
    Participant

    @jofri016

    You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.
    is in the current pot file ( see https://buddypress.trac.wordpress.org/browser/tags/2.0.1/bp-languages/buddypress.pot#L6122 ) …..

    #185711
    Pamela
    Participant

    I have now added my own to functions.php which shows the correct counts but the links still don’t work and I have no idea why. When you click on them it always come up with page 1

    
    function members_pagination_count() {
    		echo get_members_pagination_count();
    	}
    	
    	function get_members_pagination_count() {
    		global $members_template;
    		global $count_of_excluded_members;
    		if ( empty( $members_template->type ) )
    			$members_template->type = '';
    		$page_arg = "upage";
    		$page_number = 1;
    		$per_page = 20;
    		$pag_page = !empty( $_REQUEST[$page_arg] ) ? intval( $_REQUEST[$page_arg] ) : (int) $page_number;
    		$pag_num  = !empty( $_REQUEST['num'] )   ? intval( $_REQUEST['num'] )   : (int) $per_page;
    		$start_num = intval( ( $pag_page - 1 ) * $pag_num ) + 1;
    		$from_num  = bp_core_number_format( $start_num );
    		$to_num    = bp_core_number_format( ( $start_num + ( $pag_num - 1 ) > ($members_template->total_member_count - $count_of_excluded_members) ) ? ($members_template->total_member_count - $count_of_excluded_members) : $start_num + ( $pag_num - 1 ) );		
    		$total     = bp_core_number_format( $members_template->total_member_count - $count_of_excluded_members );
    
    		if ( 'active' == $members_template->type )
    			$pag = sprintf( _n( 'Viewing member %1$s to %2$s (of %3$s active member)', 'Viewing member %1$s to %2$s (of %3$s active members)', $total, 'buddypress' ), $from_num, $to_num, $total );
    		else if ( 'popular' == $members_template->type )
    			$pag = sprintf( _n( 'Viewing member %1$s to %2$s (of %3$s member with friends)', 'Viewing member %1$s to %2$s (of %3$s members with friends)', $total, 'buddypress' ), $from_num, $to_num, $total );
    		else if ( 'online' == $members_template->type )
    			$pag = sprintf( _n( 'Viewing member %1$s to %2$s (of %3$s member online)', 'Viewing member %1$s to %2$s (of %3$s members online)', $total, 'buddypress' ), $from_num, $to_num, $total );
    		else
    			$pag = sprintf( _n( 'Viewing member %1$s to %2$s (of %3$s member)', 'Viewing member %1$s to %2$s (of %3$s members)', $total, 'buddypress' ), $from_num, $to_num, $total );
    
    		return apply_filters( 'members_pagination_count', $pag );
    	}
    	
    	function members_pagination_links() {
    		echo get_members_pagination_links();
    	}
    	
    	function get_members_pagination_links() {
    		global $members_template;
    		$page_arg = "upage";
    		$page_number = 1;
    		$per_page = 20;
    		$pag_page = !empty( $_REQUEST[$page_arg] ) ? intval( $_REQUEST[$page_arg] ) : (int) $page_number;
    		
    		$pag_num  = !empty( $_REQUEST['num'] )   ? intval( $_REQUEST['num'] )   : (int) $per_page;
    		$pag_links = paginate_links( array(
    				'base'      => add_query_arg( $page_arg, '%#%' ),
    				'format'    => '',
    				'total'     => ceil( ((int) $members_template->total_member_count - (int)$count_of_excluded_members) / (int) $pag_num ),
    				'current'   => (int) $pag_page,
    				'prev_text' => _x( '&larr;', 'Member pagination previous text', 'buddypress' ),
    				'next_text' => _x( '&rarr;', 'Member pagination next text', 'buddypress' ),
    				'mid_size'   => 1
    			) );
    
    		return apply_filters( 'get_members_pagination_links', $pag_links );
    	}
    

    This is the page

    http://www.ibsregister.com/members/

    They look OK and I haven’t seen any JavaScript errors

    #185709
    shanebp
    Moderator

    Try using the bp_pre_user_query_construct hook
    codex example

    #185691
    @mercime
    Participant

    @alex80ks feel free to post at pastebin.com and then post the generated URL here. Or create a ticket in BP’s https://buddypress.trac.wordpress.org/newticket using the same login info as you used here

    #185689
    grayson_marik
    Participant

    Unfortunately downgrading to PHP 5.4 is not an option, as I use some of the fancy PHP 5.5 syntax enhancements on other areas of the page.

    Seems like I’ll have to wait for either a major PHP update that solves this miracle or a BuddyPress update that does.

    Strange though, that the error is reproducible but untraceable … Ah well, maybe I am simply too bad as server admin 😉

    #185687
    lukewarmmizer
    Participant

    Curious if you had any more luck with this? I am having the same problem, but with CentOS 5.10, Nginx 1.6, and spawn-fcgi. The site will sometimes work, and sometimes not. Removing the buddypress folder from the plugins directory will cause the site to start loading again, but putting it back breaks it. The only errors are:

    /var/log/messages
    Jul 29 01:13:13 web1 kernel: php-cgi[4904]: segfault at 000000000000002c rip 00000000005bc7f8 rsp 00007fff8d7752f0 error 4

    /var/log/nginx/error.log
    2014/07/29 01:17:59 [error] 2474#0: *783 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.10.133.128, server: *.rovair.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:53217", host: "www.example.com", referrer: "https://www.example.com/wp-admin/"

Viewing 25 results - 16,176 through 16,200 (of 69,016 total)
Skip to toolbar