This is not what I want. What I want is that if the checkbox is pressed, the lifetime is 0 seconds for the session to close automatically.
The resulting cookie is the same, press or not press the checkbox.
I'm creating an external login form in my website and I have a problem with the parameter $lifetime in setCookie() function (from XenForo_Helper_Cookie).
This is the setCookie() function in XenForo_Helper_Cookie:
public static function setCookie($name, $value, $lifetime = 0, $httpOnly = false...
One more question about your script, Vincent: How exactly works the function called renderTemplate()? I put 'register_form' in the first parameter, but I don't know what is array $params :S
This is my code:
<?php
require_once('../foros/XenForoSDK.php');
$sdk = new XenForoSDK;
$template =...
A few days ago, we bought a XenForo license for our project and we have been exploring the code to try to understand how MVC works, but it's difficult.
We want to use the "register_form" template in an external page, generating the HTML code.
The question is: ¿How can we use the "register_form"...