Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 20,001 through 20,025 (of 94,567 total)
  • Author
    Search Results
  • #238137
    danbp
    Participant

    Don’t hack core files !

    It will be overwriten at next BP update.

    Use preferably a filter function. Give this a try (add it to bp-custom.php) :

    function members_dir_oldest_first( $bp_user_query ) {
        if ( 'newest' == $bp_user_query->query_vars['type'] )       
    		$bp_user_query->uid_clauses['order'] = "ASC";
    }
    add_action ( 'bp_pre_user_query', 'members_dir_oldest_first' );
    #238134
    danbp
    Participant

    hi @utahman1971,

    this is the default behave of extended profile fields. Also it’s very handy, as those links became searcheable keywords. This let users click and find other entered same words.

    That said, a bio is generally more personnal, so those links maybe less important…

    Here’s a snippet (bp 2.0.1 +) you can add to bp-custom.php. It let’s you selectively disable those automated linking from some fields and let some other in place.

    function my_xprofile_filter_link_profile_data( $field_value, $field_type = 'textbox' ) {
        // Access the field you are going to display value.
        global $field;
        // In this array you write the ids of the fields you want to hide the link.
        $excluded_field_ids = array(2,6,7);
        // If the id of this $field is in the array, we return the value only and not the link.
        if (in_array($field->id, $excluded_field_ids))
    	return $field_value;
    	
    	if ( 'datebox' == $field_type )
    	return $field_value;
    	
    	if ( !strpos( $field_value, ',' ) && ( count( explode( ' ', $field_value ) ) > 5 ) )
    	return $field_value;
    	
    	$values = explode( ',', $field_value );
    	
    	if ( !empty( $values ) ) {
    		foreach ( (array) $values as $value ) {
    			$value = trim( $value );
    			
    			// If the value is a URL, skip it and just make it clickable.
    			if ( preg_match( '@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', $value ) ) {
    				$new_values[] = make_clickable( $value );
    				
    				// Is not clickable
    			} else {
    				
    				// More than 5 spaces
    				if ( count( explode( ' ', $value ) ) > 5 ) {
    					$new_values[] = $value;
    					
    					// Less than 5 spaces
    				} else {
    					$search_url   = add_query_arg( array( 's' => urlencode( $value ) ), bp_get_members_directory_permalink() );
    					$new_values[] = '<a href="' . $search_url . '" rel="nofollow">' . $value . '</a>';
    				}
    			}
    		}
    		
    		$values = implode( ', ', $new_values );
    	}
    	
    	return $values;
    }
    
    /**
     * We remove the buddypress filter and add our custom filter.
     */
    function remove_xprofile_links() {
        // Remove the old filter.
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
        // Add your custom filter.
        add_filter( 'bp_get_the_profile_field_value', 'my_xprofile_filter_link_profile_data', 9, 2);
    }
    add_action('bp_setup_globals', 'remove_xprofile_links');

    If you want to deactivate completely profile fied links, you can use this function:

    function bpfr_remove_xprofile_links() {
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
    }
    add_action('bp_setup_globals', 'bpfr_remove_xprofile_links'); 
    #238133
    Michael Bryner
    Participant

    Links showing

    As shown in image, the links are added by BuddyPress. They are not added by me. Ever since I added the BIO field for profiles, it has done this. I don’t know for sure if that is a bug or what, but when clicking on it, it just takes you to that members page. It looks as if BuddyPress is tagging certain words in the field to link to the user page. If that is what it is meant for, then sorry for this thread. If it isn’t, then this is a bug.

    Not sure where to put this.

    #238132
    Michael Bryner
    Participant

    Okay, not worried about it anymore, and I just using what ever I was saying I did not want. Sorry, if I jump the gun thinking you were jumping on my shoulder. I just hate having issues. This is pretty much a no more worry thing for me. I have a bug I need to start another topic to see if they will fix in next buddypress update.

    maruyamah
    Participant

    I am using WordPress 4.1.1 and just updated to the most recent version of Buddypress, although this problem existed on the version I was using before as well (2.2.1). I am using a custom theme, so it’s possible that is the problem, but I just want to make sure.

    The problem that I am having is that when I go to a user’s activity stream and create a new post, and then click on the comment button, a text area appears. But as soon as I refresh the site, the textarea will not reappear–the comment button changes to its hover color (and does not change back) but nothing else changes when clicked. So basically, the only time a user can comment is when the post has been just created and possibly just on his or her own post, it seems. I have been doing some customization in bp-custom, but none of it has related to comments in any way. Do you have any suggestion for where to look for the problem? Honestly, I’d rather the comment textarea just show all the time than have a completely useless comment button.

    Otherwise, I’m looking for some insight into what the problem may be or at the very least how the comment button functions. Thanks!

    #238115
    danbp
    Participant
    #238113
    novanotion
    Participant

    The Add Friend button continues to be displayed beside every name on the Members page including those who were all ready friended.
    WordPress v.4.1.1
    BuddyPress v.2.2.2.1
    http:Truckerbook.club

    #238106

    In reply to: mentions.min.js

    danbp
    Participant

    Please give details about your install.
    https://buddypress.org/support/topic/when-asking-for-support-2/

    #238100
    shanebp
    Moderator

    Members won’t appear in the members loop until they have a last_activity entry.
    Logging in will create that entry.
    Or you can give them one as soon as a member is registered via front or back end:

    function webmister_add_last_activity( $user_id ) {
    
        bp_update_user_last_activity( $user_id, bp_core_current_time() );
    
    }
    add_action ('user_register', 'webmister_add_last_activity', 20, 1);

    Put the function in your theme/functions.php or in bp-custom.php.

    danbp
    Participant

    It’s a bit obvious to explain.
    When group component is activated, you should have a page assigned to groups. Ensure this page exist, without any content , page template or parent page. Just a page with a title.

    Don’t forget to allow group forums in bbpress forum settings and to assign a group forum page, which should not be the existing Group page of BP.

    On front when you create a new group, you create first the group. In one of the creation steps, you can check “allow this group to have a forum”. Then you save this. Once saved, you will see that the group name appeared in the select box. You must save this again to definetly activate a forum to this group. Same can be done by accessing group settings > forum tab.

    Resume of creating a group with forum
    enter a group name and description, check allow forum. Save. Select box must now contain the new group name. Save again.

    More details here.

    #238098
    danbp
    Participant

    Thnak you.
    Have you a test site or a local install where you can make some test ?

    https://buddypress.org/support/topic/when-asking-for-support-2/

    I tried to change role and other fields in new members, but nothing happened.

    On a single regular install, all BuddyPress members have the default role you assigned to new users in WP settings > general. There is nothing to change at this level when they don’t show up on member’s directory.

    If you need some fake BuddyPress users and content, i suggest you to use BuddyPress Default Data, which is great to control if anything is working correctly.

    Deactivate your theme and all other plugins except BP and use Twenty Fifteen while testing.
    Activate also wp_debug in wp-config, and see if you get somme php errors.

    #238095
    danbp
    Participant

    hum… difficult to say at t he moment, as you use 2 different site apparently.

    hxxp://www.anadercategori.org/ and hxxp://pallavoloromana.it/anadercategori/squadre/test7/

    Which site belongs your members to ? Where is buddyPress installed ?

    BuddyPress does not work on installations where you give WordPress its own directory.
    Read here: https://codex.buddypress.org/getting-started/

    danbp
    Participant

    @leanneoleary,

    already solved many times on the forum. Choose from here ! 😉

    #238091
    webmister76
    Participant
    #238087
    danbp
    Participant
    #238086
    danbp
    Participant

    BP Reshare is a BuddyPress plugin to allow members to reshare their activities !

    It wasn’t made to reshare views.

    @imath is working on many other porjects, including BuddyPress. So he’s very busy and this plugin is now “old” and need probably some refactoring.
    Sorry for you, but don’t expect much at this time.

    Consider
    https://wordpress.org/plugins/social-articles/

    #238085
    danbp
    Participant

    First off, all active BP components should have a assigned page. (mandatory)
    This page must be blank, without any template model or parent page.

    As you use Twenty Eleven via a child theme, read here:
    https://codex.buddypress.org/themes/bp-theme-compatibility-and-the-wordpress-default-themes/twenty-eleven-theme/ How to get the sidebar is explained there.

    Where is WP installed ?
    Site url is vatpt1.thevillageblog.com/
    Blog seems to be in /villageatthepark/

    #238083
    gremelle
    Participant

    I’m looking for the same functionality.

    This is what I’ve found so far: https://github.com/imath/bp-reshare

    It’s from this post: https://buddypress.org/support/topic/user-activity-share-plugin-for-wordpress-buddypress/

    Let’s hope this functionality will get more attention, and implemented.

    #238070
    danbp
    Participant

    BP use wp_safe_redirect.
    See documentation in bp-core-functions.php:830

    or use
    https://github.com/pixeljar/BuddyPress-Honeypot

    juliantrueflynn
    Participant

    I had this honeypot working perfect before. Now I made a custom register page and it’s no longer working for no reason. All I did was move the bp-legacy Buddypress to the /buddypress folder to create a child theme for edits. Everything is working besides the honeypot.

    Here’s a link to the code I have in my register page now:
    http://www.codeshare.io/yQACc

    Buddypress build:
    Buddypress Version 2.1.1
    WordPress 4.0.1
    Using DevDMBootstrap3 theme
    I haven’t edited any core files in WP/BP.

    Here’s the code I used that worked previously:

    // BuddyPress Honeypot
    function add_honeypot() {
        echo '';
    }
    add_action('bp_after_signup_profile_fields','add_honeypot');
    function check_honeypot() {
        if (!empty($_POST['system55'])) {
            global $bp;
            wp_redirect(home_url());
            exit;
        }
    }
    add_filter('bp_core_validate_user_signup','check_honeypot');
    #238065
    danbp
    Participant

    Glad you got it !
    And feel free to edit the codex page and add your experience and how-to story.

    Participate and Contribute

    danbp
    Participant
    #238058
    ICTaanbieding
    Participant

    Lost in the forest indeed whaha, exiting tho!
    When debugging the only error I get is:
    Warning: base64_decode() has been disabled for security reasons in /home/admin/domains/ictaanbieding-webdesign.nl/public_html/FEN/wp-content/plugins/buddypress/bp-groups/bp-groups-actions.php on line 137

    Any idea?

    I had this site with buddypress running on another server and it worked fine, so im starting to believe it might me a user right issue.

    #238056
    Prometheus Fire
    Participant

    Right, so the advice from @shanebp worked.

    As I mentioned above, when originally did the translation, I didn’t use Poedit, I used an online editor (after using Codestyling first). Turns out the they simply aren’t as advanced as Poedit and those source keywords were really important here. As I was going through the strings in Poedit, I was seeing strings I had never seen before in the other software since the other editing softwares probably couldn’t read the strings in the first place.

    I’ve seen various threads where other people have struggled with translating the same thing. Perhaps an update to the documentation including information about these specifics might be helpful for other in the future. The documentation https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/ does talk about using Poedit, but leaves out those rather important details needed to get a complete label and message change.

    Either way, this issue is resolved.

    #238055
    danbp
    Participant

    Activate wp_debug in wp-config and do a test with Twenty Twelve, Thirteen or Fifteen theme.
    Deactivate all plugins except BP and bbPress.

    Then report given errors here (without server path details if possible – just begin of error message and file name ).

    Other issues with same theme: https://buddypress.org/support/search/onecommunity+theme/

    OMG, lost in the forest… wouh hou !

Viewing 25 results - 20,001 through 20,025 (of 94,567 total)
Skip to toolbar