Seite 1 von 2
Allgemeine Frage zum ändern des Codes
Verfasst: 24.08.2006 11:29
von haustier
#
#-----[ FIND ]---------------------------------------------
# around line 580
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);
}
#
#-----[ AFTER, ADD ]---------------------------------------
# the Line have to be added AFTER the closing brace
$attachment_mod['posting']->insert_attachment($post_id);
Muss ich das dann so einfügen? Oder muss ein Absatz vorher gemacht werden?
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);
} $attachment_mod['posting']->insert_attachment($post_id);
Verfasst: 24.08.2006 11:36
von SoLo1905
nein
du musst das suchen
Code: Alles auswählen
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);
}
und das einfügen
Code: Alles auswählen
$attachment_mod['posting']->insert_attachment($post_id);
Verfasst: 24.08.2006 11:38
von haustier
So also?
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);$attachment_mod['posting']->insert_attachment($post_id);
}
Verfasst: 24.08.2006 11:39
von SoLo1905
suchen ja
Verfasst: 24.08.2006 11:40
von Beagleman
Du kannst ruhig eine neue Zeile beginnen.
Der Hinweis soll nur davor warnen, den neuen Code nicht vor die Klammer zu setzen.
Verfasst: 24.08.2006 11:41
von SoLo1905
ja so ist es
Re: Allgemeine Frage zum ändern des Codes
Verfasst: 24.08.2006 11:42
von Peggy
Nein.
#
#-----[ FIND ]---------------------------------------------
# around line 580
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);
}
#
#-----[ AFTER, ADD ]---------------------------------------
# the Line have to be added AFTER the closing brace
$attachment_mod['posting']->insert_attachment($post_id);
das muss also so aussehen:
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);
}
$attachment_mod['posting']->insert_attachment($post_id);
Verfasst: 24.08.2006 11:43
von haustier
Da habe ich was falsch verstanden. Soll der neue Code vor oder hinter diese Klammer?
}
Verfasst: 24.08.2006 11:44
von SoLo1905
vor
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);
}
$attachment_mod['posting']->insert_attachment($post_id);
Verfasst: 24.08.2006 11:44
von Beagleman
haustier hat geschrieben:So also?
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);$attachment_mod['posting']->insert_attachment($post_id);
}
Nein! So eben
nicht!
Sondern so:
Code: Alles auswählen
update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);
}
$attachment_mod['posting']->insert_attachment($post_id);