Seite 1 von 1

junior admin & reduce admin navigation

Verfasst: 10.02.2004 21:27
von Dagobert
hallo !

ich hab bei mir im board den reduce admin navigation installiert und möchte jetzt noch den junior admin einfügen.

leider überschneiden sich die beiden codestellen und ich weiss nich so ganz wie ich das jetz machen muss......

das hier sind die codes:


das hier habe ich durch den aufruf der function "function jr_admin_make_left_pane" ersetzen müssen:

Code: Alles auswählen

ksort($module);

	while( list($cat, $action_array) = each($module) )
	{
		$cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat);

		$admin_category_title = $cat; 
		$admin_category = '<a href="'.append_sid("index.$phpEx?pane=left&open_close=$admin_category_title").'">'.$admin_category_title.'</a>'; 

		$template->assign_block_vars("catrow", array( 
			'ADMIN_CATEGORY' => $admin_category 
		)); 

		ksort($action_array);

		$row_count = 0;
		while( list($action, $file)	= each($action_array) )
		{
			if ( $open_close == $admin_category_title )
			{
				$row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2'];
				$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];

				$action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action);

				$template->assign_block_vars("catrow.modulerow", array(
					"ROW_COLOR" => "#" . $row_color,
					"ROW_CLASS" => $row_class,

					"ADMIN_MODULE" => $action,
					"U_ADMIN_MODULE" => append_sid($file))
				);
				$row_count++;
			}
		}
	}

das hier is die function:

Code: Alles auswählen

function jr_admin_make_left_pane()
{
	global $template, $lang, $module, $phpEx, $userdata;
	
	jr_admin_include_all_lang_files();
	
	@ksort($module);
	//Loop through and set up all the nice form names, etc
	foreach ($module as $cat => $module_array)
	{
		$template->assign_block_vars("catrow", array(
		'ADMIN_CATEGORY' => (isset($lang[$cat])) ? $lang[$cat] : preg_replace("/_/", ' ', $cat)
		));
		@ksort($module_array);
		$i = 0;
		foreach ($module_array as $module_name => $data_array)
		{
			//Compile our module url with lots of options
			$module_url = $data_array['filename'];
			$module_url .= (preg_match("/^.*\.$phpEx\?/", $module_url)) ? '&' : '?';
			$module_url .= "sid=".$userdata['session_id']."&module=".$data_array['file_hash'];
			
			$template->assign_block_vars("catrow.modulerow", array(
			'ROW_CLASS' => (++$i % 2) ? 'row1' : 'row2',
			'ADMIN_MODULE' => (isset($lang[$module_name])) ? $lang[$module_name] : preg_replace("/_/", ' ', $module_name),
			'U_ADMIN_MODULE' => $module_url
			));
		}
	}
}

könnt ihr mir da helfen ??


gruß dagobert

Verfasst: 11.02.2004 00:05
von oxpus
Am besten Du baust den Reduce ACP Navigation Mod erstmal wieder aus und nach dem Junior Admin wieder ein.
Es gibt im Mod ja für beide Möglichkeiten die entsprechenden Anleitungen.

Verfasst: 11.02.2004 02:02
von Dagobert
oh man.....du hast recht.

ich depp. danke dir !

gruß dagobert

Verfasst: 11.02.2004 06:18
von oxpus
Kein Problem.