I have posted this on the amember forum but hoping someone here may be able to shed some light.
I have been attempting to integrate the amember login form in to one of the templates provided in Xenforo for a few days now using the Amember Lite API, with no avail.
I have been using the following code
<?phpinclude "/home/usrad/public_html/amember/library/Am/Lite.php"; echo Am_Lite::getInstance()->renderLoginForm(); ?>
<?phpinclude '/home/usrad/public_html/amember/library/Am/Lite.php'; echo Am_Lite::getInstance()->renderLoginForm(); ?>
I then tried to create a new template in Xenforo and use the xen:include tag to include the template, which again just the echoed text.
I'm not great with php so not sure if 'echoing' is the right command to use however I decided to paste the aforementioned snippet of code in to a blank php file and upload it to the server, this worked instantly and showed the amember form.
Is there anything obvious I have been missing? Am I meant to put the include above the HTML? (If so would this then load on every page?)
EDITED TO ADD: The Amember API is referred to here