Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 15,001 through 15,025 (of 94,564 total)
  • Author
    Search Results
  • #254117
    mujalumni
    Participant

    I have two site one for static info about MUJ Alumni (http://mujalumni.in/muj2). It is also a wordpress site. The second one is a portal for our members (http://mujalumni.in/portal). It is also a wordpress site with buddypress support.

    No, I am not thinking of having subdomain /subfolder. I am already managing that.

    If you can provide your contact details, we can have a talk about this.

    Ron Ashman
    Participant

    WP 4.5.2
    BP 2.5.3
    Conditional Profile Fields for BuddyPress 1.1.9
    Flatsome theme by UX 2.9.2
    currently working offline, testing my site, hence no link

    Hi!

    I got 2 separate questions about using BP. I’ll be as brief as possible.

    1) Is there any way to fix required logic for conditional fields in the registration form? I have the following fields in my form, all of them drop down menues to choose one option:
    – State > NY / CA / FL / etc.
    – City in NY (show only if State = NY) > Albany / Buffalo / NY / etc.
    – City in CA (show only if State = CA) > LA / San Diego / Fresno / etc.
    and so on…

    The “State” field is required. The “City in…” field is required as well. Of course, only one “City in…” shows after choosing the state. The problem is that ALL of the “City in…” fields are marked as required, and BP expects the user to fill in all of them, even if they’re not showing due to conditional logic.

    Is there any way to fix it besides disabling the required status? Basically, people choose their location or something else. Maybe a product thing (PC / TV > laptop – desktop / lcd – led).

    2) I have in my sql database tables to organize a lot of products, separated into categories and cross-related. Very neat. Is there a way to easily put that into the registration form with conditional logic? Like the state>county>city thing. Drop down menues that import options from the tables.

    Thanks a lot in advance.

    #254115
    sharmavishal
    Participant

    no plugin for that…as @danbp suggested better to have one db of users..else its going to get quite complicated…

    before you installed buddypress was your site a wordpress site?

    also i see you installed bp in a sub folder..not in the root…http://mujalumni.in/portal/ is that correct?

    is the root site a wordpress enabled site?

    are you looking at having a main site and the community (powered by buddypress) on a seperate folder/subdomain?

    cesasol
    Participant

    Hi, I’m working on a project where I have to populate the contents of a page using custom post types and taxonomies with members of buddypress.
    Members fill out a field check boxes that match the terms of taxonomy to be used, then I have to fill posts with members that meet at least one match box checked with taxonomy term and then add the user to post.

    Navigation would be:
    User enters the “services” in the menu.
    Then see a list of services in card format
    Clicking has to display the “post” service with a short description and down members offering such services with a link to their profiles buddypress.

    Members will have the following experience:
    After registering as a special type of user they are activated the profile field “Professionals”, which, along with other fields will be the field of “treatments” that will check boxes. As save their changes, for example, they marked the “facial radiofrequency” box, your profile will appear in the services that have the taxonomy term “facial radiofrequency”

    It can be done in each post or maybe making a specific template with one using variables, and enter the custom loop within the loop the post after <php the_content (); ?> And before endwhile.

    The problem is that the loop is not done, and after searching I found I was developing #5839 but I could find no documentation.

    Thanks in advance.
    Cesasol

    #254111
    ineedyou
    Participant

    Hi,

    I am just copypaste code user – just simple user and need someone to help me. Please. I found below code, i am adding to bp-custom its working. But i need to extend this code, if i want to add second or more custom post type, how will i do? I read lots of article , try to solve 2 days but i cant. Try it 100 different version but no no no….Can anyone can show me how to add moe than one… Thanks and sorry my bad English..

    
    <?php
    add_post_type_support( ‘book’, ‘buddypress-activity’ );
    function customize_page_tracking_args() {
    
        // Check if the Activity component is active before using it.
        if ( ! bp_is_active( ‘activity’ ) ) {
            return;
        }
        bp_activity_set_post_type_tracking_args( ‘book’, array(
            ‘component_id’             => ‘activity’,
            ‘action_id’                => ‘new_book’,
            ‘bp_activity_admin_filter’ => __( ‘My Book’, ‘custom-domain’ ),
            ‘bp_activity_front_filter’ => __( ‘Book’, ‘custom-domain’ ),
            ‘contexts’                 => array( ‘activity’, ‘member’ ),
            ‘bp_activity_new_post’     => __( ‘%1$s published <a href="”%2$s”">Book Suggest</a>’, ‘custom-textdomain’ ),
    
            ‘bp_activity_new_post_ms’  => __( ‘%1$s published <a href="”%2$s”">Book</a>, on the site %3$s’, ‘custom-textdomain’ ),
    ‘comment_action_id’                 => ‘new_book_comment’,
            ‘bp_activity_comments_admin_filter’ => __( ‘Commented Book’, ‘custom-textdomain’ ),
            ‘bp_activity_comments_front_filter’ => __( ‘Book Comments’, ‘custom-textdomain’ ),
            ‘bp_activity_new_comment’           => __( ‘%1$s commented on the <a href="”%2$s”">Book</a>’, ‘custom-textdomain’ ),
            ‘bp_activity_new_comment_ms’        => __( ‘%1$s commented on the <a href="”%2$s”">Book</a>, on the site %3$s’, ‘custom-textdomain’ ),
            ‘position’                          => 100,
           ) );
    }
    add_action( ‘init’, ‘customize_page_tracking_args’, 1000 );
     ?>
    #254103
    danbp
    Participant

    Guess there is no “reply to all” fonctionnality in BuddyPress.

    #254100
    danbp
    Participant
    #254097
    shanebp
    Moderator

    You can get older versions here:
    https://wordpress.org/plugins/buddypress/developers/

    #254094
    mujalumni
    Participant

    By 2 separate DBs I mean that:
    1. Earlier we were not using BuddyPress and had MySQl as backend DB.
    2. We shifted to BuddyPress later on but maintaining MySQL DB as well for SignUp by the users.

    Now the problem is when the user adds himself the records are saved in our MySQL DB but when the user updates his records the updated data goes and is saved in the BuddyPress DB.

    How to replicate & sync the updated records in the BuddyPress DB to our MySQl DB (some 35 fields are getting updated and needs to be replicated in the MySQL DB)

    A help is really solicited.

    best regards

    #254089
    danbp
    Participant
    ronsenbln
    Participant

    Hi, i am new with buddypress and wordpress to. Now i will create a community and use both. I like to show the posts of a user in his profil and not in an author page.

    I found that i can create a new tab and this works. The post will show. But i cant make it work without a double output.

    Here is my code:

    functions.php

    // Buddy Press Funktionen
    
    function my_redirect_canonical($redirect_url, $requested_url) {
     // If on a BuddyPress page, just go to the requested URL: no redirects!
     if ( bp_is_members_component() || bp_is_user() ) {
       return $requested_url;
     } else {
       return $redirect_url;
     }
    }
    add_filter('redirect_canonical', 'my_redirect_canonical', 10, 2);
    
    // Buddy Press Funktionen Posts im Profil
    
    add_action( 'bp_setup_nav', 'add_profileposts_tab', 100 );
    function add_profileposts_tab() {
    global $bp;
    bp_core_new_nav_item( array(
    'name' => 'News',
    'slug' => 'posts',
    'screen_function' => 'bp_postsonprofile',
    'default_subnav_slug' => 'News', 
    'position' => 250
    )
    );
    }
    // show feedback when 'Posts' tab is clicked
    function bp_postsonprofile() {
    add_action( 'bp_template_content', 'profile_screen_posts_show' );
    bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }
    
    function profile_screen_posts_show() {
    query_posts( 'author=' . bp_displayed_user_id() );
    	if ( have_posts() ) :
    	get_template_part( 'author-user' );
    	else:?>
    	<div id="message" class="info">
    		<p><?php bp_displayed_user_username(); ?> hat noch nix geschrieben! </p>
    	</div>
        <?php endif; ?>    <?php
    
    }
    
    //POSTS ON PROFILE ENDS HERE

    author-posts.php

    <ul>
    		<!-- Loop -->
    		<?php while(have_posts()) : the_post(); ?>
    <?php the_post_thumbnail( 'teaser' ); ?>
    			<h2>
    				<a href="<?php esc_url(the_permalink()); ?>"><?php the_title(); ?></a>
    			</h2>
    			Erstellt am <?php echo get_the_date(); ?> 
    <div class="tags"><?php the_tags('','',''); ?></div>
    			<div class="content-inner"><?php the_excerpt(); ?></div>
    
    		<?php endwhile; ?>
    	
    		<!-- Paginierung -->
    		<p><?php posts_nav_link(); ?></p>
    
    <!-- End Loop -->
    
        </ul>
    

    This code shows the author posts in the right way. But under the output i like is an output that i dont like to have. It shows the post twice. Any idea for this problem? Best

    #254086
    mujalumni
    Participant

    I am a user of Buddypress implemented at http://www.mujalumni.in\portal. I have two databases of my members, one was created by me and the other was created by buddypress when members were added to it. Is there any way of linking the “update/edit” profile section of buddypress with my original database so that when a user edits his/her details on his/her buddypress profile, the changes are reflected on both the databases?

    I shall be grateful to you if you could kindly help me out.

    #254085

    In reply to: Wierd Buddypress Issue

    mugluck
    Participant

    Ok. So while the navigation is effectively solved by tell it to look for the wrong kinds of posts. In lieu of deleting the code entirely.

    There’s another strange issue that’s cropped up suddenly. The admin bar is vanishing. Is there a line to force it to show? It works in all the other places on the site, except the buddypress profile pages.

    #254083

    In reply to: Wierd Buddypress Issue

    mugluck
    Participant

    Ok. Problem partially solved. My relative newness to php scripting means it’s harder to parse. But I found that duplicating page.php and renaming the duplicate to buddypress.php means I can now control the default buddypress loadup.

    The problem seems to be that the secondary nav code is searching for menu children by scanning the pages and checking if they’re children of… this page’s menu system? Since the Buddpress profile isn’t affiliated with any pages, it’s taking all the unaffiliated pages… I think.

    
    <!-- Secondary Nav -->
    <!-- Show Secondary Menu if the page is a child or has children -->
    <?php global $post; $children = get_pages( array( 'child_of' => $post->ID ) );
    
    	if ( is_page() && $post->post_parent  || count( $children ) > 0 ) : ?>
    
    		<div class="row subnav">
    			<div class="container">
    				<div class="columns large-12">
    					<ul>
    					    <?php wp_list_pages( array('title_li'=>'','depth'=>1,'child_of'=>get_post_top_ancestor_id()) ); ?>
    					</ul>
    				</div>
    			</div>
    		</div>
    
    	<?php else : ?>
    	
    	<!--This is a parent page without children-->
    
    	<?php endif; ?>

    So now it’s just telling it not to do that I guess.

    had_hc
    Participant

    After some googling, I found the answer from here! The action ‘bp_core_setup_globals’ is the answer and it works well!

    #254079

    In reply to: Wierd Buddypress Issue

    mugluck
    Participant

    Is there a way to set the default page template for profiles in Buddpress? I’ve isolated the problem to the fact that it’s generating from the default profile in our wordpress theme. But I don’t know which file in the buddypress system I should add the php code to.

    #254078
    r-a-y
    Keymaster

    Hmm… I forgot that those “Name” fields were not deletable from the admin dashboard.

    I would recommend the following:

    1. Disable the Extended Profiles component
    2. Tell your developer to go into your database and drop the following DB tables:
    – wp_bp_xprofile_data
    – wp_bp_xprofile_fields
    – wp_bp_xprofile_groups
    – wp_bp_xprofile_meta
    3. Next, go back to “Settings > BuddyPress > Components” and re-enable the Extended Profiles component

    This should recreate the Extended Profiles database tables from scratch and hopefully things should be okay afterwards.

    #254074
    r-a-y
    Keymaster

    that worked!!

    Glad to hear you’re up and running!

    But should I now see 5 tabs of Field Groups that all say “Base (Primary)” when I go to Profile Fields under Users?

    No, you shouldn’t.

    You should leave the first “Base (Primary)” tab alone, but do delete the rest of them.

    Do the same for the “Name (Primary)” field in the “Base” group. Keep the first one, but delete the rest.

    Note that this is a new install. I’ve never used BuddyPress before

    This does sound like a bug. It would be great to retrace your steps so we can duplicate this problem. Did you activate / deactivate / activate the plugin multiple times?

    Same goes for the components list under “Settings > BuddyPress > Components” in the WP admin dashboard. Did you uncheck / check / submit certain components multiple times?

    #254073
    AngelaQ
    Participant

    that worked!! But should I now see 5 tabs of Field Groups that all say “Base (Primary)” when I go to Profile Fields under Users? Each of these have 5 fields called “Name (Primary) (Required)”.

    Note that this is a new install. I’ve never used BuddyPress before and tried using xTended Profiles and gave up…

    #254066
    r-a-y
    Keymaster

    If you do not have access to your database, you can temporarily put the following snippet in your theme’s functions.php or wp-content/plugins/bp-custom.php file:

    function ray_xprofile_group_fix() {
    	global $wpdb, $bp;
    
    	if ( empty( $_GET['xprofilefix'] ) || empty( $bp ) ) {
    		return;
    	}
    
    	$wpdb->query( "UPDATE {$bp->profile->table_name_groups} SET id = 1 WHERE id = 2" );
    }
    add_action( 'get_header', 'ray_xprofile_group_fix' );

    Then, go to your website and append ?xprofilefix=1 to your website URL.

    eg. example.com/?xprofilefix=1

    This should change your profile group ID back to 1. Next, check your registration page and “Edit Profile” link and see if they work.

    Once you have confirmed that it works, remove the code snippet from your theme’s functions.php or bp-custom.php file.

    danbp
    Participant

    That is an old bbPress issue. When you edit a topic, i some case, the topic comes up twice(or more, depending how many edit you made) on the site activity.

    This bug will be corrected in bbP 2.6 (actual version is 2.5.9). See ticket & patch here.
    What you can do immediatly is to modify following file:

    
    wp-content/plugins/bbpress/includes/extend/buddypress/activity.php

    Replace code between line 277/279

    
    $existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all', ) );
    if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) )
    return null;

    by

    $existing = new BP_Activity_Activity( $activity_id );
    if ( empty( $existing->component ) ) {
    return null;
    }
    #254064
    danbp
    Participant

    Have you read this ?

    Member Types

    #254061
    r-a-y
    Keymaster

    @angelaq – I think your problem is related to this:
    https://buddypress.org/support/topic/bad-link-to-profile-edit/#post-174602

    I’m quoting the workaround solution below:

    Since I’ve seen so many threads regarding it and I was having same issue.

    this is regarding 404 error page if you are on page profile/edit/group/1/

    Problem is group 1 is missing in your profile section.

    All you need to do is go into you DB and look for table: wp_bp_xprofile_groups

    Then look for id=2, Base

    then just change id=2 to 1 and that’s it.

    This does sound like a legitimate bug.

    I’ve opened an issue about this here:
    https://buddypress.trac.wordpress.org/ticket/7109

    #254060
    r-a-y
    Keymaster

    Can both of you try reading this and see if the same problem applies to you?

    https://buddypress.org/support/topic/registration-page-does-not-work/#post-251532

    https://buddypress.org/support/topic/bad-link-to-profile-edit/#post-174602

    It sounds like this might be the problem at least for @angelaq.

    So I thought I would shed some light on this issue. Since I’ve seen so many threads regarding it and I was having same issue.

    this is regarding 404 error page if you are on page profile/edit/group/1/

    Problem is group 1 is missing in your profile section.

    All you need to do is go into you DB and look for table: wp_bp_xprofile_groups

    Then look for id=2, Base

    then just change id=2 to 1 and that’s it.

    #254057
    shanebp
    Moderator

    This premium plugin – BuddyProfileData – will add profile data to the members loop.
    It will add fields in a vertical stack.
    If you are comfortable with css and maybe a little php, you can change it to horizontal.

    Or you can write your own solution using this hook:
    do_action( 'bp_directory_members_item' );
    in this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\members-loop.php

    Or you can create a template overload of that file and hardcode your solution directly in the template wherever and however you want it.

    Re the ‘>’ – the best solution is to find out where it is being added by your theme css and change it.

Viewing 25 results - 15,001 through 15,025 (of 94,564 total)
Skip to toolbar