get_block('mbSpecials')) != null) { load_language('plugin.lang', SPBA_PATH); $position = (isset($conf['SPBA_position']) and is_numeric($conf['SPBA_position'])) ? $conf['SPBA_position'] : count($block->data)+1; array_splice($block->data, $position-1, 0, array('See_photos_by_user' => array( 'URL' => make_index_url(array('section' => 'See_photos_by_user')), 'TITLE' => l10n('See photos by user'), 'NAME' => l10n('See photos by user') ) ) ); } } function section_init_SPBA() { global $tokens; if (in_array('See_photos_by_user', $tokens)) include(SPBA_PATH . 'pagespba.php'); } add_event_handler('blockmanager_apply' , 'add_link_SPBA'); add_event_handler('loc_end_section_init', 'section_init_SPBA'); ?>