Author Topic: [MOD] Komment Save Message / Kommentar Speichern Nachricht  (Read 9195 times)

0 Members and 1 Guest are viewing this topic.

bildergallery

  • Guest
[MOD] Komment Save Message / Kommentar Speichern Nachricht
« on: November 08, 2007, 10:42:44 PM »
Hallo zusammen

Wie ich dies einstellen, dass nach jedem kommentar eine meldung ausgegeben wird?
Beispiel:

1) Mitglied schreibt ein Kommentar
2) Mitglied drückt the speichern button
3) Msg wird ausgeben Danke für den Kommentar?
> Vergleichbar mit der Captcha Meldung

As I set that as one after each message is spent?
Example:

1) User writes a comment
2) User press the save button
3) Msg Thanks for the Comment!
> Compared with captcha message

meiner Meinung nach sollte dies in die nächste 4images version mitaufgenommen werden.

thanks for the help
« Last Edit: November 09, 2007, 12:56:54 AM by ivan »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Komment Save Message / Kommentar Speichern Nachricht
« Reply #1 on: November 08, 2007, 10:51:03 PM »
And why is no in core :?: :!:  8O

Very good - I like - ;)

// Step 1

In details.php file,

find:

Quote
update_comment_count($id, $user_info['user_id']);

add after:

Code: [Select]
if ($user_info['user_level'] == GUEST) {
   $msg = preg_replace("/" . $site_template->start . "user_name" . $site_template->end . "/siU", $lang['userlevel_guest'], $lang['comment_post_success']);
} elseif ($user_info['user_level'] >= USER) {
   $msg = preg_replace("/" . $site_template->start . "user_name" . $site_template->end . "/siU", format_text(trim($user_info['user_name']), 2),   $lang['comment_post_success']);
}

// Step 2

In lang/english/main.php file,

find:

Quote
$lang['comment_required']

add after:

Code: [Select]
$lang['comment_post_success'] = "<span class=\"smalltext\">Thank <b>{user_name}</b>. Your message is now add in database.</span>";

Finish.
« Last Edit: November 09, 2007, 01:05:43 AM 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: Komment Save Message / Kommentar Speichern Nachricht
« Reply #2 on: November 09, 2007, 12:21:29 AM »
This is right ... I fix step 1. ;)
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] Komment Save Message / Kommentar Speichern Nachricht
« Reply #3 on: November 09, 2007, 01:04:55 AM »
Quote
okay, nice and thanks
i have insert $lang['userlevel_guest']  :wink:

This is right. I fix post. ;)
Thank for posting.
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 ?