Author Topic: Comments without the comments header  (Read 6992 times)

0 Members and 1 Guest are viewing this topic.

Offline helluvaguy

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Comments without the comments header
« 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

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
Comments without the comments header
« Reply #1 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.
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 helluvaguy

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
Comments without the comments header
« Reply #2 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.