Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 8,326 through 8,350 (of 69,109 total)
  • Author
    Search Results
  • #264109

    In reply to: Can’t edit

    r-a-y
    Keymaster

    This should be fixed in BuddyPress 2.8.1.

    Upgrade to v2.8.1.

    #264104
    Julian
    Participant

    Hey Henry,

    Thank you so much! That worked perfectly.

    I forgot to mention though that the “Name” profile field still shows up on theer BuddyPress profile page. Do you know any code that I could use to hide that field?

    Thanks so much

    Humiges
    Participant

    Dear @djpaul ,
    please ignore my previous reply.

    I found out that the // ‘activity_update’, works a bit TOO well/much ๐Ÿ˜‰ , since it also removes the activity information about the new comments created in blogs.

    Please, is there any specific removal as // ‘activity_update’, — however, this one only removes those which are posted in Buddypress Profiles?

    This would mean… I would still see:
    [username] commented the post [postname]

    However, if someone replies the BuddyPress activity/comments the
    [username] posted a new activity comment
    Will not show/ create.

    Thank you very much

    #264101
    Henry Wright
    Moderator

    You have 2 options. I’d recommend the 2nd:

    1: Copy and paste the JavaScript to your my-theme/buddypress/members/register.php template. In this case you’ll need to copy the <script> tags also.
    2: Create a separate file (my-theme/js/script.js for example) and paste the JavaScript into that. In this case you don’t need to copy the <script> tags. If you go down this route you will need to enqueue the script. See this article for info on how to do that:

    wp_enqueue_script()

    #264099
    Henry Wright
    Moderator

    Is that possible?

    Yes but you’ll need to install some plugins and maybe write some custom code to get the functionality you need.

    Check out the Getting Started article

    Getting Started

    #264097
    r-a-y
    Keymaster

    BuddyPress does not touch the login page.

    You are using a different plugin to do this or some rewrite rules on your server.

    #264095
    Henry Wright
    Moderator

    Hey @kdannay

    Is BuddyPress actually sending รขโ‚ฌโ€œ or is the problem at your client’s end? i.e. your client’s email client can’t display the โ€“ character properly?

    #264092
    Henry Wright
    Moderator

    I just spoke with Boone, he suggested a reinstall of BuddyPress is needed because it looks as though your upgrade didn’t complete properly. bp-core-functions.php shouldn’t contain a reference to the BP_Core_Sort_By_Key_Callback class because the class was removed in 2.8.0.

    #264082
    coolhunt
    Participant

    I found this handy

    It works in BP-custom.php — im trying to get it to load instead of “alphabetical”

    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) ) exit;
     
    class BP_Loop_Filters {
     
        /**
         * Constructor
         */
        public function __construct() {
            $this->setup_actions();
        }
     
        /**
         * Actions
         *
         * @uses bp_is_active()
         * @uses is_multisite()
         */
        private function setup_actions() {
            /**
             * Adds the random order to the select boxes of the Members, Groups and Blogs directory pages
             */
            // Members component is core, so it will be available
            add_action( 'bp_members_directory_order_options', array( $this, 'random_order' ) );
     
            // You need to check Groups component is available
            if( bp_is_active( 'groups' ) )
                add_action( 'bp_groups_directory_order_options',  array( $this, 'random_order' ) );
     
            // You need to check WordPress config and that Blogs Component is available
            if( is_multisite() && bp_is_active( 'blogs' ) )
                add_action( 'bp_blogs_directory_order_options',   array( $this, 'random_order' ) );
        }
     
        /**
         * Displays a new option in the Members/Groups & Blogs directories
         *
         * <a class="bp-suggestions-mention" href="https://buddypress.org/members/return/" rel="nofollow">@return</a> string html output
         */
        public function random_order() {
            ?>
            <option value="random"><?php _e( 'Random', 'buddypress' ); ?></option>
            <?php
        }
     
    }
     
    // 1, 2, 3 go !
    function bp_loop_filters() {
        return new BP_Loop_Filters();
    }
     
    add_action( 'bp_include', 'bp_loop_filters' );
    
    #264078
    Colourscope
    Participant

    OK this was the error when I did the wp-debug:

    Fatal error: Call to undefined function bp_is_front_page() in /home/longmans/public_html/positiveplusone.com/wp-content/plugins/bp-custom.php on line 21

    I deactivated all plugins and the site was showing.

    I re-enabled BuddyPress as the first plugin and the site did not show when I pressed View Site.

    It’s the BuddyPress plugin but I don’t know what/how to fix it.

    #264077
    aido141176
    Participant

    I want to list the activity for a specific group, not list of groups. I have not continued withe template method danbp. I’ve tried everything you mentioned including the bp_parse_args(). I just couldn’t get it to work. I could get it change the amount of list items but not display a selected group activity.

    But I have gone back to using the activity loop now, trying to incorporate the code you gave me.

    Here is the activity loop, how would you incorporate your code above:

    <?php if ( bp_has_groups() ) : ?>
     
        <div class="pagination">
     
            <div class="pag-count" id="group-dir-count">
                <?php bp_groups_pagination_count() ?>
            </div>
     
            <div class="pagination-links" id="group-dir-pag">
                <?php bp_groups_pagination_links() ?>
            </div>
     
        </div>
     
        <ul id="groups-list" class="item-list">
        <?php while ( bp_groups() ) : bp_the_group(); ?>
     
            <li>
                <div class="item-avatar">
                    <a href="<?php bp_group_permalink() ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ) ?></a>
                </div>
     
                <div class="item">
                    <div class="item-title"><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></div>
                    <div class="item-meta"><span class="activity"><?php printf( __( 'active %s ago', 'buddypress' ), bp_get_group_last_active() ) ?></span></div>
     
                    <div class="item-desc"><?php bp_group_description_excerpt() ?></div>
     
                    <?php do_action( 'bp_directory_groups_item' ) ?>
                </div>
     
                <div class="action">
                    <?php bp_group_join_button() ?>
     
                    <div class="meta">
                        <?php bp_group_type() ?> / <?php bp_group_member_count() ?>
                    </div>
     
                    <?php do_action( 'bp_directory_groups_actions' ) ?>
                </div>
     
                <div class="clear"></div>
            </li>
     
        <?php endwhile; ?>
        </ul>
     
        <?php do_action( 'bp_after_groups_loop' ) ?>
     
    <?php else: ?>
     
        <div id="message" class="info">
            <p><?php _e( 'There were no groups found.', 'buddypress' ) ?></p>
        </div>
     
    <?php endif; ?>

    I’m sorry if this is annoying you, I do appreciate your help. I’ve only been working with buddypress for about a week.

    Thanks

    #264076
    danbp
    Participant

    Did you read the related documentation ? Specially the one related to the groups-loop ?

    Groups Loop

    My previous answer contained a solution to do that programmatically. But you (continue to) use the template method. If you want this method, see the mentionned groups-loop.

    #264075
    danbp
    Participant

    Hi,

    you need a child theme and a small code modification.

    The code is explained here.

    if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) is to replace by something like (can be different)
    if ( bp_has_members( 'type=random' ) )

    In a “buddypress” folder of your child theme, you add a copy of this file:
    wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php

    What ever you modify in that file while now be interpreted by BuddyPress. The advantage of this method is that BP can be updated while your modification in the child will always be save and taken in account over the current version.

    You can also search the forum for members-loop to get other information.

    r-a-y
    Keymaster

    Disable the “Site Tracking” component under “Settings > BuddyPress” in the WP admin dashboard. When you do this, blog posts and blog comments will not be recorded into the BP activity stream.

    jeffm2008
    Participant

    While we are at it, is there a way to disable my blog posts from automatically showing up as my buddypress activity posts? Thank you very much in advance.

    #264066
    r-a-y
    Keymaster

    1,2,3,4,6 should be left to WordPress plugins as these are specific to WP.

    7, 10 have been discussed as core options. It just takes time for developers and the team to finalize specs and to code as this is all done on a volunteer basis. 10 is hard because it relies on a ton of dependent code that hasn’t been written or finalized yet.

    5 – There’s been some preliminary work on this. See https://github.com/buddypress/bp-types-ui.

    9 – If you’re using WordPress multisite, this should be already available as a WordPress option under “Network Admin > Settings”. Otherwise, this plugin might work, but does the opposite. It restricts signup to email domains that you specify.

    Notifications

    2 should already be in core.
    3 is a good request, but unreliable due to how the notifications data is stored. It would be easy to do for BP core notifications, but notifications generated by plugins could store the user ID differently, making this unreliable.
    4 could be done via a custom template or via a small code snippet.

    r-a-y
    Keymaster

    If the post contains an inappropriate word that you’ve set up in WP’s comment moderation settings, then BuddyPress also inherits these settings. This functionality was added in BP 2.6.0.

    To disable this functionality from the Activity component, add the following to your theme’s functions.php or wp-content/plugins/bp-custom.php:

    // Do not use WP's Comment Moderation with BP Activity component
    remove_action( 'bp_activity_before_save', 'bp_activity_check_moderation_keys', 2, 1 );
    
    // Do not use WP's Comment Blacklist with BP Activity component
    remove_action( 'bp_activity_before_save', 'bp_activity_check_blacklist_keys',  2, 1 );
    
    #264054
    danbp
    Participant

    Hi Jody,

    BP pages should be empty, so it is normal you see only a title in the page preview. These pages are dynamic and completed by BP, depending the context. As site owner, you have nothing to add to them.

    To get the page system to work correctly, you have to enable the permalinks. You can choose any option, except “by default”. Don’t forget to save your setting.

    For more details, please read the documentation.

    I visited your site, but was unable to access the member directory page or site activity page. Seems you require user to be logged in to access them… ๐Ÿ™

    #264052
    coolhunt
    Participant

    @danbp

    Big thanks! its definitely got me to the right direction..
    though… im a little nervous to make updates on Buddypress.js

    -im trying it out now on twenty seventeen

    #264050
    danbp
    Participant

    When you are on frontend, your profile tab, you should see follwing menu items under the buddy nav bar:

    View | Edit | Change Profile Photo | Change Cover Image

    and the same items under your user menu (below Howdy), in the top right corner on the Toolbar, as submenu of the Profile item.

    If it isn’t case, some common issues can be:
    – you omitted to save your BP options
    – you use a cache and see the site content from before BP installation
    – there is a weird bug in a file
    – your theme isn’t taylored for BuddyPress
    – there is a conflict with another plugin

    What you could try:
    – double check your settings
    – clear the cache
    – reload a fresh copy of BP via FTP
    – test with a Twenty theme
    – you have to debug

    Note also that you can only load ONE avatar or ONE cover image at a time and that you have definitely only one picture for each bundled with your account.

    #264049
    johanna75
    Participant

    I use the BP PROFILE SEARCH plugin (mandatory for members search form i think… because if Deactivate it search form deseapered)
    and SuitePlugins – Advanced XProfile Fields for BuddyPress

    #264047
    djsteveb
    Participant

    @johanna75 – very interesting – I wonder if this happens with the other buddypress search plugins as well. I assume you are using the standard bp members search not one of the add on profile search plugins?

    #264035
    aido141176
    Participant

    Hi danbp, thank you for your response. Unfortunately I’m not sure how I can get this to work.

    Can you please show me a loop that will show all activity for say a group with ID 2. Or even with a slug, say ‘group_slug’.

    Here is the loop I am using:

    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . "&primary_id=2" ) ) : ?>
    
    <?php while ( bp_activities() ) : bp_the_activity(); ?>
     
            <?php locate_template( array( 'buddypress/activity/entry.php' ), true, false ); ?>
     
        <?php endwhile; ?>
    <?php endif; ?>

    I tried both to incorporate your code into the activity loop but it didn’t work.

    I want display this activty not on a buddypress page. I want it to go on homepage. I can already get the group ID I just want to be able to make a loop that displays the activity of a curtain groupusing the group ID.

    If you could show me a whole complete loop that would work I would be really greatful.

    Thanks

    danbp
    Participant

    You have already asked for this in the past 2 weeks!
    How to add a tab or content (like user’s post) on a profile is explained in many topics if you would take a little while to search the forum.

    You want to use a third party plugin, but we can’t help you for this as we are all volonteers here, who have enough to do with BuddyPress. It is to you to read the software documentation and built it in your site.

    This topic is closed as duplicate. Conversation continues here.

    #264030
    danbp
    Participant

    Hi,

    you have to use a group_id and to ensure you’re in an appropriate loop (activity or group)

    To get a group id, you can for ex. do:

    // check for a group ID
    	if( bp_has_groups() ) {
    		// Grab current group ID
    		bp_the_group();
    		$group_id = bp_get_group_ID();
    	}	
    	
        // apply our changes only to this group ID's
    	// conditionnal action
    	if ( $group_id == 22 OR $group_id == 8 ) {  

    … and so on!

    You may also use bp_parse_args, depending where you use your custom work. In other words, you can create a complete new activity loop on a distinct page template for only one group.

    Using bp_parse_args() to filter BuddyPress template loops

Viewing 25 results - 8,326 through 8,350 (of 69,109 total)
Skip to toolbar