@fugu78
Active 9 years, 5 months ago
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
I apologize but i am not sure where to add that line of code to the below redirect code:
add_filter("login_redirect","bpdev_redirect_to_profile",10,3); function bpdev_redirect_to_profile($redirect_to_calculated,$redirect_url_specified,$user) { if(empty($redirect_to_calculated)) $redirect_to_calculated=admin_url(); /*if the user is not site admin,redirect to his/her profile*/ if(!is_site_admin($user->user_login)) return bp_core_get_user_domain($user->ID ); else return $redirect_to_calculated; /*if site admin or not logged in,do not do anything much*/ } add_filter('logout_url',"bpdev_logout_url",100,2); function bpdev_logout_url( $logout_url, $redirect) { //simply ignore the redirect and set it to the main domain //let us check for buddyopress,if yes,let us get the bp root domain right ? if(function_exists("bp_core_get_root_domain")) $redirect=bp_core_get_root_domain(); else $redirect = get_blog_option( SITE_ID_CURRENT_SITE, 'siteurl' ); $args = array( 'action' => 'logout' ); if ( !empty($redirect) ) { $args['redirect_to'] = $redirect; } $logout_url = add_query_arg($args, site_url('wp-login.php', 'login')); $logout_url = wp_nonce_url( $logout_url, 'log-out' ); return $logout_url; } ?>
Hi Henry,
With a language switcher plugin
Cheers
Yes thank you, i have just realized this and everything seems to be working. Thank you kindly for your help!
Ok sorry, i hadnt set up permalinks. The register no longer goes to an internal error page but it goes to a blank page in the website now? Should i see a registration form?
Hi thanks for your reply. I am using a clean install. The joomla and WP sites are totally unrelated as they are installed on separate DB’s. This was a single install.
It isnt a buddyboss issue as the issue happens without Buddyboss being activated.
Viewing 5 replies - 1 through 5 (of 5 total)