https://www.icyphoenix.com/viewtopic.php?f=35&t=1900&p=14090#p14090
-----------------------------------
Mighty Gorgon
Wed 16 May, 2007 02:08

Re: Adding Different Pages To Global Blocks
-----------------------------------
Welcome @ Icy Phoenix [b]Pogue Moran[/b].

I'll try to answers your questions.

[list][*]Regarding IM Portal, I have heavily modified it to work in a way that I like, and it is now really different from the original mod. I didn't add the possibility to show global blocks in some pages because I thought that on some pages global blocks are unuseful. Anyway, if you want to enable global blocks everywhere, you can modify the code directly in page_header and page_tail...

This is the header...
[code]if( empty($gen_simple_header) && (!defined('HAS_DIED')) && (!defined('IN_LOGIN')) && ($importal_wide == true) && ($board_config['board_disable'] == false) )
{
	$template->assign_block_vars('switch_importal', array(
		'SPACER' => $images['spacer'],
		)
	);

	$template->set_filenames(array('portal_header' => 'portal_page_header.tpl'));
	portal_parse_blocks($portal_config['default_portal'], true, 'header');
	$template->assign_var('PORTAL_HEADER', portal_assign_var_from_handle($template, 'portal_header'));

	$template->set_filenames(array('portal_headerleft' => 'portal_page_headerleft.tpl'));
	if (portal_parse_blocks($portal_config['default_portal'], true, 'headerleft'))
	{
		$template->assign_var('HEADER_WIDTH', $portal_config['header_width']);
		$template->assign_var('PORTAL_HEADERLEFT', portal_assign_var_from_handle($template, 'portal_headerleft'));
	}

	$template->set_filenames(array('portal_headercenter' => 'portal_page_headercenter.tpl'));
	if (portal_parse_blocks($portal_config['default_portal'], true, 'headercenter'))
	{
		$template->assign_var('PORTAL_HEADERCENTER', portal_assign_var_from_handle($template, 'portal_headercenter'));
	}
}[/code]

...and this is the footer part...

[code]if( empty($gen_simple_header) && (!defined('HAS_DIED')) && (!defined('IN_LOGIN')) && ($importal_wide == true) && ($board_config['board_disable'] == false) )
{
	$template->set_filenames(array('portal_tailcenter' => 'portal_page_tailcenter.tpl'));
	if (portal_parse_blocks($portal_config['default_portal'], true, 'tailcenter'))
	{
		$template->assign_var('PORTAL_TAILCENTER', portal_assign_var_from_handle($template, 'portal_tailcenter'));
	}

	$template->set_filenames(array('portal_tailright' => 'portal_page_tailright.tpl'));
	if (portal_parse_blocks($portal_config['default_portal'], true, 'tailright'))
	{
		$template->assign_var('FOOTER_WIDTH', $portal_config['footer_width']);
		$template->assign_var('PORTAL_TAILRIGHT', portal_assign_var_from_handle($template, 'portal_tailright'));
	}

	$template->set_filenames(array('portal_tail' => 'portal_page_tail.tpl'));
	portal_parse_blocks($portal_config['default_portal'], true, 'tail');
	$template->assign_var('PORTAL_TAIL', portal_assign_var_from_handle($template, 'portal_tail'));
}[/code]

I wouldn't modify this... but if you really need it...

[*]Regarding the NEW link, I may move it... honestly I didn't pay too much attention to this until today. :lol:
[*]Regarding smileys category, I didn't like too much this mod, that's why I've just implemented the pagination leaving the possibility to choose the number of smileys.
[*]Sticky avatar won't be included in Icy Phoenix, because it requires extra SQL to be included in the post table, which I would like to keep ad light as possible.[/list]

Thank you very much for your feedbacks.


