[ABD] newpost2mail: Send new posts as email to admin

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
Gizmokid2005
Registered User
Posts: 33
Joined: Mon Oct 08, 2007 11:42 pm
Location: 192.168.10.100
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by Gizmokid2005 »

I'm at a complete loss. I checked permissions and everything but I can't see anything out of the ordinary.

henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia »

If you mail me your ftp account data, I can take a look.

Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

daniel_p
Registered User
Posts: 1
Joined: Sat Feb 02, 2008 5:24 pm

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by daniel_p »

Stefan: great work! I'd like to contribute the portuguese (pt-PT not pt-BR) translation:

Code: Select all

  // portuguese (pt)
  $n2m_TEXT[pt][mode]         = "Modo";
  $n2m_TEXT[pt][forum]        = "Fórum";
  $n2m_TEXT[pt][thread]       = "Tópico";
  $n2m_TEXT[pt][subject]      = "Assunto";
  $n2m_TEXT[pt][user]         = "Utilizador";
  $n2m_TEXT[pt][ip_hostname]  = "IP/Endereço";
  $n2m_TEXT[pt][host_na]      = "(n/d)";
  $n2m_TEXT[pt][actions]      = "Acções";
  $n2m_TEXT[pt][reply]        = "responder";
  $n2m_TEXT[pt][quote]        = "citar";
  $n2m_TEXT[pt][edit]         = "editar";
  $n2m_TEXT[pt][delete]       = "apagar";
  $n2m_TEXT[pt][info]         = "info";
  $n2m_TEXT[pt][pm]           = "mp";
  $n2m_TEXT[pt][email]        = "email";
  $n2m_TEXT[pt][attachments]  = "Anexos";
  $n2m_TEXT[pt][edited_by]    = "editado por";
  $n2m_TEXT[pt][edit_reason]  = "razão";
Edited: forgot to change TEXT[en] to TEXT[pt]
Last edited by daniel_p on Sat Feb 02, 2008 6:35 pm, edited 1 time in total.

henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia »

Thanks, I'll add PT to the next beta.

Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

Kerrith
Registered User
Posts: 488
Joined: Mon Mar 28, 2005 10:16 am
Location: Pahoa, Hawaii
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by Kerrith »

Stefan, thank you so much for your support. Your mod is working perfectly now. It is so great. Excellent work.

With aloha and appreciation,

Kerry
newpost2mail v13

P.S. You were right. The server had somehow deleted that one specific email address and so of course I wasn't getting the newpost2mail notifications.

Kerrith
Registered User
Posts: 488
Joined: Mon Mar 28, 2005 10:16 am
Location: Pahoa, Hawaii
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by Kerrith »

Fussy fussy here. Is there a way to be have the same newpost2mail notify me when someone casts a vote on our polls? Or would that be another Mod?

Thanks,

Kerry

henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia »

Polls aren't supported at this time, maybe later.

However n2m could only mail you a new created poll within its notification. If someone casts a vote, this could never be catched by n2m. If this is your goal you should look if there is another MOD which does this.

Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

Kerrith
Registered User
Posts: 488
Joined: Mon Mar 28, 2005 10:16 am
Location: Pahoa, Hawaii
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by Kerrith »

Got it. Thanks Stefan.

I also get that If someone were to cast a vote, it could never be caught by n2m.

Once again, thanks so much. I cast my vote for your mod to be built into the next version of phpBB. :) Given that the phpBB Form remains ad-free there's really no reason why posts here should require someone to come back here just to read a reply. I suppose it might add to someone's bandwidth usage for all post content to be included in each post/reply.

Kerry

henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia »

