Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 14,576 through 14,600 (of 94,564 total)
  • Author
    Search Results
  • #255396
    m1000
    Participant

    Thanks, but how to fix it not touching buddypress files, I tried use remove_filter in functions.php of theme but it doesn’t work – http://pastebin.com/mgRe4e2Q

    #255395
    denis24
    Participant

    I have hired a developer to make some modification to a BP site — including creating a special type of group for Companies, adding buttons to activity stream items, etc.

    He has told me that I would no longer be able to update BuddyPress without losing these modifications. Is this true???? Am I stuck with the current version of BP forever?

    Or is there a way to do updates and preserve the modifications? Should the developer be doing things differently?

    I’m new to BuddyPress. Please advise. Thanks!

    #255392
    danbp
    Participant

    I don’t think it’s an issue, but more a latency thing. The search field can be lame sometimes.

    Looking for John Doe.
    You search John = ok
    You search Doe = ok

    Doe is still in the search box. You add John after to search: Doe Joe.
    Result: nothing because the user is registered as John Doe

    Same if you enter to rapidly search terms: johndoe This brings nothing.

    Ensure that you entered correctly the terms. And test with one of WP’s default theme if you use a third party theme.
    If you have some other plugin it can be possible there is a JS conflict somewhere, but imho, no as a single term search works.

    More a PBCK issue for now.

    If you need absolutely this functionnality to work at 200%, perhaps try one of these plugins:

    https://wordpress.org/plugins/bp-profile-search/
    https://wordpress.org/plugins/buddypress-global-search/

    #255386
    danbp
    Participant

    Hi @iamsickofusernames

    Check first WordPress Settings: Dashboard > Settings > Comments
    then BuddyPress Settings. Dashboard > Settings > BuddyPress > Options tab > Activity Option

    If you need more specific settings, you could add more conditionnals to this snippet. Eg.
    if( !is_user_logged_in() ) | if($can_comment == true) etc

    https://buddypress.org/support/topic/blog-forum-comments/

    #255382
    danbp
    Participant

    Hi @simonmnt,

    you should create a correct child-theme to get BP templates customization to work.

    First, you need to declare the child via /your-child/style.css with the correct header information.
    Eg. for a twenty fourteen child

    
    /*
    Theme Name: Fourteen-Child
    Description: My child theme for Twenty Fourteen
    Version: 1.0
    Author: simon
    Template: twentyfourteen
    */
    
    @import url("../twentyfourteen/style.css");

    Once done, you can select this child as site theme.

    Now you can add a /buddypress/ folder to /your-child/

    Inside this folder, you copy any file you need to modify from /bp-legacy/buddypress/

    You copy only the file(not the whole /bp-legacy/buddypress/ folder) you want to change, by respecting eventually the original path. Eg
    .
    /your-child/buddypress/members/single/profile/profile-loop.php

    If you need custom functions for the theme, you add a file called functions.php inside /your-child/functions.php

    If you need custom functions for BuddyPress (like most of the snippets you can find on this forum), you add them to wp-content/plugins/bp-custom.php

    #255381
    oddreal
    Participant

    Resolved an error in Courses:

    Fatal error: Class β€˜BP_Groups_Group’ not found in /path-to-project/wp-content/themes/lms/framework/buddypress/metaboxes.php on line 15
    

    A friend of mine – CMS developer – took a look at this and advised to just check User Groups at BuddyPress settings page (http://your.site/wp-admin/admin.php?page=bp-components)

    Have a nice day to all.

    #255380
    simonmnt
    Participant

    Hi,

    I want to customize my buddypress. I copy all document inside bp-legacy directly in my child theme.
    When I modify a file, the modifiction doesn’t appear. I don’t understand..

    Conversely, when i modify my buddypress-functions it works..

    Thanks..

    #255374
    r-a-y
    Keymaster

    Thanks for the debug help, @tse11.

    One of your plugins (or yourself) is using this code snippet:
    add_filter( 'bp_use_legacy_activity_query', '__return_true' );

    This made our strict activity permalink access check fail.

    I believe the following patch will fix your problem:
    https://buddypress.trac.wordpress.org/attachment/ticket/7146/7146.01.patch

    Can you confirm?

    r-a-y
    Keymaster

    @metaverso – Can you revert your changes and try my fix?
    https://buddypress.trac.wordpress.org/attachment/ticket/7140/7140.01.patch

    If that doesn’t work for you, can you tell me what BP plugins you are using?

    metaverso
    Participant

    my fix:

    Fatal error: Call to undefined function bp_get_current_group_id() in /wp-content/plugins/buddypress/bp-groups/classes/class-bp-group-extension.php on line 488

    [ soluction ]

    public static function get_group_id() {
    
    		
    	if ( defined( 'WP_NETWORK_ADMIN' ) && bp_is_active('groups')) {   // -----------fix add line 1 
    	echo get_called_class();// -----------fix add line 2                     
    
    	
    		// Usually this will work.
    		$group_id = bp_get_current_group_id();
    
    		// On the admin, get the group id out of the $_GET params.
    		if ( empty( $group_id ) && is_admin() && ( isset( $_GET['page'] ) && ( 'bp-groups' === $_GET['page'] ) ) && ! empty( $_GET['gid'] ) ) {
    			$group_id = (int) $_GET['gid'];
    		}
    
    		// This fallback will only be hit when the create step is very
    		// early.
    		if ( empty( $group_id ) && bp_get_new_group_id() ) {
    			$group_id = bp_get_new_group_id();
    		}
    
    		// On some setups, the group id has to be fetched out of the
    		// $_POST array
    		// @todo Figure out why this is happening during group creation.
    		if ( empty( $group_id ) && isset( $_POST['group_id'] ) ) {
    			$group_id = (int) $_POST['group_id'];
    		}
    
    		return $group_id;
    		}// -----------fix add line 3
    	}
    #255365
    metaverso
    Participant

    [ SOLUCTION ]
    error buddypress /wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-group.php on line 988

    update 988 line:
    if ( ! empty( $r['update_meta_cache'] ) ) {
    to:
    if ( ! empty( $r['update_meta_cache'] && bp_is_active( 'groups' )) ) {

    #255363
    binary10
    Participant

    @r-a-y Yes i am using the latest version of WP. Actually what i am trying is to embed the activity at http://localhost/members/john/activity/2/ in my activity stream at http://localhost/members/binary10/. It doesn’t work. But as i already said i did a separate install for testing and created a buddypress activity with permalink http://localhost/site/members/binary10/activity/2/ then it works. This is what i am trying to say. Any ideas?
    thanks

    iamsickofusernames
    Participant

    I’m sorry – I tried to find this topic and I couldn’t. I am assuming someone has asked this!

    What we want on our site is to show all the Activity publically, and then require people to register/login to actually participate. So, read only until people have created a sign-in.

    I’m assuming there’s a way to do this. We just added BuddyPress, so we’re on the current version.

    #255355
    tse11
    Participant

    Hi, thank you for trying to help.

    This is for all users, it isn’t specific to a particular member type or activity item either.

    A member goes to the activity feed, he wants to click on an activity item, the item redirects to the user’s own activity profile page with a bar across the top (the buddypress notification,) stating, “You do not have access to this activity.”

    I am not using an object cache plugin.

    #255354
    danbp
    Participant

    – BuddyPress pages have all an ID.
    – BP pages are not ordinary static WordPress page, but dynamic pages, a kind of placeholder. They have no content and are only existing to have a slug (and a ID for DB magement) for WP/BP dialog.
    Eg. your-site/activity/ URL is empty when you deactivate BP.

    Let’s continue with the activity page as example.

    This “page” is made of different parts, which are contextually loaded on their own template. Use the activity filter to see what is all coming up on the (url/activity/) page. About 10 items which would be 10 real pages on a WP site without BP ! And that’s just default. Many plugins use also BP’s activity…

    For each component, there is a loop. As long as you are in such a loop, you can call what ever belong to that component from inside this loop. And for almost each loop, you have a template.

    If you want the About page (default WP page) to show up on a profile, you load it on one of the profile templates, but not on the BP member page which is the “page” who host “profiles”, but also the “member director”y. And you don’t want About apearing there, isn’t it ? πŸ˜‰

    If you read the codex about theme develoment and template hierarchy, you may understand how all this is articulated.

    #255353
    airsid
    Participant

    Like you, i’m not a coder.

    Dan, you’re a star in buddypress world !!

    What would be if i give you some code if you don’t understand a text ?

    I will paste it and use it. If something go wrong i’ll google it and play with it using other same codes…that’s how I managed to have my community website πŸ˜‰

    Learning to code take so much time and as so many people i’m running after time.
    But you’re right, so ok i’ll read it again and try to learn…

    #255351
    danbp
    Participant

    @airsid

    …but it is a simple code to add a widget !
    Don’t take it wrong, we all started a day to learn. Like you, i’m not a coder. But the widget coding is a WP thing, explained on the codex page i indicated.

    You say you didn’t understand what is written on codex. What would be if i give you some code if you don’t understand a text ? Try again. And while learning step by step, read also BP’s codex about templates.

    Once you feel more confortable, after some experimentation and errors, come back for BuddyPress related questions. πŸ™‚

    tammy1999
    Participant

    Had several issues with updating to BP 2.6 and BP Group Extras.

    I deleted BP 2.6 and replaced it with BP 2.5.3 and that fixed all the problems.

    What 2.6 was doing was rearranging the Navigation links in BP.
    Pages
    Home
    Members
    Manage
    Documents
    Media
    Club Calendar
    Club Events
    Cover Photo

    Before the update my Navigation links looked like this:
    Pages
    Activity
    Documents
    Members
    Media
    Club Calendar
    Club Events
    Manage
    Cover Photo

    Also, after the update, all the Navigation Links at the bottom of the Extras area didn’t show anymore and even though it shows Activity where I renamed HOME page, it still said HOME where the Navigation area is.

    Thats pretty much it. I will be staying with 2.5.3 until this is fixed.

    learntodesign
    Participant

    Hello, is it possible to embed the content of one buddypress page on another? Let’s say I wanted to content from the activities page on the profile page. I am having trouble doing this because the buddypress pages don’t have specific page Ids.

    <?php
    $include = get_pages(‘include=’);
    $content = apply_filters(‘the_content’,$include[0]->post_content);
    echo $content;
    ?>

    #255346
    David Cavins
    Keymaster

    @Earl_D: No. The above snippets are added to a custom version of the buddypress/members/single/messages/compose.php file. Basically, if you add this file to your theme (following the structure buddypress/members/single/messages/), it will be used in preference to the one BuddyPress ships with. Read more about adding custom template parts: https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    #255344
    danbp
    Participant
    #255341
    jtroyano
    Participant

    I just recently installed Buddypress on a site and I’m trying to customize a member directory to look something like the below site:

    Members

    Can someone share with me how to go about doing this. I really appreciate it. Thanks

    James

    danbp
    Participant

    Use BuddyPress repair tool to recalculate members.

    BuddyPress Repair Tools Admin Screen

    #255337
    danbp
    Participant

    i want that it should work for activities on the same website? Is it possible?

    BuddyPress features are generally designed to work inside BuddyPress. πŸ˜‰
    I guess it is possible. Because it was made for !

    Follow Ray’s advice…

    #255336
    danbp
    Participant

    @daltontastic,

    color buttons are TinyMCE tools and not html tags. The only way to get them would be to use the editor toolbar.

    Here a scenario you could use:
    – create a child-theme and add post-form.php to it (copy from bp-templates/bp-legacy/buddyPress/activity/post-form.php).
    Result: your-child-theme/buddypress/activity/post-form.php

    In that file, go to line:40 where textarea start.
    Inser this action hook:

    <?php if ( bp_is_groups_component() ) : ?>
    	<?php do_action( 'blablabla' ); ?>
    <?php endif ?>

    Then add this <?php if ( ! bp_is_groups_component() ) : ?>
    <textarea class="bp-suggestions"......bla...bla...</textarea>
    and add <?php endif ?> after the textarea closing tag.

    This contionnals will show a custom area for the desired group and prevent update area to appear on all other groups home pages.

    So if a user is member of different groups, he will get a texteditor for group_id 13 and the normal update area on all others.

    The custom template is ready. Now the fonctions we need.

    Open bp-custom.php (or create it) and paste in those snippets.

    Adding the texteditor:

    function bpfr_whats_new_tiny_editor() {
    	// deactivation of the visual tab, so user can't play with style tools
    //add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );
    
    $content = "";
    
    	// building the what's new textarea
    	if ( isset( $_GET['r'] ) ) :
    	$content = esc_textarea( $_GET['r'] ); 
    	endif;
    
    	// adding tinymce tools
    	$editor_id = 'whats-new';
    
    	$settings = array( 
    			'textarea_name' => 'whats-new', 
    			'teeny' => false, 
    			'media_buttons' => true, 
    			'drag_drop_upload' => true, 
    			'quicktags' => array(
    			'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close'
    		));	 
    	
    	// get the editor	
    	wp_editor( $content, $editor_id, $settings );
    }
    add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );

    A simple function who add the original textarea for users who are group members, but not allowed to rich edit.

    function my_textarea() { ?>
    			<textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"
    				<?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?>
    			><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>
    <?php
    }

    And the last one, where you set up the group allowed to publish updates using edit tools.

    function trotro() {
    
    if ( bp_is_groups_component() ) :
    
    $check = groups_is_user_member( bp_loggedin_user_id(), bp_get_group_id() );
    $check_group = bp_get_group_id(); 
    
    	if ($check != 0 && $check_group == 21 && 'leon' == bp_current_item() ){
    		echo 'Wow! You can rich edit in this group.';
    			bpfr_whats_new_tiny_editor();
    	} else {
    		echo 'Sorry, you cannot rich edit in this group';
    		my_textarea();
    	}
    
    endif;
    }
    add_action( 'blablabla', 'trotro' );

    Now, any member which is part of the group leon, group id 23 can publish updates and use the color picker and all other things which are on the edit bar.

    Only thing you have to do is to adjust leon and id to your rules.

    Successfully tested on 2.6 and 2016.

    May this help you to go further with your BuddyPress project. πŸ™‚

Viewing 25 results - 14,576 through 14,600 (of 94,564 total)
Skip to toolbar