Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 17,101 through 17,125 (of 94,565 total)
  • Author
    Search Results
  • #247661
    nilay89
    Participant

    Hello

    I want change layout of all buddypress page but i can’t change any file.

    See below

    I have copy “buddypress” folder from

    plugins\buddypress\bp-templates\bp-legacy

    And paste here

    themes\twentythirteen\buddypress\bp-templates\bp-legacy

    and edit below path file

    \twentythirteen\buddypress\bp-templates\bp-legacy\buddypress\members\single\home.php

    But change not show in frontend

    Wordpress Version : 4.4
    BuddyPress Version: 2.4.2
    Theme use: Twenty Thirteen

    I am working on my local wamp server

    #247653
    bruce30
    Participant

    hi @browserco ., did you try to uncheck the Friend Connection under the Buddypress component?
    if not. Go to admin dashboard, go to settings, click buddypress,. and under components you can see there the Friend Connections try to uncheck it., i hope this is what you mean and this will help you. 🙂

    #247645
    kennibc
    Participant

    Thanks. That indeed did the trick. However, if I view an individual profile and click on the profile field it shows a page with others who have the same profile term and uses the wrong format again. That is baked into the buddypress profile page. I cannot change that.

    see this page and click on the school building tag in the profile: http://iblog.dearbornschools.org/members/kieselh/profile/

    Then try the pagination. It’s broke because it uses ?s_= and that is generated by Buddypress for the custom profile.

    #247644
    r-a-y
    Keymaster

    Disable starring messages with this snippet in wp-content/plugins/bp-custom.php:

    add_filter( 'bp_is_messages_star_active', '__return_false' );

    To remove the ‘Delete’ link from the messages inbox, you’ll have to override the inbox template and remove the ‘Delete’ link.

    Read the Overloading Template Compatibility theme files section of this codex article for more info.

    The template you’ll want to copy over to your theme to override is this one:
    https://buddypress.trac.wordpress.org/browser/tags/2.4.2/src/bp-templates/bp-legacy/buddypress/members/single/messages/messages-loop.php

    #247642
    r-a-y
    Keymaster

    See my note here:
    https://buddypress.org/support/topic/bp-2-4-breaks-on-page-2-of-custom-search-results/#post-247017

    You have to rename the parameter to members_search for BP 2.4.2 in your custom page content.

    #247641
    danbp
    Participant

    Hi,

    best solution is to use the built-in filter, instead of modifying tinymce which may affect all editors.

    I provided a working example here:
    https://buddypress.org/support/topic/suppressing-rich-text-on-xprofile-text-area/#post-247640

    #247635
    lolotrgeek
    Participant

    Oops hit reply not edit! well…

    Here’s the solution I arrived at:

    function filter_change_email_subject ( $email_subject, $sender_name, $ud ) {
    	$email_subject = sprintf( __('%1$s wants to say hello', 'buddypress' ), $sender_name);
    	return $email_subject;
    }
    add_filter( 'messages_notification_new_message_subject', 'filter_change_email_subject' , 10, 7 );

    This works for what I’m doing, for someone else that wants to pass a dynamic subject you may need to nest this function.

    #247634
    @mcuk
    Participant
    #247633
    @mcuk
    Participant

    After a lot of searching I’ve put this together. It appears to remove the ability of normal site users to use the rich text area editor in ‘multi line text areas’. Its use now allows jQuery functions for character limits to be applied to the text area which was not possible when tinymce was active.

    function bptest_remove_tinymce() {
    	if ( !is_super_admin() ) {
    	tinymce.activeEditor.getBody().setAttribute( 'contenteditable', false );
    	}
    }
    add_action( 'wp_footer', 'bptest_remove_tinymce' );

    Note that the is_super_admin() is included. Without it the WP bar at the top of the screen which is used to access dashboard etc disappears.

    Then to remove the remaining Visual/Text tabs attached to the text area, use the CSS display:none on the relevant div id.

    I am still very curious as to whether there are better methods for excluding the rich text editor / tinymce from Buddypress (across the site and/or targeting specific text areas). Would appreciate any input from anyone more in the know!

    Thanks

    #247629

    In reply to: wall page

    shweikiart
    Participant

    I’m using boss theme, no i didn’t ask them, I thought it is buddypress issue
    what about activity filter?

    Henry Wright
    Moderator

    You can open a bug report for this on Trac (the login details will be the same as those you use here in this forum).

    #247611
    browserco
    Participant

    Hi, I want to remove the ‘add friend’ button for a specific member type in my buddypress site. I don’t want them to have friend requests from anyone.

    I tried to write this code but it does not work:

    function remove_bp_add_friend_button(); {

    $member_type = bp_get_member_type( bp_displayed_user_id() );

    if ( ‘business’ === $member_type ) {
    ‘remove_bp_add_friend_button’;
    }
    }

    Anyone can help with this?

    #247605
    Max Zhubr
    Participant

    Hi there!

    Is there a way to make tabs (like groups, events) in profile menu hidden to other users, except owner of profile?

    #247600
    old account
    Participant

    Error: “You do not have sufficient permissions to access this page.”

    This happens when clicking on ‘Pending’ in Users when BuddyPress is activated only on main site of multisite install but, you can see pending users at /wp-admin/network/users.php?page=bp-signups i.e. network side.

    @imath posted a working patch for this issue which is scheduled for BP 4.4 branch (hopefully)
    https://buddypress.trac.wordpress.org/ticket/5977

    Hope this helps.

    #247591
    jturet
    Participant

    Hello, I am attempting to override the following function:

    /**
     * Locate a custom group front template if it exists.
     *
     * @since 2.4.0
     *
     * @param  BP_Groups_Group|null $group Optional. Falls back to current group if not passed.
     * @return string|bool                 Path to front template on success; boolean false on failure.
     */
    function bp_groups_get_front_template( $group = null ) {
    	if ( ! is_a( $group, 'BP_Groups_Group' ) ) {
    		$group = groups_get_current_group();
    	}
    
    	if ( ! isset( $group->id ) ) {
    		return false;
    	}
    
    	if ( isset( $group->front_template ) ) {
    		return $group->front_template;
    	}
    
    	$template_names = apply_filters( 'bp_groups_get_front_template', array(
    		'groups/single/front-id-'     . sanitize_file_name( $group->id )     . '.php',
    		'groups/single/front-slug-'   . sanitize_file_name( $group->slug )   . '.php',
    		'groups/single/front-status-' . sanitize_file_name( $group->status ) . '.php',
    		'groups/single/front.php'
    	) );
    
    	return bp_locate_template( $template_names, false, true );
    }
    

    My new function replaces

    'groups/single/front-slug-' . sanitize_file_name( $group->slug ) . '.php',

    with

    'groups/single/front-slug-' . sanitize_file_name( current(explode("/", $group->slug)) ) . '.php',

    but that is not the important part. My real question is how can I override/replace this function in my theme’s functions.php file. (Want to keep things upgrade-proof!)

    Thanks in advance!

    #247580
    Emineminero
    Participant

    Hi, this is a known “issue” i have read every single topic here, i even run a script on my database.
    The thing is that in /members it only show the amount of users that had logged in after buddypress was installed. Before the Buddypress instalation i had 2000 users, now i have 4000+, so in /members the member count only counts those 4000 users.
    I run a script (created a mu-plugin) that goes user by user (foreach) and gave a last_activity time stamp. (Thats what i read in lots of forums, buddypress uses last_Activity to determine if the user is a buddypress or a WP user).
    Didnt work, the pre-buddypress users dont show up.
    I dont know what to do, in the front page of my site im saying that the site has over 6000 users and in /members it says that are only 4000. Im losing credibility.
    Other people suggested that selecting another filter like “Alphabetically” or “Last registered” should show all the users… Thats not my case.
    Wordpress version: 4.3
    Buddypress version: 2.4
    Im using a custom theme that uses this to show the amount of users:

    <div id="pag-top" class="pagination">
    
    		<div class="pag-count" id="member-dir-count-top">
    
    			<?php bp_members_pagination_count(); ?>
    
    		</div>
    
    		<div class="pagination-links" id="member-dir-pag-top">
    
    			<?php bp_members_pagination_links(); ?>
    
    		</div>
    
    	</div>
    #247579
    Alicia Fritz
    Participant

    Hi,

    I use buddypress for my site but its login override default wordpress login box. I don’t want it because visitors will have to sign up twice.

    Can I retrieve default wordpress login back and use buddypress login in my custom page (I want to put a CTA button in my homepage directing to a login page)?

    Please let me know if I have submitted a question in the wrong thread.

    Thank you.

    Alicia Fritz Herman.

    #247576
    john_pawson
    Participant

    Hi there,

    I’m developing an intranet site for a client – I’m (very) new to the world of PHP, so I’m struggling with getting things customised with the buddypress part of the site. I’m after some pointers for hiding a notifications/new messages count if it’s 0. I’ve managed to get these showing in my user menu using the following code:

    <?php
    // hacks and mods will go here
    
    function my_counter_nav_menu($menu) {  
    
    $notif_url = bp_core_get_user_domain(bp_loggedin_user_id()) .'notifications/';
    $friends_url = bp_core_get_user_domain(bp_loggedin_user_id()) .'friends/'; 
    $msg_url = bp_core_get_user_domain(bp_loggedin_user_id()) .'messages/';    
          
        if (!is_user_logged_in())
            return $menu;
        else
            $notif = '
    
    <li class="notify"><a href=" ' .$friends_url. ' ">Connections <div class="friendnumber topnavcount">'.friends_get_friend_count_for_user( bp_loggedin_user_id() ) .'</div></a></li>
    <li class="notify"><a href=" ' .$notif_url. ' ">Notifications <div class="notifynumber topnavcount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ).'</div></a></li>
    <li class="notify"><a href=" ' .$msg_url. ' ">Messages <div class="messagenumber topnavcount">'.bp_get_total_unread_messages_count( bp_loggedin_user_id() ) .'</div></a></li>
    
    ';
    				
        $menu = $menu . $notif;
        return $menu;
    }
    add_filter( 'wp_nav_menu_items', 'my_counter_nav_menu' );
    
    ?>

    My first issue was that these new menu items were showing up on both the main nav and the user menu of the site, but I’ve fixed that by applying the classes shown and hiding them using CSS (something I’m much more familiar with!)

    What I need is someone kind to spell out exactly what I need to do to hide the counts for notifications and unread messages above if they’re 0. The friends bit I’m not so worried about as I may either change how that works or drop it entirely (its a corporate client). I’ve already tried a number of javascript options to remove the div if the content is 0… but guess what, I’m as great at javascript as I am at PHP!

    Thanking everyone here in advance – it was only by searching these forums that I was able to get this far, so I appreciate all the effort everyone goes to to help people like me out!

    John

    #247572

    In reply to: Registration page

    @mercime
    Participant

    @shweikiart WP/BP versions? Have you tried deactivating all other plugins except BuddyPress then change to the Twenty Fifteen theme?

    #247570
    reedy
    Participant

    I installed WP Crontrol and saw nothing out of the ordinary:

    ws_plugin__s2member_auto_eot_system__schedule
    _cron_zencache_cleanup
    bp_activity_akismet_delete_old_metadata
    wp_maybe_auto_update
    wp_version_check
    wp_update_plugins
    wp_update_themes
    akismet_scheduled_delete
    wp_scheduled_delete
    wp_scheduled_auto_draft_delete

    Earlier today I added the following to my functions.php file:

    add_filter( 'bp_activity_do_mentions', '__return_false' );

    No @mention emails were generated since then. As soon as I commented that code out, within 5-10 minutes thirteen @mention email notifications went out – all with links to content that is years old (pre-import).

    I’ve therefore put the filter back into functions.php and can only assume I’ll have to do without the @mention functionality of buddypress.

    I appreciate everyone’s help up to this point.

    #247565
    Henry Wright
    Moderator

    @reedy to my knowledge BuddyPress doesn’t implement any cron jobs, especially ones that send email.

    they seem to more or less be coming out every time a page is loaded

    This indicates something is hooked to init, or bp_loaded etc. But that would almost certainly be custom code because nothing in BuddyPress or bbPress would hook to those events and send email.

    Have you fully disabled the importer script?

    #247557
    reedy
    Participant

    My host said emails are STILL being sent out.

    Can anyone suggest an interim solution (other than switching off my mailserver completely) to stop these emails going out?

    Evidently placing the code below in functions.php had no effect:

    //buddypress stop mention emails //
    remove_action( 'bp_activity_sent_mention_email', 'bp_activity_at_message_notification', 10, 5 );
    //End buddypress stop mention emails //
    #247553
    shanebp
    Moderator

    You could use this action hook, found in :
    buddypress\bp-messages\classes\class-bp-messages-message.php
    do_action_ref_array( 'messages_message_before_save', array( &$this ) );

    Untested, but try:

    function block_the_jerk( $message_info ) {
    
       if( $message_info->sender_id == 666 )  // change 666 to jerk's user_id
           unset( $message_info->recipients );
    
       return $message_info;
    }
    add_action( 'messages_message_before_save', 'block_the_jerk');

    This should remove all recipients – causing the send message function to return false.
    I’m not sure what if any feedback the jerk will see.

    #247552
    reedy
    Participant

    OK, just so we’re on the same page I’ll give the URIs as I respond.

    Having looked into my notifications feed here:

    /members/member-name/notifications/

    I see that notifications were indeed coming in in ‘batches’, too.

    For example:

    All refer to pre-import mentions.

    HOWEVER, no notifications for pre-import activity appear there from the time I ran the below mySQL query yesterday:

    UPDATE bp_notifications SET is_new=0 WHERE is_new=1

    So that seems to have had some effect (yet emails continued to go out).

    As for activity entries being created, if I go to:

    /members/member-name/activity/

    … it contains all activity from the start of time (post-import and pre-import activity).

    bbpress told me this is a buddypress issue since buddypress generates the @mention email notifications.

    A couple of hours ago I added this to my functions.php file:

    //buddypress stop mention emails //
    remove_action( 'bp_activity_sent_mention_email', 'bp_activity_at_message_notification', 10, 5 );
    //End buddypress stop mention emails //

    Hopefully that will stop new emails from going out. Not the ideal solution, though as it also blocks mentions for anything post-import, too (I believe).

    #247551
    shanebp
    Moderator

    Because emails are being sent, a lot of notifications were created too, correct?
    Are the notifications being created in ‘batches’ ala the emails?
    And were any activity entries created?

    afaik – BuddyPress only handles @ mentions in the context of activity, hence:
    add_filter( 'bp_activity_do_mentions', '__return_false' );

    If true, then bbPress is parsing @ mentions in forum posts and creating BP notifications which result in emails being sent.

    I don’t have a solution – just trying to outline the sequence.
    Very curious to know why, given that the email server queue isn’t massive, there seems to be a throttle on the process.

    Have you tried asking bbPress about this?
    You may need to open a ticket to get a useful response. If you do, please share it here.

Viewing 25 results - 17,101 through 17,125 (of 94,565 total)
Skip to toolbar