New version beta 14 released:
  • Added support for sending mails only on selected actions (post, reply, quote and edit). This can be configured in newpost2mail.config.php.
  • Added international character support for the sender name (From field).
  • Added portuguese translation (pt).
  • Fixed an issue regarding some mail clients (like MS Outlook Express) which have problems if the lines of the mail body are too long (parts of the body aren't displayed in this case). To prevent this, lines are now split after each <br />.
Download: http://henmedia.de

Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

prhodes
Registered User
Posts: 5
Joined: Mon Feb 04, 2008 3:36 pm

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by prhodes »

Variables are not being set from newpost2mail.config.php.

I just spent a couple of hours trying to figure out why the newpost2email.config.php was not working.

Please update this file to use the syntax <?php around the PHP code so that the variables are set. The current tags (<?) cause the PHP parser to not process the include as it is meant to be processed. Once I changed it to use <?php, everything worked great.

Posting this here for others benefit.
From the manual for the include method:
http://us3.php.net/include/

When a file is included, parsing drops out of PHP mode and into HTML mode at the beginning of the target file, and resumes again at the end. For this reason, any code inside the target file which should be executed as PHP code must be enclosed within valid PHP start and end tags.

Gizmokid2005
Registered User
Posts: 33
Joined: Mon Oct 08, 2007 11:42 pm
Location: 192.168.10.100
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by Gizmokid2005 »

prhodes wrote:Variables are not being set from newpost2mail.config.php.

I just spent a couple of hours trying to figure out why the newpost2email.config.php was not working.

Please update this file to use the syntax <?php around the PHP code so that the variables are set. The current tags (<?) cause the PHP parser to not process the include as it is meant to be processed. Once I changed it to use <?php, everything worked great.

Posting this here for others benefit.
From the manual for the include method:
http://us3.php.net/include/

When a file is included, parsing drops out of PHP mode and into HTML mode at the beginning of the target file, and resumes again at the end. For this reason, any code inside the target file which should be executed as PHP code must be enclosed within valid PHP start and end tags.
YOU GOT IT!!!!!

I was having the same issue. Replacing

Code: Select all

<?
with

Code: Select all

<?php
works flawlessly!!!!

henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia »

Ooops :)

As this is depending on the current PHP setup, this actually worked for the most setups. However I'll change this for the next beta.

Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia »

New version beta 15 released:
  • Fixed an issue showing "edited by" in some cases even if the editor is the same as the poster. So now in this case "edited by" is not shown anymore.
  • Fixed an issue not parsing the configuration file in some PHP setups.
Download: http://henmedia.de
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

marc.r
Registered User
Posts: 35
Joined: Thu Dec 26, 2002 2:54 pm

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by marc.r »

Hi,
// You need the numerical forum ID for that, which can be found in the URL of the
// forum in question. Just open a forum and look at its URL. You'll get something
// like http://your-forum.com/viewtopic.php?f=18&t=789
// In the example above we have "f=18" which means the forum ID is 18
//
// Now we add $n2m_MONITOR_FORUM[ID][] = "any@address.here" for each forum and recipent.
//
// If you want to have mails for forum ID 3 to peter@yourdomain.com and
// tom@yourdomain.com and mails for forum ID 7 to mary@yourdomain.com, you'll have
// to add the following lines:
//
// $n2m_MONITOR_FORUM[3][] = "peter@yourdomain.com";
// $n2m_MONITOR_FORUM[3][] = "tom@yourdomain.com";
// $n2m_MONITOR_FORUM[7][] = "mary@yourdomain.co
for to have mails for multi forum for exemple 3 + 4 + 5 what the good paramaters ? --> $n2m_MONITOR_FORUM[3][4][5] [] = "peter@yourdomain.com"; ?


tks

henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany
Contact:

Re: [BETA] newpost2mail: Send new posts as email to admin

Post by henmedia »

That would be

Code: Select all

$n2m_MONITOR_FORUM[3][] = "peter@yourdomain.com";
$n2m_MONITOR_FORUM[4][] = "peter@yourdomain.com"; 
$n2m_MONITOR_FORUM[5][] = "peter@yourdomain.com";
Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]

Locked

Return to “[3.0.x] Abandoned MODs”