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

0 Members and 1 Guest are viewing this topic.

Offline Caelestis

  • Newbie
  • *
  • Posts: 40
    • View Profile
[Mod] Mail Owner of image when Comment is Posted
« Reply #45 on: March 28, 2003, 03:03:18 PM »
Quote from: SLL
sure. the user can select it he accepts or not mails from admin in his profile


If the user does this they won't recieve any e-mail sent by the admin though...

Offline Chepe

  • Pre-Newbie
  • Posts: 7
    • View Profile
Empty email
« Reply #46 on: March 29, 2003, 02:40:57 AM »
Great addition but I am getting empty emails.

Anyone?

Chepe

Offline Biggi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://www.bibodia.de/
[Mod] Mail Owner of image when Comment is Posted
« Reply #47 on: March 30, 2003, 11:50:39 AM »
Guten Morgen an alle,

Cancy hatte ja eine Möglichkeit geschaffen, den Text eines Kommentares gleich in der Benachrichtigungs-Email anzuzeigen. Das klappt alles wunderbar.

Nun würde ich gerne in der Benachrichtigung auch noch angezeigt haben, wie der letzte Kommentator bewertet hat. Ungefähr so:

Kommentartext hier

Bewertung: X Punkte

Kann mir bitte nochmals jemand behilflich sein? Wie könnte ich das in die Benachrichtigungsmail einbauen? Ich habe schon hin- und herprobiert, aber meine PHP-Kenntnisse reichen einfach nicht  :roll:  Ich würde mich sehr freuen, wenn jemand eine Lösung für mich hätte! Vielen Dank!

Biggi

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

I'll try it in english:

Cancy had managed to show the whole comment-text to the owner of an image. It works fine!

Now I'd like to show the rating of the last user who commented too.  For example this way:

Comment-text here

Rating: x Points

I'd be happy if someone could post a solution for this, because I cannot manage ist by myself.  Thanks in advance!

Offline Biggi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://www.bibodia.de/
[Mod] Mail Owner of image when Comment is Posted
« Reply #48 on: March 30, 2003, 12:07:34 PM »
Hat sich erledigt. Danke! Lösung poste ich gleich noch.

I've managed it. Solution followes in a few minutes...

Offline Biggi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
    • http://www.bibodia.de/
[Mod] Mail Owner of image when Comment is Posted
« Reply #49 on: March 30, 2003, 12:33:41 PM »
Und hier die Lösung, wie man in der Benachrichtigungsmail zusätzlich zum Kommentar-Text auch die Bewertung des letzten Kommentators mit anzeigt:

Here's the solution:

Suche in der details.php:
Search in details.php:


Code: [Select]
"comment_text" =>$comment_text,
"comment_headline"=>$comment_headline,


Füge in der nächsten Zeile ein:
Add in next line:


Code: [Select]
"rating" => $rating,


Ergänze in der comment_email.html:
Add in comment_email.html:


Code: [Select]
Bewertung:  {rating} Punkte

oder in Englisch:

Voting:  {rating} Points


That's it.

Viele Grüße, Biggi

Offline lakeside

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Something I never noticed before.
« Reply #50 on: April 24, 2003, 05:04:59 AM »
After adding this mod, I notice after I add a comment to a photo that on the page that comes up after adding the comment, the photo is listed as:
Resource id #29
I've never noticed this before.  If I go to a fresh image before adding a comment, it lists the photo name, but after adding a comment it lists it as
Resource id #29  the 29 can be replaced by another number depending on the image.  Anyway to fix 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
Re: Something I never noticed before.
« Reply #51 on: April 24, 2003, 03:26:57 PM »
Quote from: lakeside
After adding this mod, I notice after I add a comment to a photo that on the page that comes up after adding the comment, the photo is listed as:
Resource id #29
I've never noticed this before.  If I go to a fresh image before adding a comment, it lists the photo name, but after adding a comment it lists it as
Resource id #29  the 29 can be replaced by another number depending on the image.  Anyway to fix this?

I think u didnt read throught the replys ;)

from the MOD code delete top four lines:
Code: [Select]
$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);
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 Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
[Mod] Mail Owner of image when Comment is Posted
« Reply #52 on: May 06, 2003, 06:05:09 PM »
Is it possible to set that members will set if they want email notification or not?

Like in settings...?

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
[Mod] Mail Owner of image when Comment is Posted
« Reply #53 on: May 06, 2003, 06:37:35 PM »
yes ;)
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 Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
[Mod] Mail Owner of image when Comment is Posted
« Reply #54 on: May 06, 2003, 06:38:19 PM »
hehe V@no.... this is a tip right??? :D

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
[Mod] Mail Owner of image when Comment is Posted
« Reply #55 on: May 06, 2003, 06:51:09 PM »
ok, chose:
1. only image owners can chose receive or not emails on new posted comments
2. any registered members can "subscribe" for any images they want, to receive emails on new posted comments.

the first variant is already exist (no offical mods though), u can see it at my site ;)

the second variant is not exist (I'm not aware of), but I was thinking to make it sometimes today.
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 Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
[Mod] Mail Owner of image when Comment is Posted
« Reply #56 on: May 06, 2003, 07:16:30 PM »
you are right, you have this function when you want to add photo to your page. But saidly i couldn't find instruction how to install that mode  :cry:

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
[Mod] Mail Owner of image when Comment is Posted
« Reply #57 on: May 21, 2003, 09:05:41 AM »
v@no: i saw on your page, that you can check box where you can choose between reciving notification or not (its in UPLOAD section). But where or how did you set this?

Offline Shard

  • Pre-Newbie
  • Posts: 5
    • View Profile
[Mod] Mail Owner of image when Comment is Posted
« Reply #58 on: May 27, 2003, 10:01:13 AM »
I really wanna get this MOD goin' in my gallery. I had everything set up but I'd get a returned E-mail everytime some posted a comment. It said there was no recipient specified. I also noticed that in these returned E-mails the usernames weren't showing up in the Dear ______, area. I've got my gallery integrated in to PHPnuke and I think it may have something to do with some different mysql calls. What table is it pulling user_name and user_email from?

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
[Mod] Mail Owner of image when Comment is Posted
« Reply #59 on: May 27, 2003, 10:20:12 AM »
Quote from: Shard
What table is it pulling user_name and user_email from?
Whatever is specifyed in /includes/constants.php
define('USERS_TABLE' ,  blah blah);
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)