Pastebin

newspost2mail_doc

von Dr.Death
Beschreibung:
aktualisiert
Snippet erstellt:
23.12.2018 20:47
Snippet wird automatisch gelöscht:
21.06.2019 21:47

Dein Code:
  1. <?php
  2.  
  3.   /////////////////////////////////////////////////////////////////////////////////////
  4.   // CONFIGURATION FILE FOR NEWPOST2MAIL
  5.   //
  6.   // newpost2mail will work without any changes to this file.
  7.   // However you can alter some settings here to match your needs.
  8.   //
  9.   /////////////////////////////////////////////////////////////////////////////////////
  10.  
  11.  
  12.  
  13.   // CONFIGURING RECIPIENTS FOR ALL FORUMS:
  14.   //
  15.   // Mails are only sent to the board contact address configured in your phpBB by default.
  16.   //
  17.   // To switch this off or it doesn't work for your setup use
  18.   //
  19.   // $n2m_MAILTO_BOARDCONTACT = 0;
  20.   //
  21.   // and be sure to set additional addresses (see below) or no mails will be sent at all.
  22.  
  23.   $n2m_MAILTO_BOARDCONTACT = 0;
  24.  
  25.  
  26.   // You can configure any additional address(es) by changing the following line:
  27.   //
  28.   // $n2m_MAILTO[] = "";
  29.   // to
  30.   // $n2m_MAILTO[] = "your@address.here";
  31.   //
  32.   // If you want to send to multiple addresses, simply repeat this line for each
  33.   // recipient:
  34.   //
  35.   // $n2m_MAILTO[] = "your@1st_address.here";
  36.   // $n2m_MAILTO[] = "your@2nd_address.here";
  37.   // $n2m_MAILTO[] = "your@3rd_address.here";
  38.  
  39.   $n2m_MAILTO[] = "fugu@death-squad.de";
  40.  
  41.  
  42.   // You can send mails to groups defined in your phpBB3 installation by changing the
  43.   // follwing line:
  44.   //
  45.   // $n2m_MAILTO_GROUP[] = "";
  46.   // to
  47.   // $n2m_MAILTO_GROUP[] = "your_group_here";
  48.   //
  49.   // Now newpost2mail will send an email to every user which is member of this group.
  50.   //
  51.   // It may be a good idea to create a group called "n2m_recipients" or similar in your
  52.   // phpBB3 installation, so you can manage the recipients by just adding the users who
  53.   // should receive emails to this group.
  54.   //
  55.   // If you want to send to multiple groups, simply repeat this line for each group:
  56.   //
  57.   // $n2m_MAILTO_GROUP[] = "your_1st_group_here";
  58.   // $n2m_MAILTO_GROUP[] = "your_2nd_group_here";
  59.   // $n2m_MAILTO_GROUP[] = "your_3rd_group_here";
  60.  
  61.   $n2m_MAILTO_GROUP[] = "";
  62.  
  63.  
  64.   // CONFIGURING RECIPIENTS FOR INDIVIDUAL FORUMS:
  65.   //
  66.   // If you want to send mails to indivdual recipients depending on the forum, this
  67.   // can be configured here. This may be useful if you do not want to monitor all
  68.   // forums or if you have different moderators for your forums and all or some of them
  69.   // should receive only mails for their forum(s).
  70.   //
  71.   // You need the numerical forum ID for that, which can be found in the URL of the
  72.   // forum in question. Just open a forum and look at its URL. You'll get something
  73.   // like http://your-forum.com/viewtopic.php?f=18&t=789
  74.   // In the example above we have "f=18" which means the forum ID is 18
  75.   //
  76.   // Now we add $n2m_MONITOR_FORUM[ID][] = "any@address.here" for EACH forum and EACH
  77.   // recipent. You cannot have multiple IDs or multiple recipients in one line!
  78.   //
  79.   // If you want to have mails for forum ID 3 to peter@yourdomain.com and
  80.   // tom@yourdomain.com and mails for forum ID 7 to mary@yourdomain.com and to
  81.   // tom@yourdomain.com, you'll have to change
  82.   //
  83.   // $n2m_MONITOR_FORUM[][] = "";
  84.   //
  85.   // to the following lines:
  86.   //
  87.   // $n2m_MONITOR_FORUM[3][] = "peter@yourdomain.com";
  88.   // $n2m_MONITOR_FORUM[3][] = "tom@yourdomain.com";
  89.   // $n2m_MONITOR_FORUM[7][] = "mary@yourdomain.com";
  90.   // $n2m_MONITOR_FORUM[7][] = "tom@yourdomain.com";
  91.  
  92.  
  93. //  $n2m_MONITOR_FORUM[2][] = "fugu@nrw5.de";
  94. //  $n2m_MONITOR_FORUM[2][] = "crash@nrw5.de";
  95.  
  96.  
  97.   // CONFIGURING ACTIONS ON WHICH A MAIL WILL BE SENT
  98.   //
  99.   // phpBB3 knows of four different actions regarding new posts:
  100.   //
  101.   // post : a new thread has been started
  102.   // reply: a new post in a thread has been made
  103.   // quote: same as reply but with quotes
  104.   // edit : a post has been edited
  105.   //
  106.   // By default mails will be sent for all actions. To switch off one of them, set it to 0.
  107.   // If you set all of them to 0 no mails will be sent!
  108.  
  109.   $n2m_MAIL_ON['post']  = 1;
  110.   $n2m_MAIL_ON['reply'] = 1;
  111.   $n2m_MAIL_ON['quote'] = 1;
  112.   $n2m_MAIL_ON['edit']  = 1;
  113.  
  114.  
  115.  
  116.   // CONFIGURING SUBJECT LINE OF MAIL:
  117.   //
  118.   // You can configure the mail subject to whatever you like using the following
  119.   // variables:
  120.   //
  121.   //  $post_USERNAME     = name of the posting user
  122.   //  $post_IP           = IP of the posting user
  123.   //  $post_HOST         = hostname for the above IP
  124.   //  $post_SITENAME     = name of your site
  125.   //  $post_TOPICTITLE   = title of the topic the post was made to
  126.   //  $post_FORUMNAME    = name of the forum the post was made to
  127.   //  $post_FORUMPARENTS = parent forums list of $post_FORUMNAME separeted by " / "
  128.   //  $post_MODE         = type of post (post, reply, quote, edit ...)
  129.   //  $post_SUBJECT      = subject of the post
  130.   //  $post_EDITOR       = name of editing user (only if post was edited by 3rd party)
  131.   //
  132.   // The default setting would give you something like
  133.   // [reply] Re: who can help?
  134.  
  135.   $n2m_SUBJECT = "[$post_MODE] $post_SUBJECT";
  136.  
  137.  
  138.  
  139.   // CONFIGURE IF EMAIL ADDRESS OF USER WILL BE DISPLAYED:
  140.   //
  141.   // $n2m_ALWAYS_SHOW_EMAIL = 0;
  142.   //
  143.   // Only if the user has allowed to be contacted by email, the address including a
  144.   // mailto: hyperlink is displayed behind the username
  145.   //
  146.   //
  147.   // $n2m_ALWAYS_SHOW_EMAIL = 1;
  148.   //
  149.   // Same as above but always display the email address
  150.  
  151.   $n2m_ALWAYS_SHOW_EMAIL = 0;
  152.  
  153.  
  154.  
  155.   // CONFIGURE IF SIGNATURE OF USER IS DISPLAYED:
  156.   //
  157.   // If you do not want to see the signature in your mail use
  158.   //
  159.   // $n2m_SHOW_SIG = 0;
  160.  
  161.   $n2m_SHOW_SIG = 0;
  162.  
  163.  
  164.  
  165.   // CONFIGURING BASIC LAYOUT OF MAIL:
  166.   //
  167.   // You can change the width of the post content table here:
  168.  
  169.   $n2m_WIDTH = 700;
  170.  
  171.   // More layout configuration can be made by editing newpost2mail.css
  172.  
  173.  
  174.  
  175.  
  176.   // TRANSLATIONS
  177.   //
  178.   // By default n2m reads your board configuration for its default language and uses that.
  179.   // If you want to override your boards default language, you can set your own language:
  180.   //
  181.   // $n2m_LANG = "[your language]";
  182.   //
  183.   // Examples for setting to english or german:
  184.   //
  185.   // $n2m_LANG = "en";
  186.   // $n2m_LANG = "de";
  187.   //
  188.   // If there is no adequate translation present in this file, n2m will use english.
  189.  
  190.   $n2m_LANG = "de";
  191.  
  192.  
  193.   // The phrases for common langauges are defined below.
  194.   // If you want to create your own translations, just copy the section with the english
  195.   // phrases (this means all lines like $n2m_Text[en][...] = "...";) and replace [en] by
  196.   // your language code and "..." with your translated phrases.
  197.   // If you don't translate all phrases, english is used for all not translated phrases.
  198.  
  199.  
  200.   // english (en)    !!! DON'T DELETE - EVEN IF YOU DON'T USE ENGLISH !!!
  201.  
  202.   $n2m_TEXT['en']['mode']         = "Mode";
  203.   $n2m_TEXT['en']['forum']        = "Forum";
  204.   $n2m_TEXT['en']['thread']       = "Thread";
  205.   $n2m_TEXT['en']['subject']      = "Subject";
  206.   $n2m_TEXT['en']['user']         = "User";
  207.   $n2m_TEXT['en']['ip_hostname']  = "IP/Host";
  208.   $n2m_TEXT['en']['host_na']      = "(n/a)";
  209.   $n2m_TEXT['en']['actions']      = "Actions";
  210.   $n2m_TEXT['en']['reply']        = "reply";
  211.   $n2m_TEXT['en']['quote']        = "quote";
  212.   $n2m_TEXT['en']['edit']         = "edit";
  213.   $n2m_TEXT['en']['delete']       = "delete";
  214.   $n2m_TEXT['en']['info']         = "info";
  215.   $n2m_TEXT['en']['pm']           = "pm";
  216.   $n2m_TEXT['en']['email']        = "email";
  217.   $n2m_TEXT['en']['attachments']  = "Attachments";
  218.   $n2m_TEXT['en']['edited_by']    = "edited by";
  219.   $n2m_TEXT['en']['edit_reason']  = "reason";
  220.  
  221.  
  222.   // If you don't use languages other than english you can delete them from this file
  223.  
  224.  
  225.   // german (de)
  226.  
  227.   $n2m_TEXT['de']['mode']         = "Modus";
  228.   $n2m_TEXT['de']['forum']        = "Forum";
  229.   $n2m_TEXT['de']['thread']       = "Thema";
  230.   $n2m_TEXT['de']['subject']      = "Betreff";
  231.   $n2m_TEXT['de']['user']         = "Benutzer";
  232.   $n2m_TEXT['de']['ip_hostname']  = "IP/Host";
  233.   $n2m_TEXT['de']['host_na']      = "(n.v.)";
  234.   $n2m_TEXT['de']['actions']      = "Aktionen";
  235.   $n2m_TEXT['de']['reply']        = "antworten";
  236.   $n2m_TEXT['de']['quote']        = "zitieren";
  237.   $n2m_TEXT['de']['edit']         = "bearbeiten";
  238.   $n2m_TEXT['de']['delete']       = "löschen";
  239.   $n2m_TEXT['de']['info']         = "Informationen";
  240.   $n2m_TEXT['de']['pm']           = "PN";
  241.   $n2m_TEXT['de']['email']        = "E-Mail";
  242.   $n2m_TEXT['de']['attachments']  = "Dateianhänge";
  243.   $n2m_TEXT['de']['edited_by']    = "bearbeitet durch";
  244.   $n2m_TEXT['de']['edit_reason']  = "Grund";
  245.  
  246. ?>

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. Alternativ kannst du den gesamten Eintrag auch als Datei herunterladen.