1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Login Button Problems

Discussion in 'Styling and Customization Questions' started by Nelson T., Feb 17, 2015.

  1. Nelson T.

    Nelson T. Guest

    My users, like me, are upwards of 50. They can't find the login/signup link.

    I read the thread about how to make a sign up now button.

    I added :

    Code:
    <xen:hook name="ad_header" />
    
    <xen:if is="!{$visitor.user_id}">
    
    <div class="loginButton">
            <label for="LoginControl" id="SignupButton"><a href="{xen:link login}" class="inner">{xen:if $xenOptions.registrationSetup.enabled, {xen:phrase sign_up_now}, {xen:phrase log_in}}</a></label>
    </div>
    
    </xen:if>
    
    to the ad header, and

    Code:
    
    #loginBarHandle
    {
        display: none;
    }
    
    #header #SignupButton
    {
        float: right;
        margin: 10px 0;
        width: 165px;
    }
    
    .sidebar .loginButton
    {
        display: none;
    }
    
    <xen:if is="@enableResponsive">
    @media (max-width:@maxResponsiveMediumWidth)
    {
        .Responsive #loginBarHandle
        {
            display: inherit;
        }
    
        .Responsive #header #SignupButton
        {
            display: none;
        }
    
        .Responsive .sidebar .loginButton
        {
            display: inherit;
        }
    }
    </xen:if>
    
    to EXTRA.css


    That provides a "Sign Up Now" button.

    Can someone show me the code to modify the login so the button shows "Login" when the user is not logged in, and "sign up now" when the user isn't a member of the forum?


    Ideally, I would like this:

    [​IMG]
     
    Last edited by a moderator: Feb 17, 2015
  2. Chris D

    Chris D XenForo Developer Staff Member

    What you're asking for there isn't possible.

    There is no way of knowing the difference between someone who is logged out and someone who isn't a member.
     
  3. Nelson T.

    Nelson T. Guest

    How about just changing the button from "Sign Up Now" to what Brogan has "Log in or Sign Up"
     
  4. Martok

    Martok Well-Known Member

    To get what Brogan has, which I also have on my site:

    Find the phrase sign_up_now

    Edit the phrase text to Log in or Sign up
     
    Chris D likes this.
  5. Chris D

    Chris D XenForo Developer Staff Member

    Go to Admin CP > Appearance > Search Phrases

    Search for the title: "sign_up_now"

    Click on the phrase "sign_up_now" and change the phrase text to "Log in or Sign up" (or whatever you like).
     
  6. Nelson T.

    Nelson T. Guest

    Ahhh, thank you so much! That did it!!

    Now maybe my old timers will see it! Only 30% of them are logging into the site!
     

Share This Page