Author Topic: ok... good one...  (Read 5408 times)

0 Members and 1 Guest are viewing this topic.

Offline Caelestis

  • Newbie
  • *
  • Posts: 40
    • View Profile
ok... good one...
« 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?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
ok... good one...
« Reply #1 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?"
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline PuCK

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://www.acidarts.net
ok... good one...
« Reply #2 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.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
ok... good one...
« Reply #3 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'];
   }
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline PuCK

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://www.acidarts.net
ok... good one...
« Reply #4 on: March 26, 2003, 07:31:23 PM »
Or use a combination of our solution :D

Offline Caelestis

  • Newbie
  • *
  • Posts: 40
    • View Profile
ok... good one...
« Reply #5 on: March 27, 2003, 12:09:08 AM »
v@no ---

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