• 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

N

Nelson T.

Guest
#1
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:

 
Last edited by a moderator:

Chris D

XenForo developer
Staff member
#2
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?
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.
 
N

Nelson T.

Guest
#3
How about just changing the button from "Sign Up Now" to what Brogan has "Log in or Sign Up"
 

Chris D

XenForo developer
Staff member
#5
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).
 
N

Nelson T.

Guest
#6
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!