• [MOD] - Comments notify foreach user in details by email 3 0 5 1
Currently:  

Author Topic: [MOD] - Comments notify foreach user in details by email  (Read 146879 times)

0 Members and 2 Guests are viewing this topic.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #45 on: August 29, 2007, 06:57:45 PM »
Oh ... sorry. Topic edit. :oops:
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] - Comments notify foreach user in details by email
« Reply #46 on: August 29, 2007, 07:36:30 PM »
ok.. tested it on fresh new 1.7.4 version..
RUNS! great work! fantastic!!
a little question where can i find the thingin  your sreenshoot "aktivate"?

PS: i'm very sadly that it runs not under 1.7  :cry:

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #47 on: August 29, 2007, 07:37:56 PM »
Quote
RUNS! great work! fantastic!!

Exalent.

Quote
a little question where can i find the thingin  your sreenshoot "aktivate"?

In ACP - > Edit images.  :mrgreen:
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #48 on: August 29, 2007, 07:52:00 PM »
Quote
it was me.. not mr lovalove..

lOol !! so u got it :P

good its work finally with u Loda

good news thunder  :mrgreen:

my turn now lOol
English Please :@

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #49 on: August 29, 2007, 07:53:06 PM »
Quote
good news thunder   :mrgreen:

my turn now lOol

Good, good. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #50 on: August 29, 2007, 08:23:25 PM »
Core Fix:

- Step 1, 2nd code.
- Step 1, 4th code (09/03/2007).
- Step 2, 2nd define (09/03/2007).
- Step 3 (09/05/2007) - REV 2).
- Step 6, 1st code.
- Step 7.

Upgrade fix:

- Step 1, 2nd code (no need if do core fix).
- Step 2 (09/15/2007).
- Step 3 (09/15/2007).
- Step 5 (09/15/2007 - REV 3).
- Step 7 ([09/05/2007]) - URL:
  http://www.4homepages.de/forum/index.php?topic=18522.msg99366#msg99366

For reset notify table,

In details.php file,

find:

Code: [Select]
// MOD: Notify comments by email.
 if (function_exists('get_comments_notify_by_email')) {
     get_comments_notify_by_email($user_info['user_id'], 'check_table');     
 }
// End of MOD: Notify comments by email.

add before:

Code: [Select]
if ($user_info['user_level'] == ADMIN) {
$site_db->query("DROP TABLE " . COMMENTS_NOTIFY_TABLE);
}

Run 1 time ! - refresh your details page (any - no matter). Go back to details.php file and

change:

Code: [Select]
if ($user_info['user_level'] == ADMIN) {
$site_db->query("DROP TABLE " . COMMENTS_NOTIFY_TABLE);
}

for:

Code: [Select]
/*if ($user_info['user_level'] == ADMIN) {
$site_db->query("DROP TABLE " . COMMENTS_NOTIFY_TABLE);
}*/

Table is create in function and select good with fix.

Final fix - work - ([09/05/2007]).  8)

/* Tweak for auto-check */ - [09/15/2007]

http://www.4homepages.de/forum/index.php?topic=18522.msg100726#msg100726

/* Addon for enable / disable MOD (Step 9) */ - [10/03/2007] (REV 1)

http://www.4homepages.de/forum/index.php?topic=18522.msg99366#msg99366
« Last Edit: October 03, 2007, 09:40:32 PM by thunderstrike »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #51 on: August 30, 2007, 12:48:40 AM »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #52 on: August 30, 2007, 06:34:13 PM »
well, i know how much time u spent to modify this MOD

and its work for me

i know u r aimming to make  it 100% pro

and i feel u can in this few days


 :mrgreen:

great MOD
English Please :@

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #53 on: September 01, 2007, 05:37:40 PM »
in member_editprofile.html

add this:

Code: [Select]
<tr>
            <td class="row2"><b>{lang_comments_notify_ask_question}</b></td>
            <td class="row2"><a href="{url_comments_notify_panel}" class="link" />{lang_comments_notify_ask_question_url_name}</a></td>
          </tr>

this will show you the list of image that you want the system to notified you by email
so you can remove the notification from here coz all are list it :)
English Please :@

Offline Mr_LovaLove

  • Full Member
  • ***
  • Posts: 233
  • Unkown
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #54 on: September 05, 2007, 09:14:30 PM »
Thanks alot for doing this mod ^_^

well, users must know what have you done to appreciate your work

well, thunder has done this mod after testing the mod for almost one week

i spent about 4-8 hrs almost everyday to test this mod with him << this doesnt mean i code the mod with him , no i was only checking out if his update is work with all levels ( admin , users , guest )

and think about the time he spent doing the code ^_*

Brief of this mod

1- there will be 2 buttons ( check to notify you by email , uncheck to not notify you by email )
2- if you click on the button , that means if anyone post a comment on this image ( checked to by notifed ) you will receive an email with
     - name of the poster
    - name of the image
   - number of post ( one the email subject ) -> let assume ur post was number 3 so it will be counted and sent with the subject (subject + post: 3)
   - link of the image
