Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 12,426 through 12,450 (of 68,932 total)
  • Author
    Search Results
  • #241568
    djsteveb
    Participant

    @baldarab

    I see how you are using groups – so it does appear that links to them are easily discoverable from your public facing pages.

    If you do a view source and look at your code for each of your groups, you will notice that the page title is exactly the same for all of your groups ( <title>Activities – Freaky Rivet</title> ) – and there is no meta name description =

    Two major issues for the big G.

    Which version of buddypress are you using?

    This problem concerns me so much that I have kept one of my sites with an older version of buddypress (2.2.3.1 ) with the cobbled custom code I was able to get from wpmudev ( http://premium.wpmudev.org/forums/topic/bp-meta-tite-description-for-groups-and-members-pages#post-806736 ) – the cobbled code may work the newer version of bp – but things are quite confusing with how wp has changed up some of the title thing, and bp has it’s way of things and there are possible conflicts with priority or something..

    The discussion on this trac ticket( https://buddypress.trac.wordpress.org/ticket/6107 ) says things have been “fixed” – I do appreciate the devs working on it a bit – but I have a feeling the fix is more of a “make it work in a semi-okay way with a couple of setups” – not much as far as giving users real control over the titles and descriptions.

    I am guessing people will point to theme designers to hook this up, and they will point to “we use wordpress’s suggested way of title-ing (wp the title or whatever) – and so it’s wp/bp issue, and descriptions should be handled my an seo plugin – but given that bp’s pages are pseudo pages without any taxonomy registered, it appears that yoast and others have so desire to work with it.

    This is my current understanding, and may be not 100% accurate – what I gather after posting many questions and issues relating to this in various places.

    I’d pay someone to code a plugin that gives options for bp meta stuff like the suggestion I posted before, and give it to the community. If I could understand all the bp/wp code and php I’d gladly make it. It seems the BP coders are spread a bit thin, so I have no good options for fixing this issue at the moment.

    danbp
    Participant
    #241565
    danbp
    Participant

    Is this the only part where you can’t access ?

    Ensure you followed correctly all install instructions

    Installation in WordPress Multisite

    BuddyPress does not work on installations where you give WordPress its own directory.

    Quinn Goldwin
    Participant

    THANK GOD, I FINALLY GOT IT!!!

    I’m going to share what I did with the community so they dont have to go through the crap I went though.

    The directions that buddydev.com gives you is dated and didnt work with my theme. Since my theme did not have a activity.php I had to change out the file located in buddypress plugin ….

    /plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/activity.php

    inside that file go to line 48 should be something like this

    if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( ‘just-me’ ) ) )

    ALL I CHANGED WAS THAT LINE OF CODE ABOVE TO THIS

    if ( is_user_logged_in() && bp_is_my_profile() && ( ” == bp_current_action() || ‘just-me’ == bp_current_action()||BPCOM_ACTIVITY_SLUG == bp_current_action() ) )

    IF YOU USE ANY OF THE CODE FROM BUDDYDEV SITE http://buddydev.com/buddypress/show-buddypress-communitysitewide-activity-on-user-profile/#comment-1497563 WITH ALL THE <?PHP BREAKS. IT WILL NOT WORK.

    NOTE: For some reason when I tried to add this file to my theme folder, it broke my Activity stream, I didnt design the theme so I have no clue why it would be doing that. So if you add this to the buddypress plugin you will have to replace that file everytime you update buddypress.

    HOPE THIS HELPS, THIS TOOK ME A BETTER PART OF A DAY ALMOST 2 DAYS TO ADD A POST FORM FOR THE ALL ACTIVITY IN PROFILE ON THE BOSS THEME. I HOPE IT HELPS THE COMMUNITY NOT HAVE THE FRUSTRATIONS I DID

    PLEASE SHOW ME SOME LOVE AND SHARE MY WEBSITE ON YOUR BLOG OR COMMENT ON MY SITE.

    http://www.modeltmedia.com
    http://www.industrycallsheet.com

    Quinn Goldwin
    Participant

    Never mind I used this css coding to add line breaks, still not perfect but it looks so much better than it used to!

    #buddypress table.profile-fields p {
    	margin-top: 10px !important;
    	margin-bottom: 10px !important;
    }
    
    Quinn Goldwin
    Participant

    Thanks Henry and Mercime, yes I updated the Trac Ticket. Would you guys know of a css quick fix until they update the core of buddypress?

    danbp
    Participant

    You found the right solutions, but you haven’t to use them in theme’s functions.php but in the template.
    Template files are stored in bp-templates/bp-legacy/buddypress
    activity-loop.php is in bp-templates/bp-legacy/buddypress/activity/

    Create a child-theme and do your changes from there.

    Theme Compatibility & Template Files

    Template Hierarchy

    @mercime
    Participant
    #241544

    In reply to: Divi Compatibility?

    @mercime
    Participant

    @serfma They posted a walk-through about setting up BuddyPress last year using the Divi 2.0 theme at http://www.elegantthemes.com/blog/tips-tricks/an-introduction-to-buddypress Check with them though if current Divi version is compatible with latest BuddyPress version.

    #241542
    Henry Wright
    Moderator

    Please don’t double post

    danbp
    Participant

    There is a ticket about this issue. See if you’re concerned and don’t hesitate to mention your issue and this topic.

    You can login to Trac with same credentials as here

    Henry Wright
    Moderator

    Right. So it looks as though it could be something the BuddyPress core team might need to look at. Can you open a Trac ticket explaining how the profile fields are displaying in the wrong order? If you could provide as much info as you can that’d be great.

    You can use the same username and password as you use here in the forums.

    Quinn Goldwin
    Participant

    Hey Henry yup it even happens on the 2015 theme. I recently updated to buddypress 2.3.2 .. I also deactivated every plugin I had. its something in buddypress mobile coding they added in 2.3.

    Henry Wright
    Moderator

    The activity post form that is displayed on the site-wide activity page can be found here. You could use a modified version of that in your profile template?

    Henry Wright
    Moderator

    You could use bp-custom.php for this if a hook is available but an alternative method would be to override the template. Check out the BuddyPress Template Hierarchy article for more info. This approach gives you more control over what exactly is to be displayed on your website.

    #241523

    In reply to: Extended profiles

    Henry Wright
    Moderator

    This can be accomplished using BuddyPress. As to whether you’ll need plugins or custom code, I’d be tempted to say you’ll need to go down the custom route because I haven’t seen a plugin that will do this for you (I may be wrong so check the Plugin Directory first).

    Prabin
    Participant

    @danbp, I have an issue..

    I have “Most Agreed” option in single group page. but the query is not returning desired value.
    can you look into this?

    Here’s the Screenshot
    Most Favourite dropdown

    and Here’s the code

    
    if( class_exists( 'BP_Group_Extension' ) ) :
    
    class bpgmq_feature_group {
    
    public function __construct() {
    $this->setup_hooks();
    }
    private function setup_hooks() {
    $bp = buddypress();
    
    add_filter( 'bp_ajax_querystring', 'custom_filter_ajax_querystring' , 999, 2 );
    // you need to do it for the group directory
    add_action( 'bp_group_activity_filter_options', array( $this, 'agreed_option' ) );
    
    }	
    public function agreed_option() {
    ?>
    <option value="featured"><?php _e( 'Most Agreed' ); ?></option>
    <?php
    }
    
    }
    
    function custom_filter_ajax_querystring( $querystring, $object ) { 
    #var_dump($querystring);
    if($object != 'activity' )
    return $querystring;
    
    $defaults = array('type'=>'active','action'=> 'active','scope'=> 'all','page'=>1,'order'=>'DESC');
    
    #exit;
    /*if( $bpgmq_querystring['type'] != 'featured' ) 
    return $querystring;*/
    $bpgmq_querystring = wp_parse_args( $querystring, $defaults );
    if( $bpgmq_querystring['type'] == 'featured' ){
    $bpgmq_querystring['meta_query'] = array(array('key'=> 'favorite_count','value'=> 1,'type'=> 'numeric','compare' => '>='));
    
    return apply_filters( 'bpgmq_filter_ajax_querystring', $bpgmq_querystring, $querystring );
    }
    var_dump($querystring);
    }
    
    function bpgmq_agreed_group() {
    if( bp_is_active( 'activity') )
    return new bpgmq_feature_group();
    }
    
    add_action( 'bp_init', 'bpgmq_agreed_group' );
    endif;

    Thanx in Advance

    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' );
Viewing 25 results - 12,426 through 12,450 (of 68,932 total)
Skip to toolbar