Helping you Build Your Own Social Network!

Faster, better and easier!

branded login slug change

(6 posts) (2 voices)

Tags:

No tags yet.


  1. hi,

    i tried changing the slug in the bp-branded-login.php but it does not seem to be working.

    if(!defined("BP_LOGIN_SLUG"))
    define("BP_LOGIN_SLUG","signin");

    if(!defined("BP_LOGOUT_SLUG"))
    define("BP_LOGOUT_SLUG","signout");

    Can someone try it out and confirm?

    Also, is there a way to redirect the user to a different page on logout?

    Posted 1 year ago #
  2. also is there a way to get the page title for login and reset password using bp_page_title()

    Posted 1 year ago #
  3. Hi GWU,
    if you put something like this

    define("BP_LOGIN_SLUG","loginslug");

    The branded login page will be opened at yoursite.com/loginslug.

    The logout slug has got nothing to do with redirect. It is just a placeholder and has no other significance than handling actions.

    The branded login plugin should redirect to home page on logout. Please let me know where you want to redirect. Maybe, we can have some solutions.

    Posted 1 year ago #
  4. Hi Brajesh.
    thanks for your response.

    when i add this -- define("BP_LOGIN_SLUG","loginslug");

    the login page comes up fine with url ending in loginslug. but on a successful login it takes me to the 404 page and the url ends with "login".

    regarding the logout, i just want it to go to someother page say - logout.php

    thanks again

    Posted 1 year ago #
  5. Hi gwu, just checked. We have a bug in the template.

    Please open your theme/blogin/login.php

    and change this

    <form name="loginform" id="loginform" action="<?php echo site_url('login', 'login_post') ?>" method="post">

    to

    <form name="loginform" id="loginform" action="<?php echo site_url(BP_LOGIN_SLUG, 'login_post') ?>" method="post">

    For redirect url , please check the plugin BPdev logout redirect or you may want to use the following code

    add_filter('logout_url',"bpdev_bp_logout_url",110,2);
    function bpdev_bp_logout_url( $logout_url, $redirect) {
    
    	$redirect="where u want to redirect, complete url" ;//e.g. http://yoursite.com/logoutpage
    
    	$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;
    }

    Hope that helps.

    Posted 1 year ago #
  6. thanks brajesh

    Posted 1 year ago #

Reply

You must log in to post.