Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 501 through 525 (of 3,787 total)
  • @danbp

    Participant

    Hi,

    you’re on the BuddyPress support forum where we can’t help for third party plugins.
    If you have questions related to bbPress (if you use this plugin), you have to ask on their support.

    For BuddyPress for Sensei plugin or WC Sensei, you can check the doc and/or ask on the plugin support too.

    @danbp

    Participant

    Hi,

    by reading the first topic, it sounds like you try to use more than one child theme !

    I already have activated my other child theme

    If it is the case, it’s not the way to proceed. πŸ˜‰

    1) You should have only one child-theme activated.
    2) in this child, you add a folder called buddypress.
    3) if you need to modify some BP templates, you copy the original from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/ into the child BP folder.

    Example of what you should have:
    wp-content/themes/XYZ theme
    wp-content/themes/XYZ-child/

    Let’s say you want to modify BP’s register page.
    wp-content/themes/XYZ-child/buddypress/members/register.php
    or you want to modify the profile header template
    wp-content/themes/XYZ-child/buddypress/members/single/member-header.php

    And that’s it ! The only thing you have to do is to pick the right file and add it to the child by respecting the original path who starts at: /buddypress/path/to/file.php

    Inside the template file, yo can manipulate html tags and find different action hooks ( do_action( 'something' ); ). Take care to not rename or remove the existing class/ID names whithout knowing what you do.

    In bp-custom.php, you can manipulate BP’s behave by adding custom functions.

    In the child-theme style.css, you manipulate whatever related to your theme layout – for the entire site, including BP or other plugins.

    And as all this is done via the child, anything will remain after any update of BuddyPress, your original theme, WordPress or plugins.

    Reading actively the forum will bring you other answers, tips and tricks.

    @danbp

    Participant

    You don’t need help, but to understood that you can’t use the visual editor for messages. You use it and that why you get the error message. Re re re re re read the topic again.

    I’m closing this topic now.

    @danbp

    Participant

    Don’t tell me that: i’m a beer fan ! You’re welcome πŸ˜‰

    @danbp

    Participant

    [Mod] changed title to something more explicit as a useless “Please Help…….Urgent !!!!” on a support forum.

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

    The urgent is done, the indispensable is under way. For miracles, allow time.

    Please wait, I think.

    @danbp

    Participant

    Hey, do you mean this ?

    @danbp

    Participant

    Ok, i misunderstood the whole… The initial question was:
    what I am trying to link to is
    http://localhost/wordpress/community/profile/<displayed_user>/

    Try this:

    function tab_custom_link_to_page() {
    
    	if ( bp_is_activity_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {
    
    		// link to what you want		
    		$link = bp_get_root_domain() . '/community/profile/'. bp_get_displayed_user_username();
    		echo '<li><a href="'. $link .'">Community</a></li>'; 
    	}  
    }
    add_action( 'bp_member_options_nav', 'tab_custom_link_to_page' );
    In reply to: How to allow html tags

    @danbp

    Participant

    You already got an answer to this question here:
    https://buddypress.org/support/topic/tinymce-for-replying-to-messages/#post-259368

    Check $allowedtags and add $allowedtags['span'] = array( 'style' => array () );

    May work…or not.

    Closing this topic as unavailing.

    @danbp

    Participant

    Hi,

    as cover image is now built-in for users and groups, i guess you won’t need this plugin.
    Also in case of trouble with a third party plugin, you have to ask for help on their support, not here.

    @danbp

    Participant

    No, nothing like that. This can only be achieved within site admin. And by default a group mod is a simple subscriber which has no access to group members administration.

    The first option is to promote mods to group admin, and in this case he can from front-end, kick/ban user, promote or remove users and nothing else.

    The other option would be to give them a WP role who let them access to group members admin and evtl. using a plugin to block their access to all other admin parts… (ie. user role editor)

    In addition, you could also get some dev’s opinion to this…
    https://buddypress.trac.wordpress.org/ticket/5543
    https://buddypress.org/support/topic/how-could-a-group-moderator-edit-group-details/

    @danbp

    Participant

    Perhaps this one may work: <a href="'. bp_get_loggedin_user_link() .'">View my profile</a>

    Reference

    @danbp

    Participant

    Hi @sherissa_r,

    General is the default landing tab for profile settings.
    To remove it, you use these functions:
    to remove the item -> bp_core_remove_subnav_item()
    to define a new one -> bp_core_new_nav_default()

    You may also want to remove General from usermenu if you use WP’s toolbar, in which case you need -> $wp_admin_bar->remove_node()

    Note that General is also the default sub-nav template for all other Settings (Emails & Profile visibility). When you remove the item, you remove also the template. That’s why you need to define a new landing tab.
    Note also that once General is removed, you will only see the other settings buttons, but no the content of the new defined tab. It will only appear once you clicked on the button.

    Here the snippets you could test (add them to bp-custom)

    function bpex_change_profile_settings_default_tab() {
    
    	if( bp_is_active( 'xprofile' ) ) :
    
    	$access        = bp_core_can_edit_settings();
    	$slug          = bp_get_settings_slug();
    
    	$args = array(
    		'parent_slug'     => $slug,
    		'subnav_slug'	  => $slug . '/notifications/',
    		'screen_function' => 'bp_settings_screen_notification',
    		'user_has_access' => $access
    		);
     
    	bp_core_new_nav_default( $args );
    
    	endif;
    
    }
    add_action( 'bp_actions', 'bpex_change_profile_settings_default_tab' );
    
    function bpex_remove_general_item_on_usermenu() {
    global $wp_admin_bar;
    
    	if ( bp_use_wp_admin_bar() ) {
    		$wp_admin_bar->remove_node( 'my-account-settings-general' );
    	}
    
    }
    add_action( 'wp_before_admin_bar_render', 'bpex_remove_general_item_on_usermenu' );
    
    function bpex_remove_profile_settings_general_tab() {
    
    	if( bp_is_active( 'xprofile' ) ) :	
    
    		bp_core_remove_subnav_item( 'settings', 'general' );
    
    	endif;
    
    }
    add_action( 'bp_actions', 'bpex_remove_profile_settings_general_tab' );

    @danbp

    Participant

    Hi,
    Shane’s answer is related to the BP way to get a user name inside a redirection. wpF use probably a similar method, but certainly also his own function(s) for that. You have to find out how it does. Unfortunately, this plugin doesn’t provide documentation at the moment.

    Accordingly to wpForum support, there is still a button to wpforum on each profile. If you have difficulties to tweak the default behave, you have to ask for on their support.

    https://wordpress.org/support/topic/buddypress-compatibility-plans/

    In reply to: Page not found message

    @danbp

    Participant

    After you setup BP pages, you should activate pretty permalinks.

    Installation

    All BP pages should be empty. Just a title and no associated template or model.

    @danbp

    Participant

    You need to specify the object.

     $attachment = bp_attachments_get_attachment( 'url', array( 
       'object_dir' => 'groups',  
       'item_id' => $group_id,  
    ) );

    Reference

    bp_attachments_get_attachment

    @danbp

    Participant

    You’re welcome. Can i ask why do you wanted this ? What is the purpose to show this link publicly ? By default, it is only used inside the background img css.

    @danbp

    Participant

    Hi,

    what do you get when you use the Topics filter on profile ?
    Activate wp_debug in wp_config.php, and post here the error message (if exist).

    And read this please
    https://buddypress.org/support/topic/when-asking-for-support-2/

    @danbp

    Participant

    Hi @koded1999,

    please, use the <code> button to insert snippets. Also avoid double posting.
    Closing this topic as duplicate.
    Conversation goes ahead here:

    Disable or Hide Private Message Button

    @danbp

    Participant

    Hi,

    on the signup page you have 2 parts: WP username, email and password and BP Name field.

    This field is mandatory and should exist on register.php. Is it the case or have you removed it ?

    @danbp

    Participant

    i @m1000,

    try this (add to bp-custom.php):

    function bpex_cover_img_path() {
    	// Is the current page a user page?
    	if ( bp_is_user() ) {
    
    	$user_id = bp_displayed_user_id();	
    	
    	$attachment = bp_attachments_get_attachment( 'url', array( 'item_id' => $user_id ) );
    
    	$image_path = $attachment;	 
    	// output only if an attachment exist
    	if( !empty( $attachment ) ):
    		echo 'Cover image path: <code>'. $image_path .'</code>';
    	endif;
    
    	}
    }
    add_action( 'bp_profile_header_meta', 'bpex_cover_img_path' );

    @danbp

    Participant

    It is possible because it doesn’t exist and you never noticed his mention in many topics of this forum, and perhaps never read the codex. πŸ™‚

    Read here please:

    bp-custom.php

    @danbp

    Participant

    Just in case of, FYI

    ImageMagic issue was fixed for WP 4.6 and merged to 4.5

    Other related ticket on WP track.

    @danbp

    Participant

    Hi guys,

    you should read topics completely! πŸ‘Ώ
    In one of my answer to the above mentionned, you have the necessary information to get it to work for replies. I tested it today and it works for me.

    Now I repeat it again, it’s not done to add wp_editor to a textarea which was never intented to be a post editor. It’s a simple message composer ! Do you write MMS with Word ?

    By adding wp_editor to this composer, you can only add the the HTML editor, like the one you have on this forum. The visual tab won’t work because of numerous filters and the way wp_editor is working. Activating the visual tab on the compose screen will also break your theme, in 99% of cases.

    Once you have it correctly displayed, you will see that most of the tags will be striped. This can be avoided by defining $allowedtags in wp_kses filter. The inconvenient of this is that it will also be available on what’s new form and any other form you use on your site. So, you’re warned.

    The code i used today, including allowed tags i had to activate.

    function bpfr_compose_msg_tiny_editor() {
    add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );
    
    $content = "";
    	
    	if ( isset( $_GET['r'] ) ) :
    	$content = esc_textarea( $_GET['r'] ); 
    	endif;
    
    	$editor_settings = array(
    		'content' => bp_messages_content_value(),
    		'textarea_name' => 'content',
    		'editor_id' => 'message_content',
    		'teeny'=>true,
    		'media_buttons'=>false,
    		'quicktags' => array(
    			'buttons' => 'strong,em,link,img,block,del,ul,ol,li,code,close'
    	) ); 
    
    	wp_editor( bp_messages_content_value(), 'message_content', $editor_settings); 
    
    }
    add_action( 'compose_edit_tools', 'bpfr_compose_msg_tiny_editor' );
    
    function bpex_allowed_tags() {
    	global $allowedtags;
    	$allowedtags['img']		= array( 'src' => array () );
    	$allowedtags['ul']		= array();
    	$allowedtags['ol']		= array();
    	$allowedtags['li']		= array();	
    }
    add_action('init', 'bpex_allowed_tags', 10);
    

    How-to is explained on the other topic.

    @danbp

    Participant

    Hi,

    @shanebp has made such a plugin: http://www.philopress.com/products/buddynotes/
    Note that it’s premium.

    @danbp

    Participant

    hi,

    it’s because you didn’t right.
    The translation, or word change, use a msg ID which contains the original string and a msg string, for the new wording.

    In your case, you should use

    msgid "Site Wide Activity RSS Feed" // the original string
    msgstr "Rich Site Summary" // the custom string

    Note also to get this to work, you need to compile the po file to mo file.
    And if you don’t want to redo that after each BP update, i recommand you use this plugin, so your custom language file remain untouched, while the default language will be updated.

Viewing 25 replies - 501 through 525 (of 3,787 total)
Skip to toolbar