Author Topic: [Mod] Mail Owner of image when Comment is Posted  (Read 241023 times)

0 Members and 1 Guest are viewing this topic.

Offline Jasondavis

  • Full Member
  • ***
  • Posts: 157
    • View Profile
thank you
« Reply #30 on: February 08, 2003, 10:50:44 AM »
hi thank you so much it works great now

Offline Ernesto Taseffa

  • Full Member
  • ***
  • Posts: 151
    • View Profile
[Mod] Mail Owner of image when Comment is Posted
« Reply #31 on: February 25, 2003, 05:43:06 PM »
.
« Last Edit: August 09, 2009, 12:55:36 AM by Ernesto Taseffa »

Offline Ernesto Taseffa

  • Full Member
  • ***
  • Posts: 151
    • View Profile
[Mod] Mail Owner of image when Comment is Posted
« Reply #32 on: March 04, 2003, 10:46:11 AM »
.
« Last Edit: August 09, 2009, 12:55:20 AM by Ernesto Taseffa »

Offline KleinerDrache

  • Newbie
  • *
  • Posts: 46
    • View Profile
[Mod] Mail Owner of image when Comment is Posted
« Reply #33 on: March 22, 2003, 11:02:58 PM »
Da ich leider kein Englisch kann habe ich in diesem Thema ein wenig den Überblick verloren und würde mich freuen wenn jemand eine komplett neue Anleitung schreiben könnte.
Danke!!!

--------------------------------------------------

Since I know unfortunately no English have I in this topic a little the overview lost and if someone would be pleased a completely new guidance write could. Thanks!!!

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Mail Owner of image when Comment is Posted
« Reply #34 on: March 23, 2003, 10:19:33 AM »
Quote from: seffern
"Message-Id: <E18nhks-0002Fy-00@....."
Any ideas yet?


I believe this message id was added by your mail server and has nothing to do with 4images code

Offline Cancy

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • http://www.fantasy-arthouse.de
Kommentartext und Überschrift mitsenden
« Reply #35 on: March 23, 2003, 04:58:27 PM »
Um auch den Kommentar mit in der Mail anzuzeigen, habe ich das folgende so abgeändert:

Quote

   
       // Start Emailer für comments
    include(ROOT_PATH.'includes/email.php');
    $site_email = new Email();
    $site_email->set_to($recipient_email);
    $site_email->set_from($config['site_email'], $config['site_name']);
        $site_email->set_subject($lang['send_comment_emailsubject']);
    $site_email->register_vars(array(
      "user_name" => stripslashes($user_name),
            "recipient_name" => stripslashes($image_row['user_name']),
      "image_name" => $image_row['image_name'],
      "site_name" => $config['site_name'],
      "image_url" => $image_url,
      "comment_text" =>$comment_text,
      "comment_headline"=>$comment_headline,
          ));
    $site_email->set_body("comment_email", $config['language_dir']);
    $site_email->send_email();
    }
  }


{comment_headline}  und {comment_text} müssen jetzt nur noch in der comment_email.html eingefügt werden.

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
Re: Kommentartext und Überschrift mitsenden
« Reply #36 on: March 23, 2003, 05:00:04 PM »
Quote from: Cancy
Um auch den Kommentar mit in der Mail anzuzeigen, habe ich das folgende so abgeändert:
...
{comment_headline}  und {comment_text} müssen jetzt nur noch in der comment_email.html eingefügt werden.

Nice!  :D
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 hoelzlmani

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • http://www.smssprueche.net
[Mod] Mail Owner of image when Comment is Posted
« Reply #37 on: March 24, 2003, 03:12:28 PM »
is it possible that only the webmaster get an email and not the owner of the picture? what must i change?

Offline rustynet

  • Addicted member
  • ******
  • Posts: 1.031
  • {if msg}{msg}{endif msg}
    • View Profile
    • rustynet.de
[Mod] Mail Owner of image when Comment is Posted
« Reply #38 on: March 26, 2003, 11:04:16 AM »
(sorry for my english)
Maybe someone can help me,

i did integrated my 4images with invisionsboard, everythings works fine,
and i want to use this mod too.

thanks  :)

Offline rustynet

  • Addicted member
  • ******
  • Posts: 1.031
  • {if msg}{msg}{endif msg}
    • View Profile
    • rustynet.de
[Mod] Mail Owner of image when Comment is Posted
« Reply #39 on: March 26, 2003, 11:33:20 AM »
O.K. I just did it,

anyway thank you very much.

