Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: [Resolved] Custom post fields in buddyblog #1637

    Hi Martin,
    My apologies for the delay.

    1. Please upgrade to Bp Simple Front End post plugin

    2. Please try adding this code to bp-custom.php and let me know if it works or not?

    
    
    add_filter( 'buddyblog_post_form_settings', 'buddyblog_martin_custom_fields' );
    //modify buddyblog form settings
    function buddyblog_martin_custom_fields( $settings ) {
    	
    	$custom_fields = $settings['custom_fields']; //already registered fields
    	
    	//allowed field
    	//1. textbox
    	//2. texarea
    	//3. radio
    	//4 .select
    	//5 .checkbox
    	//6. date
    	//7. url
    	//. number(integer)
    	//7. hidden
    	
    	$custom_fields['synopsys']	= array( //on single page use get_post_meta( $post_id, 'synopsys', true ) to access it
    			'label'		=> 'Synopsis',
    			'type'		=> 'textarea',
    			'default'	=> '', 
    			
    		);
    	$custom_fields['genre']	= array( 
    			'label'		=> 'Genre',
    			'type'		=> 'textarea', //change to textbox for single line text field
    			'default'	=> '', //in case of
    			
    		);
    	$custom_fields['cast']	= array( 
    			'label'		=> 'Cast',
    			'type'		=> 'textarea',
    			'default'	=> '', //in case of
    			
    		);
    	$custom_fields['release_date']	= array( 
    			'label'		=> 'Release date',
    			'type'		=> 'date',
    			'default'	=> '', //in case of
    			
    		);
    	
    	$custom_fields['budget']	= array( 
    			'label'		=> 'Budget',
    			'type'		=> 'number',
    			'default'	=> '', //in case of
    			
    		);
    	$custom_fields['twitter']	= array( 
    			'label'		=> 'Twitter',
    			'type'		=> 'url',
    			'default'	=> '', //in case of
    			
    		);
    	$custom_fields['ratings']	= array( 
    			'label'		=> 'Ratings',
    			'type'		=> 'checkbox',
    			'default'	=> '', //in case of
    			 //only applicable for select/radio/checkbox etc
    			'options'	=> array(
    				array(
    					'label'	=> 'Y',
    					'value'	=> 'Y'
    				),
    				array(
    					'label'	=> 'T7',
    					'value'	=> 'T7'
    				),
    				array(
    					'label'	=> 'G',
    					'value'	=> 'G'
    				),
    				array(
    					'label'	=> 'PG',
    					'value'	=> 'PG'
    				),
    				array(
    					'label'	=> '14',
    					'value'	=> '14'
    				),
    				array(
    					'label'	=> 'MA',
    					'value'	=> 'MA'
    				),
    			)
    		);
    	
    	$settings['custom_fields'] = $custom_fields;
    	
    	$settings['upload_count'] = 1;//one upload
    	
    	return $settings;
    	
    }
    
    

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: BP Ajax registration Plugin help #1633

    HI Samir,
    Thank you.
    You mentioned that a non technical solution, that’s why I said no.

    It is doable but will loose the beauty of that theme. Still, please give me till tomorrow and I will give a try to something else. I do have a copy of sweet date running for a client site. I will give a try on his test server tomorrow.

    I am not in a position to supply much css this week( Our own premium theme is due by weekend) and that’s why I had tried to avoid it.

    If you are working with a developer, please do let me know, I can easily guide him/her to enable ajax registration.

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: [Resolved] Buddypress – Move Settings Page Edit #1631

    Hi Joshua,
    Thank you.

    I am always happy to be of some help 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: [Resolved] MediaPress create gallery #1627

    Thank you. Closing it as resolved.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: [Resolved] Buddypress – Move Settings Page Edit #1625

    Hi Joshua,
    This is a little old code I wrote but it does the same thing. Try putting it in your bp-custom.php and let me know how it goes.

    http://pastebin.com/9NZMs6je

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: [Resolved] Custom BP Groups Tab/Page #1624

    You are right about that. This is what I love about BuddyPress. It is very easy to extend for any new feature.

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: BP Ajax registration Plugin help #1623

    Have issued a refund. Please confirm if you received or not?

    thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: [Resolved] MediaPress create gallery #1622

    Hi John,
    I am sorry.
    That was a bug I introduced and fixed it 3 days ago. Please upgrade MediaPress.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: BP Ajax registration Plugin help #1617

    Hi Samir,
    Thank you.
    I had a look at the site and I see that you are using sweetdate theme.

    If you plan to use this plugin with sweetdate theme, I am sorry but It wont work and I will have to offer you a refund instead.

    The problem is the homepage form is highly customized and does not contain extended profile fields. So, I can not do much there. Also, They have their own popup opening on register link that leaves no scope for BP Ajax Registration to show its popup.

    I will issue the refund in 30 minutes.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25400
    Brajesh Singh on in reply to: Ajax Registration plugin #1615

    Hi Samir,
    I have created a separate topic for you here
    https://buddydev.com/support/forums/topic/bp-ajax-registration-plugin-help/

    Can you please provide me details there. There is no need to be a developer to use this plugin.

    Thank you
    Brajesh