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

Nice new footer!

ToDie4

Well-known member
#7
The new xfsite footer section looks pretty cool, Kier, would it be okay with you if I emulate the look of it for the two similar to xenforo default styles I have available, I wouldn't copy your content of course, just the basic look and feel, it would give my similar to default styles a continued likeness. :)
 

Ati

Active member
#9
It would look even cooler if the black background would continue all the way to the bottom of the page. It looks nice now when it's at the bottom, but with shorter pages it just hangs there in the middle of the page:

footer.jpg
 

Didzi

Active member
#15
The menu system in the new footer for the links to home, search, news etc look more professional than the menu system at the top of the forum to me, I am not sure if its the text or color that make them appear more professional.
 

EQnoble

Well-known member
#16
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.
 

Kier

XenForo Developer
Staff member
#17
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 just something for xenforo.com, I've added it via an add-on, none of the standard templates have been edited.
 

EQnoble

Well-known member
#18
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.
 

Kier

XenForo Developer
Staff member
#19
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.
It's pretty simple really:
PHP:
/**
 * 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);
	}
}