Replies
- Brajesh Singh on March 23, 2017 at 10:02 pm in reply to: Galleries default to DRAFT not PUBLISH automatically. #8207
Hi Chris,
I am sorry but that is not feasible.Will it work for you if we released a Media Moderation addon that currently allows admins to let other users report a media and a media with a given threshold of reporting gets hidden till admin moderates it? It’s a premium addon btw.
Regards
Brajesh - Brajesh Singh on March 23, 2017 at 9:59 pm in reply to: Redirect To Page they were on before clicking signup #8206
Hi Scott,
Thank you for posting.
I am not sure how to get the information on what page the user was before registration but I will help you with some example snippet that you may extend to work./** * Filter where to redirect the user after account activation * * @param string $redirect_url user's profile url * @param int $user_id numeric user id * * @return string */ function buddydev_filter_auto_redirect_url( $redirect_url, $user_id ) { // You can filter the redirection based on user // or you can change the $redirect_url to the appropriate value. // I suggest using the user_id for filtering approach //$redirect_url = wp_get_referer(); //it will not work return $redirect_url; } add_filter( 'bpdev_autoactivate_redirect_url', 'buddydev_filter_auto_redirect_url', 10, 2 );You can put this code in your bp-custom.php and modify it to work as per your requirements.
Hope that helps.
Regards
Brajesh - Brajesh Singh on March 22, 2017 at 10:23 am in reply to: Username Availability Checker & GravityForms User Add-On #8037
Hi LuXman,
thank you for asking. It is a simple process consisting of two steps.
Step 1: – Enable loading of js on the form page
Please see this line
https://github.com/sbrajesh/bpdev-username-availability-checker/blob/master/username-availability-checker.php#L169You can filter on ‘buddydev_username_availability_checker_load_assets’ and return tru for the page where you want it to be loaded.
Step 2:- Tell the availability checker about your username field selector.
Please see this
https://github.com/sbrajesh/bpdev-username-availability-checker/blob/master/username-availability-checker.php#L130That’s all needed.
Hope that helps. - Brajesh Singh on March 21, 2017 at 10:25 pm in reply to: [Resolved] Different home page for logged in users #8036
Thank you George. Glad it did 🙂
- Brajesh Singh on March 21, 2017 at 9:46 pm in reply to: [Resolved] Prevent Hyperlinks in the BuddyPress Activity #8032
You are welcome Thank you for confirming Dandy 🙂
- Brajesh Singh on March 21, 2017 at 9:42 pm in reply to: [Resolved] Different home page for logged in users #8031
Hi George,
Thank you for asking. It is a very good question.yes, It is easily doable.
here is the code that you can use to display a different page on home page for logged in user
/** * When a user is logged in, tell WordPress to use 'page' on front page of the site * @param string $value * * @return string */ function buddydev_set_page_as_front_for_loggedin_user( $value ) { if ( is_user_logged_in() ) { $value = 'page';//page is set as front page } return $value; } add_filter( 'pre_option_show_on_front', 'buddydev_set_page_as_front_for_loggedin_user' ); /** * For logged in users, set our static page to act as home page * * @param $value * * @return int */ function buddydev_set_context_based_page_on_front( $value ) { if( ! is_user_logged_in() ) { return $value; } //for logged in user, use page id 9 return 5;//change with your own page id. } add_filter( 'pre_option_page_on_front', 'buddydev_set_context_based_page_on_front' );You can change the page_id with your own id.
Hope that helps.
Regards
Brajesh - Brajesh Singh on March 21, 2017 at 8:50 pm in reply to: The stealth mode is only active for one Admin #8030
Hi,
You can login as the other user( You can use https://wordpress.org/plugins/user-switching/ for switching user) and set it from their profile settings screen.Hope that helps.
Regards
Brajesh Hi Xochi,
I am sorry, it is not yet possible. We will add it this quarter for sure.- Brajesh Singh on March 20, 2017 at 11:07 pm in reply to: Displaying title and user on shortcode pages #7977
Hi Xochi,
I am not sure of the issue. I am going to ask @ravisharma to take a fresh look at this and see if he can help here.Thank you
Brajesh