BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: Custom fields on user post #714

    Hi Irene,
    Are you referring to the edit form display or display on single post page? Also, are you letting the single post to be displayed on profile on their own individual normal pages.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: Custom fields on user post #711

    You can put the code in your theme’s functions.php or bp-custom.php inside the plugin directory.

    The code should be

    
    
    add_filter( 'buddyblog_post_form_settings', 'buddydev_custom_buddyblog_settings' );
    
    function buddydev_custom_buddyblog_settings( $settings ) {
    
    	$custom_fields = $settings['custom_fields'];
    
    	$custom_fields['testcf'] = array(
    		'type'		=> 'text',
    		'label'		=> 'test custom field text',
    		'default'	=> ""
    	);
    
    	//and repeat
    
    	//then update settings
    
    	$settings['custom_fields'] = $custom_fields;
    
    	return $settings;
    }
    
    

    Hope that helps.

    PS. you can use backticks(`) to post code block here.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: Custom fields on user post #709

    Hi Irene,
    Welcome to BuddyDev forums.

    No, you don’t need to modify that. Instead you can filter the buddyblog form settings and ask it to disply the form for adding meta.

    You can filter it like this

    
    add_filter( 'buddyblog_post_form_settings', 'buddydev_custom_buddyblog_settings' );
    
    function buddydev_custom_buddyblog_settings( $settings ) {
    	
    	$custom_fields = $settings['custom_fields'];
    	
    	$custom_fields['new_meta_key'] = 	 array(
    					'type'    => 'text',
    					'label'   => '',
    					'default' => ''
    				);
    	
    	//and repeat
    	
    	//then update settings
    	
    	$settings['custom_fields'] = $custom_fields;
    	
    	return $settings;
    }
    
    

    Here is a post that details what meta fields are available

    https://buddydev.com/support/forums/topic/custom-field-in-bp-simple-front-end-post/#post-383

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128

    Hi Jan,
    I have got that functionality in addons. A little bit busy with documentation as we need to put a lot of documentation. Will start releasing some of the free addons next week( View Counter, mycred points etc).

  • Keymaster
    (BuddyDev Team)
    Posts: 25128

    Hi Kent,
    Welcome to BuddyDev forums.

    With the current BuddyBlog, you don’t need to write any custom code for using custom post type. Please visit Settings->BuddyBlog settings and then select your custom post type. Click save. After the page reloads, It will show you taxonomy options for that selected post type. please update as you need.

    Hope that helps.

    Thank you
    Brajes

  • Keymaster
    (BuddyDev Team)
    Posts: 25128

    Hi Jan,
    here is the direct link to the zip file.
    https://github.com/buddydev/mediapress/archive/master.zip

    The version has not changed(considering the current speed, I believe we will get the Rc next week). You can always download the most recent version by clicking on that link.

    If you want to see all the changes, you can view this link
    https://github.com/buddydev/mediapress/commits/master

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128

    Note: If you are trying to test Sitewide Media Gallery, please upgrade again( My apologies). There was a bug in sitewide gallery. If you are using it for BuddyPress only, there is nothing to worry about.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128

    Hi Jan,
    Thank you. If possible, please send via github or drop me a mail on brajesh@buddydev.com (Please do provide me some way to credit you, your preferred name/business/site).

    In future, I am hoping to setup an install of glotpress, that will allow us to do translations during development.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: Ajax Registration with Social Login #689

    Please check your bp-custom.php or theme’s functions.php

    That redirect can not be caused by bp login redirect plugin. It is before the user is logging in. Some code/plugin is redirecting on account activation.

  • Keymaster
    (BuddyDev Team)
    Posts: 25128
    Brajesh Singh on in reply to: Ajax Registration with Social Login #686

    Hi Milo,
    What I am seeing is that it is still redirecting to this page

    http://relativeu.com/log-in-after-registration/

    Are you using some code/plugin to do this?