4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Chelle on May 24, 2006, 03:50:42 PM
-
Hiya
I wanna remove post headline in the gallery ..
They do not need to post this headline before they can leave me a comment ..
I removed the post headline box from comment form but when i try to post a comment
It shows a error
Please enter headline .. which I have already remove this box from the form
Please help me urgently
ty in advance
-
This would be a great MOD
-
Ok
In details.php removing
if ($comment_headline == "") {
$msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
$error = 1;
}
-
or..
replace this
if ($comment_headline == "") {
$msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
$error = 1;
}
with this
if ($comment_headline == "") {
$msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
$error = 0;
}
-
Even better!
-
I have done what Loda suggested here, but when I as administrator go to edit a comment, it still requires that a headline be entered. How can I edit the admin php files to stop this? Which file? What to change?
Thank you.
-
Try this
http://www.4homepages.de/forum/index.php?topic=6646.msg90262#msg90262
-
I have done that now, however, when I as administrator go to edit a comment, I get a warning that says, "Please recheck the marked fields," and "Headline" is starred with an asterisk in red. I need to remove the necessity of a a headline from the admin php files also. I have tried, but what I did did not work.
Please help.
-
Open Comments.php in admin folder
Find and remove:
show_input_row($lang['field_headline'], "comment_headline", $comment['comment_headline'], $textinput_size);
and
show_input_row($lang['field_headline_contains'], "comment_headline", "", $textinput_size);
-
That almost works! Now the field for the headline is gone in the admin panel, but when I click the save changes button it still says, "Please recheck the marked fields" at the top.
Thank you, Jenn, for trying to help me. Of course I have no idea what to do next. :(
-
Also removed this as well.
if ($comment_headline == "") {
$error['comment_headline'] = 1;
-
or change in the comment_form.html
<input type="text" name="comment_headline" size="30" value="{comment_headline}" class="commentinput" />
to
<input type="hidden" name="comment_headline" value=" " />
Thats need no changes on the Scripts... (o:
And you can make Updates without any problem...
-
Also removed this as well.
if ($comment_headline == "") {
$error['comment_headline'] = 1;
Jenn, your posts were helpful and together they solved the problem. I appreciate it. :)