The "XenForo News" link doesn't work yet.
It would look even cooler if the black background would continue all the way to the bottom of the page.
It's just something for xenforo.com, I've added it via an add-on, none of the standard templates have been edited.I love it...the gradient EXACTLY matches something I am working on right now...
Kier was this something you cheffed up for the site here only or is this something that will be included of sorts in an update of the software package itself? Maybe a stupid question but just curious.
It's pretty simple really:WHAT! How can I do that...I can't even begin to imagine how to go about that. Doing things like that might help me be able to make a worthy mod. At any rate....that is awesome and I am glad to know that it can be done.
/**
* Pre-cache the xfcom_page_wrapper template.
* Listens to 'template_create' code event.
*
* @param string $templateName
* @param array $params
* @param XenForo_Template_Abstract $template
*/
public static function templateCreate($templateName, array &$params, XenForo_Template_Abstract $template)
{
if ($templateName == 'PAGE_CONTAINER')
{
$template->preloadTemplate('xfcom_page_wrapper');
}
}
/**
* Wrap the xfcom_page_wrapper template around the page.
* Listens to 'template_hook' code event.
*
* @param string $hookName
* @param string $content
* @param string $hookParams
* @param XenForo_Template_Abstract $template
*/
public static function templateHook($hookName, &$content, array $hookParams, XenForo_Template_Abstract $template)
{
if ($hookName == 'body')
{
$params = $template->getParams();
$params['HTML'] = $content;
$content = $template->create('xfcom_page_wrapper', $params);
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.