Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 21,176 through 21,200 (of 94,541 total)
  • Author
    Search Results
  • #234406
    carolaword
    Participant

    you need to download poedit software, and look for the language file buddypress-en_US.po open it and use it as you are translating the plugin. Use the search tool for “Groups” and everytime it turns out replace that word for “Circles” and upload that file again.
    That’s it.

    #234404
    shanebp
    Moderator

    Take a look at this file:
    buddypress\bp-messages\bp-messages-actions.php
    In function messages_new_message there is this hook:
    do_action_ref_array( 'messages_message_sent', array( &$message ) );

    #234402
    spongo
    Participant

    Hey guys !

    I am searching since one week for a solution of my problem.

    My idea is to create 2 icons in my topbar (no bp-admin-bar, i have an own seperate topbar). I have already create a counter for notification and friends and have a dropdown function.

    In the friends dropdown i have input the code from friends-request.php and if you click on the icon there is an dropdown which shows the reqeuest. The problem is that it only shows the reqeust inside the dropdown if you are on a profilpage.

    If you hit the notification icon there should be only show new notifications and no friend requests.
    At the moment it shows everything.

    For the counter i use this function:

    <?php
    function bpfr_add_notification_to_page_title(   ) {
    	
    	//do not change if the user is not logged in
    	if( ! is_user_logged_in() )
    		
    	
    	$user_id = get_current_user_id();//logged in user's id
    	
    	$count = bp_notifications_get_unread_notification_count( $user_id );
    	
    	if( $count > 0 )
    		$title = sprintf( "You Have %d New Notification(s) - ", $count );
    		$anzahlNeuigkeiten = $count;
    		
    		echo '<a class="news" data-dropdown="news" aria-controls="autoCloseExample" aria-expanded="false"> <i class="fi-megaphone" ></i></a><span class="update" >'.$anzahlNeuigkeiten.'</span>';
    		echo '<a style="margin-left:10px;" class="frequest" data-dropdown="friendrequest" aria-controls="autoCloseExample" aria-expanded="false"><i class="fi-torsos"></i></a><span class="update">';
    		echo bp_friend_get_total_requests_count( bp_loggedin_user_id() ) ;
    		echo '</span>';
    		
    	
    	
    	
    }
    ?>

    I found already a thread which trys to explain how to fix it ”
    How to split out BuddyPress notifications drop down items to their own top level” but there is no content for the dropdown.

    So my question is . How can I show the requests of friends in the dropdown on every page? And how can filter notifications? It should be like on Facebook, if you hit the friends icon then it shows requests. If you hit the notification icon than it shows news.

    Thannk you guys for your help !

    Best Regards !

    Peter

    #234394
    AshleenCrowe
    Participant

    Hi there,

    I have just installed Buddypress onto my wordpress site. When I activated it a white screen with this on it came up:

    Fatal error: Call to undefined function wp_style_add_data() in /*****/***/*****/htdocs/trainmacs/wp-content/plugins/buddypress/bp-core/bp-core-cssjs.php on line 61

    After that happened I couldn’t get to my dashboard, and after logging in and out again the message above is all that it coming up – so I have basically lost my whole site and I have no idea what to do… I can’t get in to deactivate it, and the site itself is showing only this message – so I can’t even see my homepage…

    Can someone help me in some way??

    Thanks so much!!

    #234393
    Gregoire Noyelle
    Participant

    Hello imath 🙂
    Thanks for your answer.

    When the directory page for the group is a child of another page then you get a 404, is that correct ?

    Yes that’s right.

    And for the parent, I chose the BuddyPress Members page (Membres in french). Perharps that’s the problem

    #234392
    gatelli
    Participant

    I’m sorry I’m not using bbpress, but BUDDYPRESS forum.

    abhimanyubind
    Participant

    Hello, I want to fetch the current message which is sent by the user and recipient id to whom the message is sent. How can I get this data ?

    Any help would be appreciated 🙂

    #234390
    mathijs84
    Participant

    Hi there,

    New to buddypress so I hope this is the right place to post.

    I’m building a website for a personal trainer.

    He wants the following added to the site:

    1: customers can log in to their (private!!) page
    2: They have to be able to upload a progress picture every month
    3: He must be able to add a document for them every month
    4: they should be able to communicate with each other.
    5: Interaction between customers is not necessary

    can this be done with Buddypress?

    Sidenote: I’m using a wordpress theme which supports Buddypress v 2.1.1

    Many thanks,

    Mathijs

    #234388

    In reply to: Custom Profile menu

    barodscheff
    Participant

    Thank you but your solution is outdated. I’ve found it also while searching.
    And thats the big problem with buddypress. There was an update about one year ago and everything changed. So nearly all common customizations do not work any more.

    Thats the reason why the plugin ‘buddypress custom profile menu’ also doesn’t function anymore.

    Fortunately I found the solution. It looks like this:

    function profile_new_nav_item() {
    
    		global $bp;
    
    		bp_core_new_nav_item(
    			array(
    				'name'                => 'Contact Athlete',
    				'slug'                => 'contact_athlete',
    				'default_subnav_slug' => 'extra_sub_tab',
    				'position'            => 160,
    				'screen_function'     => 'view_manage_tab_main'
    			)
    		);
    	}
    
    	add_action( 'bp_setup_nav', 'profile_new_nav_item', 10 );
    	
    	// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    
    	function view_manage_tab_main() {
    		add_action( 'bp_template_content', 'bp_template_content_main_function' );
    		bp_core_load_template( 'template_content' );
    	}
    
    	function bp_template_content_main_function() {
    		if ( ! is_user_logged_in() ) {
    			wp_login_form( array( 'echo' => true ) );
    		}
    	}
    	
    	// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    
    	function profile_new_subnav_item() {
    		
    		global $bp;
    
    		bp_core_new_subnav_item( 
    			array(
    				'name'            => 'Extra Sub Tab',
    				'slug'            => 'extra_sub_tab',
    				'parent_url'      => $bp->loggedin_user->domain . $bp->bp_nav[ 'contact_athlete' ][ 'slug' ] . '/',
    				'parent_slug'     => $bp->bp_nav[ 'contact_athlete' ][ 'slug' ],
    				'position'        => 10,
    				'screen_function' => 'view_manage_sub_tab_main'
    			) 
    		);
    	}
    	
    	// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    
    	add_action( 'bp_setup_nav', 'profile_new_subnav_item', 10 );
    
    	function view_manage_sub_tab_main() {
    		add_action( 'bp_template_content', 'bp_template_content_sub_function' );
    		bp_core_load_template( 'template_content' );
    	}
    
    	function bp_template_content_sub_function() {
    		if ( is_user_logged_in() ) {
    			bp_get_template_part('my-contact-form');
    		} else {
    			wp_login_form( array( 'echo' => true ) );
    		}
    	}

    I hope it helps anyone.

    Finally I’d like to say that I have never seen such a bad documentation in development as in buddypress. I know buddypress is free but WordPress is free too and they have a great doc.

    #234387
    Gregoire Noyelle
    Participant

    Hi
    I change the parent for the Groups page and I get a 404. Reflush permalink change nothing.
    I check in BuddyPress settings and the selected Groups page is the right one.
    If I put again the Groups page as before, everything works.
    Any idea?
    Thanks

    WordPress 4.1
    BuddyPress 2.2
    Custom Genesis Framework Child Theme

    c / @imath

    rosyteddy
    Participant

    To answer my own question this can be done at the site of site creation. However I do not know how to toggle or change it later – https://buddypress.org/support/topic/how-to-toggle-site-visibilty-in-the-activity-stream/

    rosyteddy
    Participant

    Since there is no protocol where the plugins will put their icons in and around the status message textarea box in Buddypress or maybe since these are not left to be dealt with any default buddypress theme, the icons ( stuffs you click on to get another form or input method) in and around the textbox atop profile and activity page becomes chaotic.

    These plugins are not fancy or personal needbased but very essential for any social net – like Privacy options, Location choice, Image upload etc. So its almost impossible to do without these for any new site which wants its users to be happy.

    I have attached a screenshot to show how these icons becomes messy and so very user-and-UI unfriendly. My question is, Is there any easy way or a plugin to get these things into order (like drag-drop or code snippet etc)

    Screenshot

    Neosnc
    Participant

    There was an older post here that described how to add activity form input to the BP Activity Shortcode plugin. https://buddypress.org/support/topic/add-activity-form-and-loop-on-my-home-page/

    This is the functionality I was looking for but that code didn’t seem to work. I searched the BuddyPress v2.2.0 code and found this newer template code.

    To add the Activity Form to your feed, insert this code at line 92 of bp-activity-as-shortcode.php

            <?php if ( is_user_logged_in() ) {
              bp_get_template_part( 'activity/post-form' );
            } ?>

    You can get BP Activity Shortcode here.

    BuddyPress Activity Shortcode

    rosyteddy
    Participant

    How to keep a site or some sites outside the scope of “Site Tracking” by Buddypress Activity stream?

    I am speaking about WP 4.1 Multisite with BP 2.2 : scenario : some bloggers will like to keep the blog (site) activities hidden or unavialable to the general activity stream.

    #234375
    Anonymous User
    Inactive

    Very strange.

    Have you tried to deactivate all plugins except BuddyPress to see if that wasn’t a problem with another plugin ?

    Have you tried to activate a WordPress default theme to see if it wasn’t a problem with the active theme ?

    Do you have custom function in bp-custom.php, if so try to remove them temporarly.

    If all of the above is not changing anything to your trouble, if you deactivate BuddyPress is the problem still there (you can actually begin by this step, if you prefer) ?

    #234374
    asoldier
    Participant

    Discovered a conflict with WP User Management Plus. It does not like the latest version of Buddypress.

    #234371
    r-a-y
    Keymaster

    You are using bbPress, which handles its forum integration into BuddyPress.

    Your question would be better suited there – bbpress.org/forums/

    #234362
    barodscheff
    Participant

    After last time no one could help me I try it today in another way.

    I have the following code to display a custom menu tab in the profile menu:

    function my_bp_nav() {
    	
          global $bp;
    
          bp_core_new_nav_item( 
    		array( 
                'name' => __( 'Contact Athlete', 'buddypress' ), 
                'slug' => 'contact-athlete', 
                'position' => 30,
    			'screen_function' => 'my_contact_athlete_template', 			
    		) 
    	  );
    
    }
    
    add_action( 'bp_setup_nav', 'my_bp_nav' );
    
    	function my_contact_athlete_template() {
    		bp_get_template_part( 'contact-athlete' );
    	}

    What happens: The template ‘contact-athlete.php’ is loaded above the content and under it a 404 page is shown.

    What I’d like to achieve:
    The ‘contact-athlete.php’ should be loaded within the normal profile template. So everything should look like a normal profile page and inside I would like to call my custom template with a contact form.

    Any suggestions?
    Thanks!

    rosyteddy
    Participant

    How to include “Favorit” button in a post page, for example a media page (eg. rtmedia) or a blog post page ?

    I have seen that the plugin “Buddypics” does this

        				<?php do_action( 'bp_media_before_activity_meta' ); ?>	<?php if ( is_user_logged_in() ) : ?>
    						<?php if ( !bp_get_activity_is_favorite() ) : ?>
    							<a>" class="fav" title="<?php _e( 'Mark as Favorite', 'buddypress' ) ?>"><?php _e( 'Favorite', 'buddypress' ) ?></a>
    						<?php else : ?>
    							<a>" class="unfav" title="<?php _e( 'Remove Favorite', 'buddypress' ) ?>"><?php _e( 'Remove Favorite', 'buddypress' ) ?></a>
    						<?php endif; ?>
    					<?php endif;?>

    Howevr when I do this, for example in, wp-content/plugins/buddypress-media/templates/media/media-single.php I do get the “Favorit” link/button but it is missing something

    /activity/favorite//?_wpnonce=f99fe2d956
    the above is supposed to be /activity/favorite/x/?_wpnonce=f99fe2d956 where x is something like 6, 7, 8 etc

    I have looked up in the docs but not finding any solution.

    #234352
    danbp
    Participant

    Yes, It works with multisite but I (@sbrajesh) strongly recommend not activating it network wide. Instead, activate on the main BuddyPress blog. Source.

    In other words, you upload the plugin and activate it from the WP plugin admin, not from the network admin.

    And MediaPress works on a multisite install: http://bp-fr.net/membres/dan/mediapress/
    At least for pictures.

    As MediaPress is still in beta, thought you can’t expect to have anything to work flawlessly.

    It’s not “it doesn’t work” (without giving details), but it works partially. 😉

    #234345
    Henry Wright
    Moderator

    Closed [duplicate]

    #234343
    milenushka
    Participant

    Hello,

    buddypress codex says it should be fairly easy to change the default pages.
    https://codex.buddypress.org/themes/bp-custom-php/:

    Defining custom slugs
    Developers may modify the default URL slugs for activity, forums, etc by adding a statement in the bp-custom.php file.

    // change 'discuss' to whatever you want
    define( 'BP_FORUMS_SLUG', 'discuss' );

    I tried putting these in my function.php, but that does not work.

    
    define( 'BP_FORUMS_SLUG', 'discussions' );
    define ( 'BP_ACTIVITY_SLUG', 'community' );

    if I do what is suggested in this tutorial

    Customizing Labels, Messages, and URLs

    Slugs
    For example, if you are running a sports website with BuddyPress, you could rename the URL slug example.com/members to example.com/players by changing the url of the corresponding component page in the WordPress admin -> pages.

    I can change the page’s slug , but cannot edit the page anymore.
    I am using wp composer / shortcodes to design the activity page and these do not work if the slug is renamed from wp admin >pages. I am not able to add text, nor images to the page.

    Can anybody help, please?

    Thank you.

    #234341

    In reply to: Updating issue

    solserpiente
    Participant

    Hi
    Sorry, you are right.

    I enqueue my styles from my theme function.php file, in this way:
    wp_enqueue_style( 'showcase', get_bloginfo( 'stylesheet_url' ) );

    If I use this code in header.php it works:

    if ((bp_is_user()) || (bp_current_component('groups')) ){
    <link rel='stylesheet' id='showcase-css'  href='http://mysite.com/theme/style.css?ver=4.1' type='text/css' media='all' />
    }

    But if I use this in functions.php not works:

    if ((bp_is_user()) || (bp_current_component('groups')) ){
    wp_enqueue_style( 'showcase', get_bloginfo( 'stylesheet_url' ) );
    }

    Obviously, I have found the solution with code in header.php, but I am curious to know what has changed in the buddypress code for this to happen.

    Thank you for your attention

    Best regards

    #234336
    Alice-Claire
    Participant

    I don’t have a choice. My site needs BuddyPress. Any other solutions out there? Or anyone else having the same issue?

    #234334
    LorenaAng
    Participant

    Hello,

    I am newbie at making website. I am making a website that has a buddypress, woocommerce and wc vendors. I edit the buddypress member-header.php for myshop link on my child’s theme and put bp-custom.php on my plugin folder. My problem is that whenever I go to other member’s my account page (where you can see add friend, public message and private message tab), in activity when I click on profile, it goes directly to my profile not to the other member’s profile. How will I fix this? I want to see the other member’s profile not mine. Thank you in advance.

Viewing 25 results - 21,176 through 21,200 (of 94,541 total)
Skip to toolbar