Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 22,176 through 22,200 (of 94,543 total)
  • Author
    Search Results
  • #230688
    danbp
    Participant
    #230687
    shayne
    Participant

    Is there anyway to have a friends only activity stream?

    I tested the example showed here.

    Activity Loop

    However it doesn’t work properly. For example it breaks the default “groups”, “mentions” and “friends” filters.

    Also, if you leave the site open for a minute or so the “Load Newest” prompt appears. This prompt ignores the activity stream filters and shows everyone’s activity.

    #230680
    mmaccou
    Participant

    I understand there were a few threads about 4 years ago to remove the @mentions. I have tried them but still cant get it to work. I’m thinking because so many changes have occurred since then. Can someone help with an updated version to remove the mention functionality from buddypress? Ideally, I would like to do so by utilizing my child theme if possible

    #230656
    colabsadmin
    Participant

    Sorry I thought I was clear. I dont need an example of how to create the tab and the submenus.

    What I did was write a class that creates a top level member area tab called Favorites that consolidates all types of favorites within a single tab. https://github.com/colabsadmin/bp-favorites/blob/master/bp-favorites.php

    The submenus that have been created so far are Activity, Topics, Posts and a few more for some CPTs that I’ve written. This will make it easier for my users to find their favorites when they cant remember if it came from a topic, posts, activity, etc. Instead of jumping around from tab to tab, its all in one tab. The only submenu that doesnt work is Activity. The code, which I provided in my first question, was copied directly from Buddypress core code with one change to use ‘bp_core_new_subnav_item’. I used similar code to display content in all the other submenus. For example, the following shows the favorite topics

    // Favorite topics
    bp_core_new_subnav_item( array(
    		'name'            => __( 'Topics', 'kleo' ),
    		'slug'            => "topics",
    		'parent_url'      => $bp->displayed_user->domain . $bp->bp_nav['favorites']['slug'] . '/',
    		'parent_slug'     => $bp->bp_nav['favorites']['slug'],
    		'screen_function' => 'bbp_member_forums_screen_favorites',
    		'position'        => 10,
    		'item_css_id'     => 'favorites'
    ));
    

    So, my question, does bp_activity_screen_favorites() only work within the context of /members/membername/activity action? Or can it be used elsewhere as in /members/membersname/favorites?

    danbp
    Participant

    Do you have some “old” custom function in bp-custom.php or theme functions§.php ?
    A modified file in your child-theme ?
    Could also be a corrupted file. Reload BuddyPress via FTP if nothing of the previous is the case.

    Hi,

    I just noticed that after Updating one of my site to 2.1.1, Private Message Button is now showing on My own Profile which is very weird.

    Please how can I solved this problem, have searched google and couldnt find anything.

    Am using Latest wordpress and Latest Buddypress.

    Thanks
    AB

    #230648
    Tecca
    Participant

    It’s essentially a social network plugin for WordPress. Check out the about page: https://buddypress.org/about/

    #230637
    alexbogdan90
    Participant

    Hi webmasters, recently we know about buddypress, but i am confused of the concept of it, please anyone explain me more specific what is buddypress and what i could do with this?

    Thanks for the support
    Alejandro

    Sterke-Jerke
    Participant

    I would like to make certain xprofile fields readonly or locked.

    The only solution I found was in this threat:

    https://buddypress.org/support/topic/resolved-buddypress-restrict-xprofile-field-to-read-only/

    Is that still the only way? Or can it be done in a UI?

    Thx

    #230633
    danbp
    Participant

    There is already a my favorites tab in BuddyPress menu. Don’t know what you’re trying to do, but here is a code example you can try(or study).

    Add it to your child-theme functions.php or bp-cutom.php

    function my_test_setup_nav() {
    global $bp;
    $parent_slug = 'test';
    $child_slug = 'test_sub';
    
    	//name, slug, screen, position, default subnav
    	bp_core_new_nav_item( array(
    		'name' 					=> __( 'Company Labs' ),
    		'slug' 					=> $parent_slug,
    		'screen_function' 		=> 'my_test_page_function_to_show_screen',
    		'position' 				=> 40,
    		'default_subnav_slug' 	=> $child_slug 
    	) );
    
    	//Add the subnav items to the profile/
    	// name, slug, parent_url, parent slug, screen function
    
    	// Tab 
    	bp_core_new_subnav_item( array( 
    		'name' 					=> __( 'Company Favs' ), 
    		'slug' 					=> $child_slug, 
    		'parent_url' 			=> $bp->loggedin_user->domain . $parent_slug.'/', 
    		'parent_slug'			=> $parent_slug, 
    		'screen_function' 		=> 'my_test_page_function_to_show_screen'
    		) );
    	}
    
    	// tab
    	function my_test_page_function_to_show_screen() {
    
    	//add title and content here – last is to call the members plugin.php template
    
    	add_action( 'bp_template_title', 'my_test_page_function_to_show_screen_title' );
    	add_action( 'bp_template_content', 'my_test_page_function_to_show_screen_content' );
    	bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    	}
    
    	function my_test_page_function_to_show_screen_title() {
    	echo 'Taskforce Titled';
    	}
    
    	function my_test_page_function_to_show_screen_content() {
    	echo 'Taskforce content';
    	do_action( my_test_post);
    	}
    
    add_action( 'bp_setup_nav', 'my_test_setup_nav' );
    
    function my_test_fav_custom_content() {
    ?>
    	<h3>Hello Company !</h3>
    	<p>Lorem ipsum de facto est</p>
    <?php	
    }
    add_action(  'my_test_post', 'my_test_fav_custom_content' );
    #230624
    colabsadmin
    Participant

    Sorry for posting in “installing”. Tried to edit, but it takes me to buddypress.org main page. Wont allow me to edit.

    #230622
    GurleenOberoi
    Participant

    Thanks for responding.
    Basically i am new in buddypress, i need to create a functionality in buddypress same as Friends functionality. Can you suggest.

    #230619
    danbp
    Participant
    GurleenOberoi
    Participant

    I have duplicated the bp-friends directory, but it did not worked out,
    I have “replicate fiends component to new component with the name ‘support request’ “.
    “I do not want to change fiends to ‘support request’, the friends functionality will remain as is but add same functionality copied to new component named ‘support request’.

    Please can anyone help me out.

    #230608
    danbp
    Participant

    the filter name is bp_activity_can_comment
    defined: bp-activity/bp-activity-template.php:3305

    More here

    #230606
    shanebp
    Moderator

    Another approach: bp_user_query

    #230605
    shanebp
    Moderator
    #230603
    eberger3
    Participant

    I’m helping implement some customizations on a BP site that I didn’t initially create. It is an alumni directory and there is a extended profile field for “Last Name at Graduation”. The ID on this field is 3.

    On the directory page there is select box to change the sorting of the results. They want it so the “Alphabetical” option sorts people by “Last Name at Graduation” because this is how people would likely look for you. It took me a while to get this far and I mostly used this tutorial.

    add_action( 'bp_pre_user_query', 'sort_by_ln_grad' );
    function sort_by_ln_grad( $BP_User_Query ) {
    	// Only run this if one of our custom options is selected
    	if ( in_array( $BP_User_Query->query_vars['type'], array( 'alphabetical') ) ) {
    		global $wpdb;
    
    		// Adjust SELECT
    		$BP_User_Query->uid_clauses['select'] = "
    			SELECT wp_efequx_users.id
                            FROM wp_efequx_users 
                            LEFT JOIN wp_efequx_bp_xprofile_data ON (wp_efequx_bp_xprofile_data.user_id                    
                            = wp_efequx_users.ID)";
    
    		// Adjust WHERE
    		$BP_User_Query->uid_clauses['where'] = "WHERE wp_efequx_bp_xprofile_data.field_id =  3 ";
    
    		// Adjust ORDER BY
    	        $BP_User_Query->uid_clauses['orderby'] = "ORDER by wp_efequx_bp_xprofile_data.value";	
    	}
    }

    and it works…sort of. When Alphabetical is selected the people are sorted by the desired field but there are issues:

    • The pagination doesn’t work
    • The member count shows ‘Viewing 1 member’ when there are many more
    • The “search members” box doesn’t work. It returns the entire directory

    Am I doing this the right way? How can I sort by this xprofile field without losing the other features of the member directory?

    Thanks.

    #230601
    Henry Wright
    Moderator

    As far as I know, unregistered users have an ID of 0. An ID is necessary to send the message so unregistered users will all be seen as the same person by BuddyPress. So to answer your question, I don’t think it’s possible

    #230600
    barodscheff
    Participant

    Hi guys!

    I’m using Buddypress for the first time and have a general quesion about private messaging.
    Is there a possibility to write private messages as a non-registered user to registered users?

    I’m creating a community of athletes. Coaches who visit the site should have the possibility to write private messages to the athletes without registering.

    Any ideas?

    Thanks is advance!

    #230597
    Hugo Ashmore
    Participant

    @gnfb you have already created a thread for this question, please don’t create new ones and subject lines must reflect the issue. Closing this thread please bump the other if you haven’t had a response.
    https://buddypress.org/support/topic/almost-identical-to-twitter/

    #230595
    gnfb
    Participant

    Ok
    Why re invent the wheel! It has been suggested that I should look at buddypress for a upcoming project. Create a twitter look alike site to service a city community.
    Suggestions of a suitable theme and if any extra plugins are required to replicate twitter functions , hashtag, retweet etc Thanks for your help Will be self hosted

    Alphaaffe
    Participant

    Hi there,

    I’m using the following Code to show users unread messages and pending friend requests in the sidebar:
    Friendship Requests
    Freundschaftsanfragen: <?php echo bp_friend_total_requests_count() ?>
    Unread Messages
    Nachrichten: <?php bp_total_unread_messages_count() ?>
    (I’m using “Enhanced Text Widget” to show php-code in my sidebar-widget)

    Additionally, I want to create some kind of notification that displays users if they have new messages or requests and thtat is only shown IF there are any new messages or requests!

    I imagine it should look something like:
    if (unread messages > 0)
    echo “You have unread Messages”;
    else
    echo ” “;

    if (pending friendship requests > 0)
    echo “You have new friendship requests”;
    else
    echo ” “;

    my problem is, that I don’t know the names of the variables to use (I tried it with the functions instead of the variables which didn’t work). Can anyone of your pls help? I’m using the “allow PHP in posts and pages” plugin to use php in posts and pages^^

    My WordPress-Version is 4.0.1, my Buddypress-Version is 2.1.1

    My website is still under construction and has directory protection, which is why I won’t post the domain, username or password. If your realy need this information, I’ll send it to your via pm.

    P.S. English is not my native language, I apologize for any typos or other kind of misstake.

    #230585
    danbp
    Participant

    hi @injection-molding,

    give this a try.

    BuddyPress User Account Type Lite, an outdated plugin who existed as PRO version, is now avaible for free. And works with 4.0.1 and BP 2.1.1
    User Manual:
    http://wpbpshop.com/wpbpshop-manuals/buddypress-user-account-type-pro.html

    The code was uploaded 2 mounth ago on github.
    https://github.com/RimonHabib/BuddyPress-User-Account-Type

    If you use php 5.4, you may see some warnings, but easy to repair.

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