WordPress.org

Ready to get started?Download WordPress

Forums

Login-Logout
auto login and redirect after registration (8 posts)

  1. xavierwp
    Member
    Posted 1 year ago #

    Hi

    first off thank you for this plugin, that's what i was looking for.. one thing, i'd like users to autologin and redirect after registration, is it possible to do withing the piece of code you provide without the plugin.

    thank you
    xavier

    http://wordpress.org/extend/plugins/login-logout/

  2. xavierwp
    Member
    Posted 1 year ago #

    Never mind my previous comment, i figured it out by using the extra-items options, which works great.. just one thing can you please give me some directions about how to write those links for the extra-items in header.. i'm totally lost as i' m not a coder, your help is greatly appreciatted. thank you.

    xavier

  3. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    If you need extra links somewhere on page than you could add them into the template just by editing theme files.

  4. xavierwp
    Member
    Posted 1 year ago #

    i'm doing it, i' m working on my theme files but i'd like to use all the functionality of your plugin in my header, i think is great the way links change depending on the login state, i just don't know how to implement the php link for the extra item. I'm referring to the following line:

    ` echo $split_char.$item_before.'"item_extra_login">'.$login_extra.$item_after;

    my link in the widget would be <a href="http://localhost/aptest/?page_id=8">My Account</a> ...and it works perfect.

    any idea how can i make this link to work? thanks

    xavi

  5. webvitaly
    Member
    Plugin Author

    Posted 1 year ago #

    Try this code:

    <a href="<?php echo get_permalink( 8 ); ?>">My Account</a>

  6. xavierwp
    Member
    Posted 1 year ago #

    no luck.., i tried it using different combinations and there's no change.. this is what i did:

    '<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>';
    
    echo $split_char.$item_before.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>';
    
    echo $split_char.$item_before.'"item_extra_login">'.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>';
    
    echo $split_char.$item_before.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>'.$login_extra.$item_after;
    
    echo $split_char.$item_before.'"item_extra_login">'.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>'.$item_after;
    
    echo $split_char.$item_before.'"item_extra_login">'.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>'.$login_extra.$item_after;

    i'm stuck with this =/

  7. xavierwp
    Member
    Posted 1 year ago #

    no luck.., i tried it using different combinations and there's no change.. this is what i did:

    '<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>';
    
    echo $split_char.$item_before.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>';
    
    echo $split_char.$item_before.'"item_extra_login">'.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>';
    
    echo $split_char.$item_before.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>'.$login_extra.$item_after;
    
    echo $split_char.$item_before.'"item_extra_login">'.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>'.$item_after;
    
    echo $split_char.$item_before.'"item_extra_login">'.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>'.$login_extra.$item_after;

    i'm stuck with this =/

  8. xavierwp
    Member
    Posted 1 year ago #

    no luck.., i tried it using different combinations and there's no change.. this is what i did:

    '<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>';
    
    echo $split_char.$item_before.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>';
    
    echo $split_char.$item_before.'"item_extra_login">'.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>';
    
    echo $split_char.$item_before.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>'.$login_extra.$item_after;
    
    echo $split_char.$item_before.'"item_extra_login">'.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>'.$item_after;
    
    echo $split_char.$item_before.'"item_extra_login">'.'<a href="<?php echo get_permalink( 8 ); ?>">My Account</a>'.$login_extra.$item_after;

    i'm stuck with this =/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic