[Template Edit] Add Facebook Login under "Sign Up" Button.

Status
Not open for further replies.

Mikey

:mikey:
Staff member
Jan 26, 2008
17,836
692
510
33
Disunited Queendom
mikeylicio.us
Okay, so what's the point in having facebook sign up/in all hidden away? And soon to be twitter log in (we hope!)

Here is a simple and painless template edit which moves Facebook sign in under "Sign Up Now"

2g


Find in login_bar_form:

Code:
	<xen:if hascontent="true">
		<ul id="eAuthUnit">
			<xen:contentcheck>
				<xen:if is="{$xenOptions.facebookAppId}">
					<li><a href="{xen:link register/facebook, '', 'reg=1'}" class="fbLogin"><span>{xen:phrase login_with_facebook}</span></a></li>
				</xen:if>
			</xen:contentcheck>
		</ul>
	</xen:if>

Delete or comment it.

Find in to sidebar_visitor_panel:

Code:
		<label for="LoginControl" id="SignupButton"><a href="{xen:link login}" class="inner">{xen:phrase sign_up_now}</a></label>

Add underneath:

Code:
	 <label for="FacebookLogin"><xen:if hascontent="true"><xen:contentcheck><xen:if is="{$xenOptions.facebookAppId}"><div align="center"><a href="{xen:link register/facebook, '', 'reg=1'}" class="fbLogin"><span>{xen:phrase login_with_facebook}</span></a></div></xen:if></xen:contentcheck></xen:if></label>

Hope this helped !
 
  • Like
Reactions: 9 people

Nerdface

OMG Member
Dec 25, 2003
110
2
70
Sheffield, UK
umbrella-online.co.uk
Just a heads up, the code changed again in 1.0.1 ;)

login_bar_form:
Code:
    <xen:if hascontent="true">
        <ul id="eAuthUnit">
            <xen:contentcheck>
                <xen:if is="{$xenOptions.facebookAppId}">
                    <xen:require css="facebook.css" />
                    <li><a href="{xen:link register/facebook, '', 'reg=1'}" class="fbLogin"><span>{xen:phrase login_with_facebook}</span></a></li>
                </xen:if>
            </xen:contentcheck>
        </ul>
    </xen:if>

The line in sidebar_visitor_panel becomes:
Code:
        <label for="FacebookLogin"><xen:if hascontent="true"><xen:contentcheck><xen:if is="{$xenOptions.facebookAppId}"><xen:require css="facebook.css" /><div align="center"><a href="{xen:link register/facebook, '', 'reg=1'}" class="fbLogin"><span>{xen:phrase login_with_facebook}</span></a></div></xen:if></xen:contentcheck></xen:if></label>
 
Status
Not open for further replies.