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

XF 1.2 How do i grab the login code to place on another page?

#1
Hey guys,


I have a couple of things i'd like to inquire about.

I was wondering how i can get the login/signup bar/code for xenforo, and place it on the rest of my website.
I have Wordpress merged with xenforo and it currently only displays the bar on the forums, but i'd like it to be global if possible.

Here's the bar i mean.

A bit clearer:



And also, in the same way, i'd like to know if possible how i could the exact same thing for this login/signup button too.




Any help much appreciated;
cheers.
 

Brogan

XenForo moderator
Staff member
#2
The code from the sidebar is this:
Code:
<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>
 
#3
Embarassingly i'm a bit ametuer with this. How would i go about adding it in? I have my wordpress style.css but nothing seems to happen when i throw it in there.
 
#5
After putting it in to a html box for wordpress, it gives me this;
(minus the blue ccc part)



I entered;

HTML:
<html>
<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>
</html>
 

Brogan

XenForo moderator
Staff member
#6
Syntax for XenForo templates will only work in XenForo templates.

Try looking in the resources for a WP bridge.
 
#7
I had a look around and didn't find anything that allows or does this.

I have seen websites have this, but then other people say it's 'impossible',

Does anyone know anything about this?