Seite 1 von 1

Simple Subforums - Einbauproblem

Verfasst: 02.02.2006 16:53
von JonnyBoy3000
Hallo,

ich bin gerade dabei den Simple Subforums Mod manuell (per Hand) einzubauen. Als ich in der functions.php einen eintrag hinzufügen musste kam die Stelle am Ende des eintrags mit den Klammern mir irgendwie komisch vor. Möchte aber daran nicht eigenwillig etwas ausprobieren und wollte daher fragen ob das jetzt so korrekt ist oder nicht:

Code: Alles auswählen

						//
						// Add an array to $nav_links for the Mozilla navigation bar.
						// 'chapter' and 'forum' can create multiple items, therefore we are using a nested array.
						//
						$nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
							'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
							'title' => $forum_rows[$j]['forum_name']
						);
						// Begin Simple Subforums MOD
						for( $k = 0; $k < $total_forums; $k++ )
						{
							if ( $forum_rows[$k]['forum_parent'] == $id && $forum_rows[$k]['cat_id'] == $category_rows[$i]['cat_id'] && $forum_rows[$k]['auth_view'] <= AUTH_REG )
							{
//							if ( $forum_rows[$k]['forum_parent'] == $id && $forum_rows[$k]['cat_id'] == $category_rows[$i]['cat_id'] && $is_auth[$forum_rows[$k]['forum_id']]['auth_view'] )
//							{
								$selected = ( $forum_rows[$k]['forum_id'] == $match_forum_id ) ? 'selected="selected"' : '';
								$boxstring_forums .=  '<option value="' . $forum_rows[$k]['forum_id'] . '"' . $selected . '>-- ' . $forum_rows[$k]['forum_name'] . '</option>';

								//
								// Add an array to $nav_links for the Mozilla navigation bar.
								// 'chapter' and 'forum' can create multiple items, therefore we are using a nested array.
								//
								$nav_links['chapter forum'][$forum_rows[$k]['forum_id']] = array (
									'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$k]['forum_id']),
									'title' => $forum_rows[$k]['forum_name']
								);
								
							}
						}
						// End Simple Subforums MOD
								
					}
				}

				if ( $boxstring_forums != '' )
				{
					$boxstring .= '<option value="-1">&nbsp;</option>';
					$boxstring .= '<option value="-1">' . $category_rows[$i]['cat_title'] . '</option>';
					$boxstring .= '<option value="-1">----------------</option>';
					$boxstring .= $boxstring_forums;
				}
			}
		}

Re: Simple Subforums - Einbauproblem

Verfasst: 02.02.2006 16:56
von hagily
JonnyBoy3000 hat geschrieben:Hallo,

ich bin gerade dabei den Simple Subforums Mod manuell (per Hand) einzubauen. Als ich in der functions.php einen eintrag hinzufügen musste kam die Stelle am Ende des eintrags mit den Klammern mir irgendwie komisch vor. Möchte aber daran nicht eigenwillig etwas ausprobieren und wollte daher fragen ob das jetzt so korrekt ist oder nicht:

Code: Alles auswählen

		....
Was willst du ausprobieren!?
was soll den falsch sein? :roll:
Mehr input => mehr output :D

Verfasst: 02.02.2006 16:59
von JonnyBoy3000
Ich will nichts ausprobieren. Ich will einfach nur wissen ob, das was ich ich von der Modanleitung her einbauen muss richtig ist oder nicht. Wie bereits gesagt: Das Ende des Mod-Eintrags mit den klammern macht mich stutzig und ich will einfach nur wissen, ob das korrekt ist oder nicht.