Replies
- Brajesh Singh on June 30, 2016 at 5:25 pm in reply to: [Resolved] insert 'BP Member Type Phrase' in Meta Title #4504
Hi Lavish,
Have you kept the code from Ravi’s previous reply? 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.
- Brajesh Singh on June 30, 2016 at 10:36 am in reply to: Need help with links, BuddyPress Notify Post Author on Blog Comment #4486
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 ?)
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.
- Brajesh Singh on June 30, 2016 at 10:32 am in reply to: Buddyblog Translate Error, Hide Editor, Category and Tag Display #4484
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#L862. 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 🙂 )
- Brajesh Singh on June 30, 2016 at 9:37 am in reply to: [Resolved] A very simple thing, but I can't find how to do it anywhere #4479
Hi Lee,
In case of BuddyPress, you will have to know a few functions. I will add a few example belowbp_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.
- This reply was modified 9 years, 6 months ago by
Brajesh Singh.
- This reply was modified 9 years, 6 months ago by
- Brajesh Singh on June 30, 2016 at 7:54 am in reply to: BP Member Type Generator & Xprofile Member Type Field #4477
Marking it as closed as per the other thread
- Brajesh Singh on June 30, 2016 at 7:54 am in reply to: [Resolved] BP-Member Type Default Type,with member type generator and hidden profile fields #4476
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 Hi SN,
I am sorry for the delayed reply.
The changed file should be namedbuddyblog-nl_NL.poif your locale is set top ‘nl_NL’
- Brajesh Singh on June 29, 2016 at 10:21 am in reply to: Need help with links, BuddyPress Notify Post Author on Blog Comment #4464
Sorry, I could not work on it. I will today.
Thank you
Brajesh