Forum Replies Created

Viewing 7 replies - 271 through 277 (of 277 total)
  • well… the only way i’ve been able to achieve it is using cookies:

    1) in registration-form.php:

    $redirect_url = $_GET['redirect_url'];
    if ($redirect_url != ""){
       setcookie('redirect_url',$redirect_url);
    }

    2) in theme-my-login-custom.php:

    function tml_new_user_registered( $user_id ) {
    
    	wp_set_auth_cookie( $user_id, false, is_ssl() );
    
    	 if (isset($_COOKIE['redirect_url'])) {
    		$redirect_url = $_COOKIE['redirect_url'];
    		setcookie("redirect_url", "", time()-3600);
    		wp_redirect($redirect_url);
    
    		}else{
    		$redirecting_url = site_url('/odontoiatri/login/?action=profile&new_user=1');
    		wp_redirect($redirecting_url);
    		}
    
        exit;
    }
    add_action( 'tml_new_user_registered', 'tml_new_user_registered' );

    if someone has a better way (i’m sure there is) i would like to know =)

    Hi all, I see there’s a lot of people loving to work with this plugin.
    very nice Job Jeff =)

    I have a slighlty different issue:

    1) i want to use the tml redirection module as default settings
    2) But i would like to specify when i need a different redirection for login and registration+auto-login

    Actually i’ve been able with little effort to achieve this on login phase.
    I just pass on querystring a variable “redirect_url”
    then with this little edit on my customized login-form.php

    <?php
    			$redirect_url = $_GET['redirect_url'];
    			if ($redirect_url == ""){
    			?>
    				<input type="hidden" name="redirect_to" value="<?php $template->the_redirect_url( 'login' ); ?>" />
    				<?php }else{ ?>
    				<input type="hidden" name="redirect_to" value="<?php echo $redirect_url; ?>" />
    				<?php } ?>

    it works seamless.

    But i’m not able to achieve the same results on registration-form.php just because it do not auto-log users.

    how could I make users, after registration, to auto-login and redirect in a custom url (passed on querystring to registration template) Only if this is specified, otherwise they will be redirected to default page set on tml redirection module?

    Same issue here:

    after upgrated WordPress SEO to last version 0.4.2 I started having js errors i my firefox error console.

    I found out that it was not a conflict with another plugin, but with the custom jQuery Ui Library (https://jqueryui.com) i’m using in my template (i’m using datepicker in backend).

    I’ll try to update or change my jQuery Ui configuration and then I’ll keep you posted.

    Forum: Hacks
    In reply to: Help localize a plugin
    Thread Starter bluantinoo

    (@bluantinoo)

    Resolved: my mistake was on language files path declaration.

    this fixed:

    $plugin_path = dirname( plugin_basename( __FILE__ ) ) . ‘/languages/’;

    this was wrong:

    $plugin_path = dirname(plugin_basename( __FILE__ ) .’/languages’ );

    I was answered on WordPress Stack Exchange

    hello everybody,
    have you found out a solution for this issue?

    I’m also interested in this.

    Hi barringtonM

    i’m also interested in this.
    did you find a solution?

Viewing 7 replies - 271 through 277 (of 277 total)