benutzen einen Betreff in der Bemerkung

Begonnen von algebre, 28 April 2007, 14:08:41

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

algebre

hi

in  /modules/news/comments.php I found this line:

$comments_use_subject = 0;

I think that it is not practical, , then I made some modifications  in setting.php and comments.php.
1: admin/modules/setting.php
after this line:

echo "</td></tr>"
     . "<tr valign=\"top\"><td>" . _COMMENTSARTICLES . "</td><td>";
    if ($articlecomm == 1) {
        echo "<input type=\"radio\" name=\"xarticlecomm\" value=\"1\" checked>" . _YES . " &nbsp;<input type=\"radio\" name=\"xarticlecomm\" value=\"0\">" . _NO;
    } else {
        echo "<input type=\"radio\" name=\"xarticlecomm\" value=\"1\">" . _YES . " &nbsp;<input type=\"radio\" name=\"xarticlecomm\" value=\"0\" checked>" . _NO;
    }





I added:

//use subject in comment
    echo "</td></tr>"
     . "<tr valign=\"top\"><td>" . _COMMENT_USE_SUBJECT . "</td><td>";
    if ($use_subject == 1) {
        echo "<input type=\"radio\" name=\"xuse_subject\" value=\"1\" checked>" . _YES . " &nbsp;<input type=\"radio\" name=\"xuse_subject\" value=\"0\">" . _NO;
    } else {
        echo "<input type=\"radio\" name=\"xuse_subject\" value=\"1\">" . _YES . " &nbsp;<input type=\"radio\" name=\"xuse_subject\" value=\"0\" checked>" . _NO;
    }



2: modules/news/comments.php
I replaced this line:

$comments_use_subject = 0;


by:

global $use_subject;
$comments_use_subject = $use_subject;


evidently it is necessary to add this constant into languages files :

define("_COMMENT_USE_SUBJECT","?????????????????????????????");





algebre