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: 25273

    Hi Lavish,
    Have you kept the code from Ravi’s previous reply?

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: UPLOAD MEDIA AND LIKE BUTTONS #4487

    Hi Clyn,
    1. You can use any of the CDN enabler plugin for WordPress. The Media in MediaPress is WordPress attachment and any CDN hosted file solution for WordPress should work with it. IF it does not, We will help to get that working.

    2. I understnd the issue. I am not sure if I have any recommendation at the moment about like. I don’t like some plugin’s data structure and other has bug.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Michael,
    I have worked on it. It won’t work for older notifications but will work with newer.

    The one problem I am facing is getting the correct url og a comment. A blog can use any type of permalink setting, so front end linking will make it a little complex. Should I use the ?p=post_id#comment_id instead ?)

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Video and Music Link #4485

    Hi Clyn,
    Thank you for posting. It is not possible with MediaPress at the moment.

    Having a different filter is a good idea and I will keep that on my list. The posting from URl is coming in mid September. I am sorry about this for now.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Thank you.
    1. Please make sure you have copied the file completely. I see the submit button here
    https://github.com/sbrajesh/bp-simple-front-end-post/blob/master/form.php#L86

    2. yes, doable and will get @ravisharma to post the code

    3. Multi post type is difficult with BuddyBlog at the moment.

    4. Thank you. We will be sure to do that(It will be free 🙂 )

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Lee,
    In case of BuddyPress, you will have to know a few functions. I will add a few example below

    bp_is_user() -> is used to check if we are on a user page

    bp_is_user_[component nanme]<- Replavce with actual component to check if we are on a user component. e.g. bp_is_user_activity() bp_is_user_groups() bp_is_user_messages() etc To get the id of the user whose profile we are viewing $user_id = bp_displayed_user_id(); We can also check which sub nav of the current component a user is viewing using bp_current_action() and bp_is_current_action() To redirect, you can use bp_core_redirect( $url ) Now, after looking at these functions, we can write the following code for your above need.

    
    function buddydev_custom_redirect() {
    	
    	//step 1, check if we are on a page that needs the redirection
    	//This can be handled in two ways, 
    	////depending on how many redirect you want to add for various pages.
    	//if the number of redirects are too many, 
    	////It is helpful to use negative logic like
    	//// if( not_my_page ) { return ;}
    	
    	//for this simpel case
    	
    	if ( bp_is_user_activity() && bp_is_current_action( 'mentions' ) ) {
    		$redirect_to = bp_core_get_user_domain( bp_displayed_user_id() );//profile
    		
    		bp_core_redirect( $redirect_to );
    	}
    }
    add_action( 'bp_actions', 'buddydev_custom_redirect', 0 );
    
    

    I hope it helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi,
    Thank you for posting.

    1. You don’t need the Non editable profile field plugin, just do not install/activate or use the Member type field (It is not required as a field if only admin can change it)

    Here is the code you can put in your bp-custom.php to safely update the default member type when teh user account is activated.

    
    
    function buddydev_set_member_type( $user_id ) {
    	
    	$member_type = 'student';//change with the unique slug of your member type
    	bp_set_member_type( $user_id, $member_type );
    	
    }
    add_action( 'bp_core_activated_user', 'buddydev_set_member_type', 0 );
    
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: BuddyBlog – custom fields #4465

    Hi SN,
    I am sorry for the delayed reply.
    The changed file should be named

    
     buddyblog-nl_NL.po
    

    if your locale is set top ‘nl_NL’

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Sorry, I could not work on it. I will today.

    Thank you
    Brajesh