4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Caelestis on March 26, 2003, 04:52:16 PM
-
ok... i need to know how to make it so that the Headline field isn't required and if nothing is put in it will automatically put in Re:[image title]...
anyone have any ideas?
-
if to the question u would add a little info what are u talking about.... 8O
are u talking about comments?
or what?
It's like I'd ask u: "do u think I should wear grey tie or brown one?"
-
I think he means the headline in comments.
I'm curious about this to. Allot of people don't want to change the headline.
I think I know a way, one moment:
Ok found it, it's a bit of an other way then you said but it works:
in template folder / comment_form.html search for:
<input type="text" name="comment_headline" size="30" value="{comment_headline}" class="commentinput" />
Replace with:
<input type="text" name="comment_headline" size="30" value="RE: {image_name}" class="commentinput" />
This way, the headline in the form will always be RE: (image name) unless the user changes this.
-
well, then, here is a good place to start ;)
http://4homepages.de/forum/viewtopic.php?t=4146&highlight=comment+header
[EDITED] seems I start writing this post in the same time with PuCK :D
but anyway, another way u can do is change if ($comment_headline == "") {
$msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
$error = 1;
}
in details.php
to: if ($comment_headline == "") {
$comment_headline = "RE: ".$image_row['image_name'];
}
-
Or use a combination of our solution :D
-
v@no ---
that was it exactlly... thank you...