Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 12,526 through 12,550 (of 69,016 total)
  • Author
    Search Results
  • Quinn Goldwin
    Participant

    Hey Danbp,

    Thank you for the quick responses and all your help. I tried playing around with your way but I’m not advanced enough for working with hooks and custom coding just yet.

    I did find an easier work around that I just pasted into my bp-custom.php and it did the trick. But for other members trying to do this, you need to have the plugin http://buddydev.com/buddypress/show-buddypress-communitysitewide-activity-on-user-profile/ for this to work.

    function bp_change_activity_subnav_default() {
    
    	if ( bp_is_user_activity() ) {
    	
    		$args = array(
    			'parent_slug' => 'activity',
    			'subnav_slug' => 'all-activity'
    		);
    		
    		bp_core_new_nav_default($args);
    	
    	}
    	
    }
    add_action('bp_setup_nav', 'bp_change_activity_subnav_default', 5);   

    I understand you guys aren’t getting paid for your services but now i’m just struggling on adding a “whats new” post form to the all activity page. Buddy dev had some directions on how to add it but I think its dated cause I couldn’t find the code that we needed to switch out. Is there a simple way to add a whats new post form to the all activity page? It would be awesome if it was simple enough to paste it into bp-custom.php.

    Thanks again for everything you guys are great!

    #241505
    danbp
    Participant

    I have never used kendo, so i can’t help you about how it works, or not, with BuddyPress or with your theme.

    But you can deregister a script or add more scripts into the theme…
    Read here if it inspires you:
    http://wordpress.stackexchange.com/questions/152559/wordpress-script-loading-unloading-wp-deregister-scriptjquery

    #241501
    danbp
    Participant
    #241500
    killabien
    Participant

    Shane, thank you for your reply.
    My code now looks like this:

    <?php
    /**
     * Template Name: Spanish
    
     */
    
    get_header(); ?>
    
    <?php get_template_part('page-parts/general-title-section'); ?>
    
    <?php get_template_part('page-parts/general-before-wrap'); ?>
    
    <?php $members = my_custom_ids( 'country', 'Spain' ); ?>
    
     
    <?php 
     $query = new WP_Query( array( 'author__in' => $members ) );
     if ($query->have_posts()) :
    	// Start the Loop.
        query_posts($query);
       
    	while ($query->have_posts() ) : $query->the_post();
       
    
    		/*
    		 * Include the post format-specific template for the content. If you want to
    		 * use this in a child theme, then include a file called called content-___.php
    		 * (where ___ is the post format) and that will be used instead.
    		 */
             get_template_part( 'page-parts/post-content-small' ); 
             get_template_part( 'page-parts/posts-social-share' ); 
             
            ?>
    
            <?php if ( sq_option( 'page_comments', 0 ) == 1 ): ?>
    
                <!-- Begin Comments -->
                <?php comments_template( '', true ); ?>
                <!-- End Comments -->
    
            <?php endif; ?>
    
        <?php
     endwhile;
    
     endif;
    ?>
    
     <?php  wp_reset_postdata()?>
    
    <?php get_template_part('page-parts/general-after-wrap'); ?>
    
    <?php get_footer(); ?>
    

    When I tried doing it with only my_custom_ids I suddenly get nothing displayed at all. Now even when I try the example code from members_loop in codex I get an error like this:

    Warning: Creating default object from empty value in C:\xampp2\htdocs\wp-content\plugins\buddypress\bp-members\bp-members-template.php on line 627
    Viewing 1 – 0 of 0 members

    Fatal error: Call to undefined method stdClass::members() in C:\xampp2\htdocs\wp-content\plugins\buddypress\bp-members\bp-members-template.php on line 609

    Sorry for prolonging this topic, this is the last feature I need to add and I thought it’d be easier.
    Thank you for your help

    Best
    David

    #241496
    killabien
    Participant

    Okay, so while I’ve made some progress thanks to you two, I’m still missing something. I thought it was working tomorrow but the code wasn’t logical(I had to use author__not_in to display posts from all Spanish users but it didn’t work with other countries).

    So first of all, this code gives me only the users from a given country:
    <?php $Members = array((bp_has_members( my_custom_ids( 'country', 'Spain' ) )) ); ?>

    I’ve used the example Here and it displays only those two users I have with Spain. When I change to France it displays only one user, which is correct. So this one is good to go.
    I’m having trouble with the rest though.

    <?php 
     $query = new WP_Query( array( 'author__in' =>array($Members)));
     if ($query->have_posts()) :
    	// Start the Loop.
        query_posts($query);
       
    	while ($query->have_posts() ) : $query->the_post();
       
    
    		/*
    		 * Include the post format-specific template for the content. If you want to
    		 * use this in a child theme, then include a file called called content-___.php
    		 * (where ___ is the post format) and that will be used instead.
    		 */
             get_template_part( 'page-parts/post-content-small' ); 
             get_template_part( 'page-parts/posts-social-share' ); 
             
            ?>
    
            
    
            <?php if ( sq_option( 'page_comments', 0 ) == 1 ): ?>
    
                <!-- Begin Comments -->
                <?php comments_template( '', true ); ?>
                <!-- End Comments -->
    
            <?php endif; ?>
    
        <?php
     endwhile;
    
     endif;
    ?>
    

    Is what I’ve been trying to do. Putting (bp_has_members( my_custom_ids( 'country', 'Spain' ) )) into an array like this:
    $query = new WP_Query( array( 'author__in' =>array(bp_has_members( my_custom_ids( 'country', 'Spain' ) ))));
    Didn’t give me the results I wanted. What am I doing wrong? Once when I put author__not_in it worked but only with Spain and no other country. Now it’s not working even with Spain.
    Any suggestions? What should I do? Please help.

    Regards

    David

    #241492
    Prabin
    Participant

    @danbp nope this is coming from BuddyPress Group.

    #241489
    djsteveb
    Participant

    Go to your main groups page, and an individual group page.

    On both do a “view source”

    Is there anything in your source that has anything to do with “robots”
    (like robots meta noindex)

    That would be an issue – but I bet it’s just the way buddypress handles the
    “meta name description”
    and html page “title” for groups, and individual member’s profile pages

    G’s Wb Tools always says it’s an issue for my bp sites..
    (missing completely, or duplicate your other pages, or too short)

    This issue was brought up and worked on a bit a few months ago here:
    https://buddypress.org/support/topic/bussdypress-title-and-seo-yoast-problem/#post-236324

    (since then there was some interesting discussion in a trac where I was impressed some of the devs thought about a lot of issues with this – can’t remember the trac # atm)

    I also made a suggestion about this issue here:
    https://buddypress.org/support/topic/page-titles-meta-desc-option-like-wp-permalinks/

    Although there was some great work on this issue recently, I think it’s still far from what the big G wants to see.

    Given the issues with each group’s lack of good (or any) meta name description, and lame page titles, it may actually be more beneficial to block their indexing with a robots.txt file – as having a bunch of issues there affects the ranking for the rest of your site from what I gather.

    #241482
    whoaloic
    Participant

    I just add that I could unset profile public tab:

    /* remove subtabs*/
    function remove_submenu_item() {
        bp_core_remove_subnav_item( 'settings', 'profile' );
    bp_core_remove_subnav_item( 'profile', 'public' );
    }
    add_action( 'bp_setup_nav', 'remove_submenu_item', 100 );
    

    But I need to change the Profile landing subnav to avoid 404 page.

    I found this piece of code but this only for main tab.

    /**
     * Change BuddyPress default Members landing tab.
     */
    define('BP_DEFAULT_COMPONENT', 'profile' );
    #241481
    whoaloic
    Participant

    Hello,
    actually I mean to merge content of members/single/settings/general.php and members/single/profile/edit.php.
    My idea is to get custom BP profile fields (username) along with the email and password fields in the general settings tab.
    When I copy plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/ to mytheme/buddypress/members/single/, those files don’t override plugin core files.

    #241477
    Prabin
    Participant

    Hi @jakobbader.. can you do the followings ?

    1. Most importantly, disable all plugins except BuddyPress.
    2. Also try Switching theme and Check.
    3. Make Sure you haven’t changed core files.

    #241456

    In reply to: Facebook Group

    Henry Wright
    Moderator

    “Your BuddyPress” is a place to show off your wonderful BuddyPress creations. Even though your Facebook group isn’t a BuddyPress creation, it is third-party and seems to be dedicated to BuddyPress so I thought this forum was a fitting place for your post.

    Hope that explains why your topic was moved.

    Hugo Ashmore
    Participant

    >I downloaded buddypress and the template pack too

    Why did you download the template pack, can you tell us what led you to the template pack, that package is quite old and not relevant you shouldn’t need it if you simply allow the BP theme compatibility process to run and copy any files if you need to customize them to your theme as explained in the article linked to above.

    We’d be interested to know what led you to the Template Pack so we can see if we have misleading guides and/or links to it that we can qualify to make things clearer.

    #241451

    In reply to: Facebook Group

    Henry Wright
    Moderator

    [Moved to the “Your BuddyPress” forum]

    Henry Wright
    Moderator

    Take a look at the BuddyPress Template Hierarchy article. That should answer any questions you have.

    #241441
    shanebp
    Moderator

    Please use the code button.

    Store your meta in the bp_activity_meta table when an activity entry is created.
    Then you can use an Activity Meta Query to filter activities.

    Add custom filters to loops and enjoy them within your plugin

    #241432
    danbp
    Participant

    The anser you expect was in your first topic.

    I’ve searched the forum and there are no other topics about this.

    Topic is now closed.

    Next time you want help, give correct details and don’t ask us to see your site without giving his URL.

    #241431
    Anonymous User
    Inactive

    Thank you, danbp.

    I am sure now that BuddyPress is not the right solution for me.

    Nicole

    #241428

    In reply to: Fields Privacy Problem

    danbp
    Participant

    This is a knowed bug, a bit forgotten over the time (2 years back !).
    https://buddypress.trac.wordpress.org/ticket/4821


    @imath
    will look at this this week-end.

    Follow the ticket to see progress, and eventually give feedback if asked for. Login on Trac uses same credentials as here.

    That said, in your specific example, if a visitor knows the phone number of a registered user and try to search him on your site using that number, guess the relation between both is nearly familiar, so privacy is not a big problem, at least for them. 🙂

    #241427
    danbp
    Participant

    Seems you posted twice !
    https://buddypress.org/support/topic/where-i/

    or do you mean the Dashboard ?

    #241426
    danbp
    Participant

    Would it work if I would not connect the “members” page with BuddyPress in the settings, set the page to private and pull the dynamic content for the members list by a stortcode?

    No, no, no. That page is core, must exist and should be blank. Just a (custom) title.

    Do I need to learn to code to use BuddyPress?
    No, but it’s better if you know some basics.

    To make the member directory for loggedin users only, you have to:
    – create a child-theme (is explained on WP and BP codex)
    – copy/paste index.php from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/index.php
    to
    /wp-content/themes/your_child/buddypress/members/index.php

    In this copy, right after <div id="buddypress">, in the existing php opening tag just after, you add if(is_user_logged_in() ):

    At the end of the file, you’ll find the closing div tag of #buddypress.
    Just before this closing tag, again an opening php tag, you add endif; before the do_action you’ll see there.

    If you did it correctly, the directory is now only be visible for loggedin users.

    Some basics:

    open php tag <?php
    closing php tag ?>

    open html tag <div>
    closing html tag </div>

    #241425
    Anonymous User
    Inactive

    Hello danbp,

    So far i understand you use bbPress and now you want a members directory, and eventually some additionnal fields on user’s profiles. And most of this should be private or “members only”, right ?
    >> Correct, combined with private bbpress forums on a website with also public content.

    I have set the “members” page I created as private, but it is still displayed when I go on the page as a logged out user. Why is that so?
    Would it work if I would not connect the “members” page with BuddyPress in the settings, set the page to private and pull the dynamic content for the members list by a stortcode?

    I can read into the codex of course, but do I need to learn to code to use BuddyPress?

    Nicole

    #241424
    danbp
    Participant

    Hi @nmschaller,

    bbPress is a separate plugin and BuddyPress doesn’t manage bbPress. For questions about forum settings, you can use the bbPress support.

    When you use BP groups component, you can add a forum to each of them. In this case only, you have to install bbPress. Of course you can also use bbPress as standalone on a BP install, or use bbPress with WordPress, without BP.

    BP doesn’t use “pages” but templates, and the only pages created during installation are in for internal purpose. The “member” page is used to show the member directory, but also profiles or members activities. This dynamic content is displayed on different templates, depending the context, and using WP’s page system to fire all that via a same page slug (aka internal path).

    your-site/members/some/thing/ where /some/thing/ is using his own template part displayed on “members page”.

    So far i understand you use bbPress and now you want a members directory, and eventually some additionnal fields on user’s profiles. And most of this should be private or “members only”, right ?

    The main problem is that you want some custom behave that need some knowledge (you seem to have), but you cannot edit functions.php Unfortunately, this is the place where to add customisation. And what to tell about bp-custom, which is another crucial cusmisation file.

    You want to drive and have no steering wheel ! Annoying… 😉

    The question is Do you need BuddyPress or can you use another solution ? 🙂

    Depends your project, really. Members directory or extended profiles can be done with separate plugins.

    Read here:
    http://chrislema.com/best-wordpress-membership-plugin-2014/

    Or digg into the Codex if you decide to use BuddyPress.

    #241419

    In reply to: Where i

    danbp
    Participant

    Salut,

    the problem is that js is only loaded on the original modification page. To get the new UI, you have to use another filter.

    https://buddypress.trac.wordpress.org/browser/trunk/src/bp-core/bp-core-avatars.php#L1833

    Soufflé par @imath despite the heat (we :sweat: in Paris today)

    function change_profile_picture(){         
            add_action( 'bp_template_content', 'change_profile_picture_screen_content' );
    		xprofile_screen_change_avatar();   
    }
    add_filter('bp_avatar_is_front_edit', 'filter_changeavatar_template');

    You would probably also remove the original Change Avatar tab from Profile subnav ? Use this:

    function bpfr_remove_change_avatar_tab() {
    global $bp;
    	bp_core_remove_subnav_item( 'profile', 'change-avatar' );
    }
    add_action( 'bp_ready', 'bpfr_remove_change_avatar_tab', 15 );

    Have fun !

    pryde1919
    Participant

    Hi yes, it was not buddypress code, what I wanted is to substitute the <i class=”fa fa-user”></i> with buddypress avatar, and I don’t know what code shall I put to make it buddypress avatar. and yes it was generated by a plugin, it show author’s postname.

    Henry Wright
    Moderator

    I doubt <i class=”fa fa-user”></i> is inserted by BuddyPress. Is it generated by a plugin?

Viewing 25 results - 12,526 through 12,550 (of 69,016 total)
Skip to toolbar