Hi KeinenPlan,
Es gib einen Weg, die Zeile für Kommentare zu entfernen.
So dass sie nicht mehr auf deiner Webseite erscheinen.
Öffne bitte folgende Datei:
Gallerie/includes/themes.inc.php und gehe auf die
Zeile etwa 871.
Da wirdst Du einige Zeilen entfernen müssen,
damit sie nicht mehr auf deiner Webseite erscheinen.
Achte bitte auf die
if (!isset($template_add_your_comment
Bedingung
und auch auf
<<<EOT für den Anfang,
und auf
EOT; für das Ende
So jetzt geh's los:
So sieht die aktuelle code:
Alt
if (!isset($template_add_your_comment)) //{THEMES}
$template_add_your_comment = <<<EOT
<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">
<tr>
<td width="100%" class="tableh2_compact"><b>{ADD_YOUR_COMMENT}</b></td>
</tr>
<tr>
<td colspan="3" width="100%">
<form method="post" name="post" action="db_input.php">
<table width="100%" cellpadding="0" cellspacing="0">
<!-- BEGIN user_name_input -->
<tr><td class="tableb_compact">
{NAME}
</td>
<td class="tableb_compact">
<input type="text" class="textinput" name="msg_author" size="10" maxlength="20" value="{USER_NAME}" />
</td>
<!-- END user_name_input -->
<!-- BEGIN input_box_smilies -->
<td class="tableb_compact">
{COMMENT} </td>
<td width="100%" class="tableb_compact">
<input type="text" size="50" class="textinput" id="message" name="msg_body" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" maxlength="{MAX_COM_LENGTH}" style="width: 100%;" /> <!-- END input_box_smilies -->
<!-- BEGIN input_box_no_smilies -->
<td class="tableb_compact">
<input type="text" class="textinput" id="message" name="msg_body" maxlength="{MAX_COM_LENGTH}" style="width: 100%;" />
<!-- END input_box_no_smilies -->
</td>
<td class="tableb_compact">
<input type="hidden" name="event" value="comment" />
<input type="hidden" name="pid" value="{PIC_ID}" />
<input type="submit" class="comment_button" name="submit" value="{OK}" />
</td></tr>
</table>
</form>
</td>
</tr>
<!-- BEGIN smilies -->
<tr>
<td width="100%" class="tableb_compact">
{SMILIES}
</td>
</tr>
</table>
<!-- END smilies -->
EOT;
Und so soll es aussehen, damit die Zeilen für Kommentare nicht mehr erscheinen:
Neu
if (!isset($template_add_your_comment)) //{THEMES}
$template_add_your_comment = <<<EOT
<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">
<tr>
<td colspan="3" width="100%">
<form method="post" name="post" action="db_input.php">
<table width="100%" cellpadding="0" cellspacing="0">
<!-- BEGIN user_name_input -->
<tr><td>
<!-- END user_name_input -->
<!-- BEGIN input_box_smilies -->
<!-- BEGIN input_box_no_smilies -->
<!-- END input_box_no_smilies -->
</td></tr>
</table>
</form>
</td>
</tr>
<!-- BEGIN smilies -->
<tr>
<td width="100%" class="tableb_compact">
</td>
</tr>
</table>
<!-- END smilies -->
EOT;
Gruß
gabin