Hi Vraxor,
Thanks for the credits, but you take it by your self and the credits go back to you
The code is right and you have make a very good tutorial about this, and it must run with the little corrections from Mec4d very good.
@Mec4d Yes, delete the line with the comment_date (in the code and in the template), it only makes problems
But, some little cosmetic changes i will give you here -
for your line:
$site_email->set_subject("Comment Posted");
take this line:
$site_email->set_subject($lang['send_comment_emailsubject']);
Now go to your lang/"your language"/main.php/ to the point "Comments":
After this code:
//-----------------------------------------------------
//--- Comments ----------------------------------------
//-----------------------------------------------------
.
.
.
$lang['post_comment'] = "post comment";
add this code:
$lang['send_comment_emailsubject'] = "Your picture has become a new comment";
For the text "Your picture..." write what you want, i hope in better english as mine. Thats the email subject
For your line:
"user_name" => $image_row['user_name'],
"recipient_name" => $recipient_name,
take this lines:
"user_name" => stripslashes($user_name),
"recipient_name" => stripslashes($image_row['user_name']),
"user_name" is the name of the person who makes the comment
"recipient_name" is the name of the owner of the picture. He / She becomes this mail.
Now you can take this code in your
comment_email.html
Dear {recipient_name},
{user_name} posted a comment on {image_name} at {site_name}.
To view the comment go to: {image_url}
------
Best regards, {site_name}
Everybody who has make the
Mod-phpbb integration must chance this line:
"recipient_name" => stripslashes($image_row['user_name']),
with this line:
"recipient_name" => stripslashes($image_row['username']),
If you don`t do it you have no recipient_name in your template.
When you test this mod at home (at your local server on your Pc), it is right that you become an error-messages like this: Error in email.php. You cant send on your local Pc emails
Online (on your webspace) this Mod runs correctly !!!
So I think that was all for the moment
... and sorry for my english its not the best
cu
tommy