boti :D

Offline Biggi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://www.bibodia.de/
[Mod] Mail Owner of image when Comment is Posted
« Reply #40 on: March 27, 2003, 12:28:05 AM »
Hallo Cancy,
ich hab mich gerade sehr über Deine Nachricht gefreut, daß es eine Lösung für die Anzeige des Kommentares in der Mail gibt. Habe das auch gleich alles so geändert.

Leider erscheint bei mir überhaupt keine Änderung in der comment_email.html

details.php und {comment_text] in der comment_email.html sind drin. Woran könnte das liegen? Es müßte doch nun eigentlich klappen? Hast Du irgendeine Idee? Ich stehe vor einem Rätsel  :roll:

Viele Grüße, Biggi

Offline Cancy

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • http://www.fantasy-arthouse.de
[Mod] Mail Owner of image when Comment is Posted
« Reply #41 on: March 27, 2003, 09:08:50 AM »
Hm, seltsam...

Hier nochmal der komplette Block:

Quote
$sql = "INSERT INTO ".COMMENTS_TABLE."
              (image_id, user_id, user_name, comment_headline, comment_text, comment_ip, comment_date)
              VALUES
              ($id, ".$user_info['user_id'].", '$user_name', '$comment_headline', '$comment_text', '".$session_info['session_ip']."', ".time().")";
      $site_db->query($sql);
      $commentid = $site_db->get_insert_id();
      update_comment_count($id, $user_info['user_id']);
    $sql = "SELECT image_name FROM ".IMAGES_TABLE." WHERE image_id = $id";
    $image_name = $site_db->query($sql);
    $sql = "SELECT user_id FROM ".IMAGES_TABLE." WHERE image_id = $id";
    $user_id = $site_db->query($sql);
   
    $recipient_name = $image_row['user_name'];
    $recipient_email = $image_row['user_email'];
    $image_url = $script_url."/details.php?".URL_IMAGE_ID."=".$id."";
   
       // Start Emailer für comments
    include(ROOT_PATH.'includes/email.php');
    $site_email = new Email();
    $site_email->set_to($recipient_email);
    $site_email->set_from($config['site_email'], $config['site_name']);
        $site_email->set_subject($lang['send_comment_emailsubject']);
    $site_email->register_vars(array(
      "user_name" => stripslashes($user_name),
            "recipient_name" => stripslashes($image_row['user_name']),
      "image_name" => $image_row['image_name'],
      "site_name" => $config['site_name'],
      "image_url" => $image_url,
      "comment_text" =>$comment_text,
      "comment_headline"=>$comment_headline,
          ));
    $site_email->set_body("comment_email", $config['language_dir']);
    $site_email->send_email();
    }
  }
  unset($row);
  unset($spam_row);
}



und so sieht die comment_email.html bei mir aus:

Quote
Hallo {recipient_name},

{user_name} gab einen Kommentar zu deinem Bild "{image_name}" ab im {site_name}.

Kommentar:

{comment_headline}

{comment_text}

Hier kannst du den Kommentar ansehen: {image_url}

------
Mit freundlichen Grüssen,
{site_name}


Ich kann dir sonst beides (detail.php & comment_email.html) mal schicken wenn du möchtest.

Liebe Grüsse
Cancy

Offline Biggi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://www.bibodia.de/
[Mod] Mail Owner of image when Comment is Posted
« Reply #42 on: March 27, 2003, 11:22:40 PM »
Juppiduppiduuuuuuuh  :D

Ich war gestern so spät etwas geistig umnachtet und habe die geänderte comment_email.html ständig ins template-Verzeichnis geladen, obwohl sie ja ins Verzeichnis lang/deutsch/email gehört :-)

Nun klappt es auch mit sämtlichen Nachbarn - äh - Kommentaren  :D

Vielen Dank nochmal für Deine Hilfsbereitschaft!

Übrigens: Deine Homepage ist toll gestaltet und es war sehr interessant, was man aus diesem Galerie-Skript machen kann!

Viele Grüße & gute Nacht,

Biggi

Offline Caelestis

  • Newbie
  • *
  • Posts: 40
    • View Profile
[Mod] Mail Owner of image when Comment is Posted
« Reply #43 on: March 28, 2003, 03:09:24 AM »
any way to make it so that the user could choose wether to use this option or not?

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
[Mod] Mail Owner of image when Comment is Posted
« Reply #44 on: March 28, 2003, 08:18:09 AM »
sure. the user can select it he accepts or not mails from admin in his profile