Seite 1 von 1

Finde Daten in einer datei nicht. Kann mal wer schauen.

Verfasst: 21.08.2006 23:18
von Lumpi007
Ich mache gerade ein Update auf 2.0.20

In der Datei index.php muss ich bei 301 etwa ersetzen, nur ich find es nicht. Könnt ihr mal sehen.

Textdatei

Finde Zeile 301

Code: Alles auswählen

// Okay, let's build the index
	//
	for($i = 0; $i < $total_categories; $i++)
	{
		$cat_id = $category_rows[$i]['cat_id'];

		//
		// Should we display this category/forum set?
		//
		$display_forums = false;
		for($j = 0; $j < $total_forums; $j++)
		{
			if ( $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] && $forum_data[$j]['cat_id'] == $cat_id )
			{
				$display_forums = true;
			}
		}

		//
		// Yes, we should, so first dump out the category
		// title, then, if appropriate the forum list
		//
		if ( $display_forums )

Ersetze durch

Code: Alles auswählen

// Let's decide which categories we should display
	//
	$display_categories = array();

	for ($i = 0; $i < $total_forums; $i++ )
	{
		if ($is_auth_ary[$forum_data[$i]['forum_id']]['auth_view'])
		{
			$display_categories[$forum_data[$i]['cat_id']] = true;
		}
	}

	//
	// Okay, let's build the index
	//
	for($i = 0; $i < $total_categories; $i++)
	{
		$cat_id = $category_rows[$i]['cat_id'];

		//
		// Yes, we should, so first dump out the category
		// title, then, if appropriate the forum list
		//
		if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])

Verfasst: 21.08.2006 23:39
von rabbit
der part ist vorhanden. hast du's schonmal mit einem vernünftigen editor wie z.b. weaverslave versucht?

Verfasst: 21.08.2006 23:59
von Lumpi007
In welcher Zeile denn ?

Verfasst: 22.08.2006 06:55
von rabbit
laut weberknecht auf zeile 512 ff.

Verfasst: 22.08.2006 11:17
von Lumpi007
rabbit hat geschrieben:laut weberknecht auf zeile 512 ff.
Super Danke