4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: helluvaguy on February 14, 2003, 10:41:39 PM

Title: Comments without the comments header
Post by: helluvaguy on February 14, 2003, 10:41:39 PM
I've been asked be quite a few users on my gallery why it isn't possible to post a comment without writing a header for  the comment. They are used to this by our phpBB forum, where it's only nessecary for the first post of a thread has to have a header. They see the picture and its discription as the first post...

I would like to change this, but haven't been able to find the appropiate code. Could someone please be so kind and tell me whre to find it and what to change?

Thx


Ich bin von etlichen Usern meiner Galerie gefragt worden, warum es nicht möglich ist, einen Kommentar zu posten ohne eine Überschrift anzugeben. Sie sind es von unserem phpBB Forum so gewohnt, dass nur der erste Beitrag in einem Thema eine Überschrift benötigt. Sie sehen das Bild mit seiner Beschreibung als ersten Beitrag...

Ich habe nun versucht, das zu ändern, habe aber bisher den entsprechenden Code nicht finden können. Wenn also jemand so nett sein könnte und mir sagt, wo ich ihn finden kann und was dort geändert werden müßte, wäre ich sehr dankbar.

Vielen Dank
Title: Comments without the comments header
Post by: V@no on February 14, 2003, 11:01:48 PM
in details.php u'll find this code:
Code: [Select]
   if ($user_name == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['name_required'];
      $error = 1;
    }
    if ($comment_headline == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
      $error = 1;
    }
    if ($comment_text == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['comment_required'];
      $error = 1;
    }

comment or delete the if (...) {...}; u dont want the script to check.
Title: Comments without the comments header
Post by: helluvaguy on February 14, 2003, 11:56:40 PM
details.php *slap hand against forehead*

Now it's obvious, that you mentioned it v@no. Thank you very much vor your response.