New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Skryfnet,

    This might be a case of code copy and pasting. Please try again copy and paste the code in your bp-custom.php file. If still you got this error send me the complete code of your bp-custom.php file.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Video Gallery pagination #4330

    Hi Christian,

    Thank You for your acknowledgement.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Lock comments button #4319

    Hi Webg,

    Welcome to BuddyDev. Which version of WordPress and BuddyPress you are using. Also let me know are you dealing with WordPress Multisite.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Skryfnet,

    Welcome to Buddydev. If You are familiar with translation you can modify it from the .po file and use the following code in you bp-custom.php file to list the site categories

    
    
    function buddydev_site_categories_tab() {
    
    	$bp = buddypress();
    
    	$user_url = bp_loggedin_user_domain();
    
    	bp_core_new_subnav_item( array(
    			'name'		        => __('Site Categories'),
    			'slug'		        => 'categories',
    			'parent_url'	    => trailingslashit( $user_url . $bp->buddyblog->slug ),
    			'parent_slug'	    => $bp->buddyblog->slug,
    			'screen_function'	=> 'buddydev_screen_site_categories',
    			'position'          => 30,
    		)
    	);
    
    }
    add_action( 'bp_setup_nav', 'buddydev_site_categories_tab', 100 );
    
    function buddydev_screen_site_categories() {
    
    	add_action( 'bp_template_content', 'buddydev_render_site_categories_content' );
    	bp_core_load_template( array( 'members/single/plugins' ) );
    
    }
    
    function buddydev_render_site_categories_content() {
    
    	wp_list_categories(array( 'hide_empty' => false ));
    }
    
    

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Petra,

    Thank You for this acknowledgement. I am glad that I could help.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Petra,

    Please upload the file on http://imgur.com/ and Share the link.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Petra,

    Thank You for posting. Please use the following code in your current theme ‘functions.php’

    
    
    function buddydev_remove_upload_avatar_error_message() {
    
    	if( ! function_exists( 'buddypress' ) || ! bp_is_user_change_avatar() ) {
    		return ;
    	}
    
    	?>
    
    	<script type="text/javascript">
    
    		jQuery(document).ready( function() {
    
    			if( typeof bp == 'undefined' || typeof bp.Avatar =='undefined' ) {
    
    				return;
    
    			}
    
    			bp.Avatar.Attachment.on("change:url", function (data) {
    
    				jQuery("#message").remove();
    
    			});
    		});
    
    	</script>
    
    	<?php
    }
    add_action( 'wp_footer', 'buddydev_remove_upload_avatar_error_message' );
    
    

    Let me know. If it works or not.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Petra,

    Welcome to BuddyDev. Can you please provide me the screen-shot of your fields settings in backend. It will be good to look into this issue.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Extended Friendship Request Plugin – add radio buttons #4259

    Hi Steven,

    Thank You for your acknowledgement. Yes it can be easily. Please modify the following code of file name “bp-extended-friendship-request.php” on line no. 336
    for message content replace this line

    
    
    $message = $_POST['friendship_request_message'];
    
    

    with

    
    
     $message = '<div class="class-for-message-content">'. $_POST['friendship_request_message'] .'</div>';
    
    

    and for selected radio button

    
    
    $message = $message.__(' "Know you from - ', 'bp-ext-friends-request' ).$info[$additional_info].'"';
    
    

    replace with

    
    
    $info = '<div class="class-for-selected-radio">'.__(' Know you from - ', 'bp-ext-friends-request' ).$info[$additional_info].'</div>';
    
    $message = $message.$info;
    
    

    Thank You
    Ravi

    • This reply was modified 10 years, 4 months ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Turn off Click Through on Image #4256

    Hi Jemma,

    Thank You for your acknowledgement. I am glad that I could help.

    Thank You
    Ravi