D
Deleted member 10469
Guest
Hi, i have a .php.
I would like returned a xenforo template and passing variables.
My code :
How can I do that please ?
I would like returned a xenforo template and passing variables.
My code :
PHP:
// Secret BBcode (Display a message if the user has a specific id)
public static function parseSecret(array $tag, array $rendererStates, &$parentClass)
{
if (!empty($tag['option']) && $parentClass->parseMultipleOptions($tag['option']))
{
$attributes = $parentClass->parseMultipleOptions($tag['option']); // Id's
$userSecretMessage = $tag['children'][0]; // Message
foreach($attributes as $usersId)
{
$usersIdString = $usersId . ',';
}
return /* HERE LOAD A XENFORO TEMPLATE AND PASSING VARIABLES */;
// Variables to pass: $usersIdString and $userSecretMessage
}
}
How can I do that please ?