3- in CP for every user there will be a page called comment notify this page will have the list of the images that you want the system to notify u on image
so easily u can click on uncheck button to delete that image from the list so any post on that image wont come to ur email

note: 3- will be a link in a CP

example:

name:               image name:              notify status:                    data & time :

thunder              tree                             checked                        4-9-2007
Mr_LovaLove       camera                          checked                       5-9-2007


let say that u dont want any more comments email for the camera image ( the one for Mr_LovaLove )

one click it will be deleted from the list

and if u add  more image to be notified it will appears in that page :)


also dont forget to try the other mods which was running also with this mod

image session comments

and

commest session


hope i help you guyz

and thanks again thunderstrike

really perfect job ^_^

 


« Last Edit: September 05, 2007, 10:03:30 PM by Mr_LovaLove »
English Please :@

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #55 on: September 05, 2007, 10:09:36 PM »
Thank for message Lovalove. 8)

Step 7 add:

http://www.4homepages.de/forum/index.php?topic=18522.msg99649#msg99649

Final fix just finish. Anyone - safe for install / upgrade now. ;)

8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Schtorsch

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #56 on: September 13, 2007, 06:58:46 PM »
Hallo Leute!

Ich wollte soooo gerne diesen Mod nutzen - aber leider funktioniert nix...  :cry:
Habe nun alle Schritte aus dem ersten Posting durchgeführt - es klappt nicht.

Zunächst kommt ein " unexpected T_DOUBLE_ARROW" in dieser Zeile hier:

Code: [Select]
"comments_notify_go_back" => (ereg("comments_notify.php", $url)) ? preg_replace("/" . $site_template->start. "go_back" . $site_template->end . "/siU", $site_sess->url(ROOT_PATH . "comments_notify.php"), $lang['comments_notify_go_back']) : "",
Wenn ich diesen Code (Schritt 1 aus Teil 2) weglasse oder auskommentiere geht erstmal die Galerie wie immer.

Ich habe aber nirgendwo einen Knopf für die Kommentar-Info, keine Änderungen in Menüs oder sonstwo.
Einzig bei den Kommentaren gibts nun ein "fehlendes" Bild mit einem Link zur details.html.

Was habe ich den falsch gemacht? Hab alles eingefügt - in Lang deutsch und english.
Alle Zeilen editiert. Muß ich noch was aktivieren? Wie komme ich in den Genuss dieses Mods?

Kann mir jemand helfen? Was braucht Ihr dafür?

Die URL lautet: www.dhk-galerie.de
Freundliche Grüße


Daniel, der Schtorsch

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #57 on: September 13, 2007, 07:23:21 PM »
Is possible post problem english ? I no get german ...

Install last patch for fix DOUBLE_ARROW problem ?
I post update message here ...
http://www.4homepages.de/forum/index.php?topic=18522.msg100067#msg100067

and which file is say for error message ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Schtorsch

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #58 on: September 13, 2007, 07:57:44 PM »
I try to translate in english...  :?

I like this mod very much - but it don`t work for me and my gallery (4images 1.7.4).
All the fixes were typed in - I think...

The " unexpected T_DOUBLE_ARROW" is called for this line (details.php):

Code: [Select]
"comments_notify_go_back" => (ereg("comments_notify.php", $url)) ? preg_replace("/" . $site_template->start. "go_back" . $site_template->end . "/siU", $site_sess->url(ROOT_PATH . "comments_notify.php"), $lang['comments_notify_go_back']) : "",
If I outcommand this line, the gallery works fine...

Also the pictures for "notify me" or "Don`t notify me" aren´t visible. I put them in templates/mytemplate/images.
In Comments-Box are a empty Picture with a link to details.html - is this a part of the (failed) mod?
At ACP I can also see nothing about Comment Notification...

Whats going wrong? Have I forgotten something? Is there any "Start-Button" or something like that...?

Can you help me, please?! What do you need to help me and fix my problem...?  :cry:

Thats the URL: www.dhk-galerie.de
Freundliche Grüße


Daniel, der Schtorsch

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] - Comments notify foreach user in details by email
« Reply #59 on: September 13, 2007, 08:11:45 PM »
Quote
The " unexpected T_DOUBLE_ARROW" is called for this line (details.php):

No get ... no can reproduce problem on test site ... all is work for this ... is possible say PHP version ?

Quote
Also the pictures for "notify me" or "Don`t notify me" aren´t visible. I put them in templates/mytemplate/images.
In Comments-Box are a empty Picture with a link to details.html - is this a part of the (failed) mod?

Correct. 1st post for (step 1). In templates/your_template/images, image filename is: notify_check.gif and notify_uncheck.gif . ;)

Quote
At ACP I can also see nothing about Comment Notification...

This is right. No need for option in ACP for comment notify ... reason for so ? If good reason, I add ...

Quote
Can you help me, please?! What do you need to help me and fix my problem...?

Re-do step 1. Now is fix so post for say is fix (core and upgrade for step 1 - comments_notify.php need re-do too). ;)

By way, no use post URL of your gallery if no user access for notify button. No can see error with GUEST level. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?