Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 3,376 through 3,400 (of 3,787 total)
  • @danbp

    Participant

    @bloodslayer,

    by default, WP users cannot publish pages, but only post.
    See here for roles and capabilities.

    A Premium plugin exist who let you do this, FormidablePro, also avaible in a free version. More here.

    And to add a FB like button, search on the plugin repo.

    @danbp

    Participant

    @namrons,

    can you provide the theme name please ?
    Private groups activities is not public, until YOU are logged in. As a member of a private group you see those activities.

    If it is not displaying correctly, maybe try to activate 2013 or 2014 theme. Could also be a cookie issue: when you see “my groups” you are on your profile. It is not the same loop as for the group activity, at first. Reviewing your blog settings maybe usefull too. Or seeking for JS errors on the one or other page ?

    Another thing to consider is explained here:
    https://buddypress.org/support/topic/blog-comments-not-appearing-in-activity-stream/

    @danbp

    Participant

    @lmolenje,

    click click click ! But what should this button do ? Usually, a topic relates to a forum, and a BuddyPress forum is the bbPres plugin.

    Give better details, please ! ๐Ÿ˜‰

    @danbp

    Participant

    @natb19,

    you jumped in a post started over 4 years ago ! Do you really expect to reuse a snippet given over 3 years back, without having any issue ?

    Big changes came up between BP 1.0 and 2.0.2. The most change is that Notification is now a component and not a simple functionnality.

    Please open a new topic or give a try to
    BuddyPress Notification Manager. A bit old too, but it is already working with current BP.

    In reply to: not recently active

    @danbp

    Participant

    @bea107,

    In addition to @hnla & @henrywright, you also used a wrong function name !

    Original name is function bp_core_get_last_activity

    Custom name is function bea107_core_get_last_activity.
    This is the function you should use.

    Re-read the codex about function.php and specially the last lines marked Itโ€™s important to note

    @danbp

    Participant

    Exactly. Yes madame !

    @danbp

    Participant

    buddypress/bp-languages/buddypress.pot
    Don’t use DW to read, modify or save a translation. Use a text editor (not word) like notepad or notepad++

    The NL translation is on Glotpress and the translation you need to put on your server is buddypress-nl_NL.mo

    This is a compiled file used by gettext. You cannot read or modify it. If you want to do so, see poEdit.
    https://translate.wordpress.org/projects/buddypress/dev/nl/default

    Languages and Translations

    You can find many other related topics if you search a little on the forum.

    @danbp

    Participant

    Have you also activated some BP components, and assigned a page to register and activation ?

    Dashboard > settings > buddypress, tab “pages”.

    Register and Activation Pages

    In reply to: Register CSS Style

    @danbp

    Participant

    @danbp

    Participant

    Another snippet, more accurate with the suggested way above. Snippet goes into bp-custom or functions.php

    The field/field group is only shown to site admins. A small bug in the current BP version(.0 -> 2.0.2) prevent of completely remove the group tab from the edit screen. Bug is fixed and this will work with BP 2.1.

    function bpfr_hide_profile_field_group( $retval ) {
    	if ( bp_is_active( 'xprofile' ) ) :	
    	
    	// hide profile group/field to all except admin	
    	if ( !is_super_admin() ) {		
    		//exlude fields, separated by comma
    		$retval['exclude_fields'] = '60';  
    		//exlude groups, separated by comma - this may work with BP 2.1
    		$retval['exclude_groups'] = '7'; 			
    	} 
    	return $retval;		
    	
    	endif;
    }
    add_filter( 'bp_after_has_profile_parse_args', 'bpfr_hide_profile_field_group' );

    @danbp

    Participant

    @csimpson,

    oh crossposting ! haven’t seen henry’s answer.

    nobody visibility doesn’t exist. This setting is called “only me“. This means that only the member can see this field – and the site admins. Such fields are not for site admins, but for the members !

    I don’t really understand what is not working for you, as what you’re looking for doesn’t exist in BuddyPress. Sorry if i’m misunderstanding you.

    When you create such a field visibility, you should also set “Enforce the default visibility for all members“, so the member cannot modify it later on his profile settings.

    Little weird side effect, when a “only me” field is used and member A wrote hello, this word becames clickabke, by default. When member B write also hello, it becames also clickable. And if A or B clcik on Hello, it shows a list of all members who wrote the same word. In this case A and B !

    Not really confidential, isn’t it ? The solution is to remove the clickable link.
    Here’s a snippet which let you do that selectively.

    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,9,54); // field ID separated by comma
    	
        // 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');

    @danbp

    Participant

    Glad you got it to work !

    Apparently my conversion issue was different than the original poster.

    For the next question, open preferably a new topic instead of jumping an old one. ๐Ÿ˜‰

    @danbp

    Participant

    Is it a fresh instal you working on ? Are you on a local server ?
    If you test only with a private group, nothing will appear publicly.

    Assuming all active components have all their dedicated pages and that you set pretty permalinks an use Twenty Fourteen.

    If so, install BP Default Data which will install 50 fake members, groups and many other things and see if you get a result.

    @danbp

    Participant

    +1 !

    @danbp

    Participant

    You’re welcome ๐Ÿ˜‰

    @danbp

    Participant

    Hi @doremdou
    BP group activities notifier perhaps ?

    There is also Buddypress Notification Manager which make this for groups

    • A member invites you to join a group
    • Group information is updated
    • You are promoted to a group administrator or moderator
    • A member requests to join a private group for which you are an admin

    it does not send notifications when SOMEONE JOINS the group and I need it
    You need it ? Well, but that isn’t enough !
    Who should receive the notif ?

    Both are old, and the 2nd is still working with 2.0.2.

    @danbp

    Participant

    You asked how to fix %20 issue.

    The BP response to that is: // Use urlencode() rather than rawurlencode().
    I you hav suche %20 in some url’s, you have to find what is genrate it. Or go into the DB and remove the spaces manually. This means searching all %20 occurence.

    if anyone knows how to fix the url spaces in the name, like what BuddyPress does, that would be amazing

    Does this means that you use something, but not BP, who create such space mark ? A custom theme perhaps, or a plugin ?

    Theme name and plugin list, please ! ๐Ÿ˜‰

    @danbp

    Participant

    @msmarupatt,

    you have already solved the reason : I moved the website from a subdirectory to public html.

    Now you have to check your site url’s and setup correctly your new install. Try to use some of the repair tools, and if nothing goes better you must recreate your wp-config.php

    Delete this file and the htaccess file on FTP and restart the WP install process. This will only recreate proper links and generate a new htaccess file.

    In reply to: most active users

    @danbp

    Participant

    @mooieautosnl,

    buddypress doesn’t handle the blog(s), it only show them ร  la BP.
    BP comes up with some witget and you can activate them from the widget dashboard. The most relevant, even if he doesn’t exclusively handle author’s post, is Recently active members, who let you choose from 3 different filters: active, recent, popular.

    You can also search on the WP plugin repo if a more accurate plugin exist

    @danbp

    Participant

    Hi @seeingblues2,

    Configure BuddyPress

    Check also the permalinks and give details about your theme or better give an url so somebody can go to see what happens.

    @danbp

    Participant

    @christernet,

    you reply on a topic started over 2 years ago…Please open a new topic and give some details about your config.
    check your install first and consider also what is written here:
    https://buddypress.org/support/topic/when-asking-for-support-2/

    @danbp

    Participant

    hi @vivis,

    try with this function <?php bp_notifications_toolbar_menu ?>
    Read also the documentation of your Premium theme (Kleo) about menu and the WP codex on how to add toolbar menus and sub menus.

    https://codex.wordpress.org/Toolbar

    @danbp

    Participant

    Hi @halo-diehard,

    put it into bp-custom.php

    Reference:

    Changing Internal Configuration Settings

    The %20 sanitizing thing is already used. And answer is in the snippet.

    This is actually in /bp-legacy/buddypress-functions.php

    if ( ! empty( $user_query->results ) ) {
    foreach ( $user_query->results as $user ) {
    if ( bp_is_username_compatibility_mode() ) {
    // Sanitize for spaces. Use urlencode() rather
    // than rawurlencode() because %20 breaks JS
    $username = urlencode( $user->user_login );
    } else {
    $username = $user->user_nicename;
    }

    @danbp

    Participant

    @danbp

    Participant

    hi @sallymander,

    use a child theme to do this.
    Copy members-loop.php file into /your-child-them/buddypress/members/ folder.

    Replace line 16
    if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) :

    by

    if ( bp_has_members( bp_ajax_querystring( 'members' ) . '&populate_extras&type=alphabetical' ) ) :

    Added the answer for the upcoming question: i want the list in alphabetical order. ๐Ÿ™‚

    Reference

    Members Loop

Viewing 25 replies - 3,376 through 3,400 (of 3,787 total)
Skip to toolbar