Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter xavierwp

    (@xavierwp)

    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

    Plugin Author webvitaly

    (@webvitaly)

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

    Thread Starter xavierwp

    (@xavierwp)

    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="https://localhost/aptest/?page_id=8">My Account</a> …and it works perfect.

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

    xavi

    Plugin Author webvitaly

    (@webvitaly)

    Try this code:

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

    Thread Starter xavierwp

    (@xavierwp)

    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 =/

    Thread Starter xavierwp

    (@xavierwp)

    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 =/

    Thread Starter xavierwp

    (@xavierwp)

    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 =/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘auto login and redirect after registration’ is closed to new replies.