4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Caelestis on March 26, 2003, 04:52:16 PM

Title: ok... good one...
Post 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?
Title: ok... good one...
Post by: V@no on March 26, 2003, 06:03:41 PM
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?"
Title: ok... good one...
Post by: PuCK on March 26, 2003, 07:20:44 PM
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:
Code: [Select]

<input type="text" name="comment_headline" size="30" value="{comment_headline}" class="commentinput" />


Replace with:
Code: [Select]

<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.
Title: ok... good one...
Post by: V@no on March 26, 2003, 07:27:42 PM
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
Code: [Select]
   if ($comment_headline == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
      $error = 1;
    }
in details.php
to:
Code: [Select]
   if ($comment_headline == "")  {
    $comment_headline = "RE: ".$image_row['image_name'];
   }
Title: ok... good one...
Post by: PuCK on March 26, 2003, 07:31:23 PM
Or use a combination of our solution :D
Title: ok... good one...
Post by: Caelestis on March 27, 2003, 12:09:08 AM
v@no ---

that was it exactlly... thank you...