[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.
henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany

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

Post by henmedia »

hktvb2001 wrote:I have found something wrong:

When someone post a new thread, I receive the email. -> Perfect!

In the email, it contains the Forum link, the Thread link, the Subject link. Well, the Forum link is working good, but when I click on the Thread link to go directly to the thread, it appears as a wrong thread ID.

The forum link is: viewforum.php?f=9
But the thread link is: viewtopic.php?f=9&t=0 => t=0 which is wrong!!

How can I fix that?
I'll look into it for beta 4.

EDIT: Yes, you're right. The problem is that at the time newpost2mail is called, the new thread id and topic id aren't already generated. Could be hard to fix, perhaps we have to live with that. As long as there are non functional links I'll disable them for the next beta.

EDIT: Fixed, see below

Stefan
Last edited by henmedia on Wed Jan 16, 2008 2:16 am, edited 3 times in total.
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

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

Post by henmedia »

New version beta 3 released:
  • Attachment support added:
    If images are attached (.jpg, .jpeg, .gif or .png), these are displayed in the email.
    For all other file types, there will be a hyperlink to the attachment.
  • No changes were made to newpost2mail.config since beta 2. So you can keep your old file from beta 2 if you have made any changes.
Download: http://henmedia.de

Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]
Geisthund
Registered User
Posts: 352
Joined: Fri Jul 01, 2005 1:23 pm

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

Post by Geisthund »

Hi

Any uninstall instruction for Beta 1 before I install Beta 3.
Cheers
Gareth
hktvb2001
Registered User
Posts: 78
Joined: Wed Apr 14, 2004 11:35 pm

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

Post by hktvb2001 »

Hope you can add the features that I ask before soon on Beta 4. That is all I need for this MOD. BTW, very great MOD. :lol:
henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany

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

Post by henmedia »

Geisthund wrote:Hi

Any uninstall instruction for Beta 1 before I install Beta 3.
Cheers
Gareth
No, just overwrite the old file(s).
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

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

Post by henmedia »

hktvb2001 wrote:I have found something wrong:

When someone post a new thread, I receive the email. -> Perfect!

In the email, it contains the Forum link, the Thread link, the Subject link. Well, the Forum link is working good, but when I click on the Thread link to go directly to the thread, it appears as a wrong thread ID.

The forum link is: viewforum.php?f=9
But the thread link is: viewtopic.php?f=9&t=0 => t=0 which is wrong!!

How can I fix that?
Ok, this can be fixed in just one minute:

The latest instruction was to insert the line

Code: Select all

include($phpbb_root_path . 'newpost2mail.php');
before the line

Code: Select all

$redirect_url = submit_post($mode, $post_data['post_subject'], $post_data['username'], $post_data['topic_type'], $poll, $data, $update_message);
In fact, you have to add this after this line. So simply edit /posting.php and switch the both lines. A new version of the skript isn't needed.
I've updated the installation instructions to fix this issue.
Last edited by henmedia on Wed Jan 16, 2008 2:15 am, edited 1 time in total.
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]
hktvb2001
Registered User
Posts: 78
Joined: Wed Apr 14, 2004 11:35 pm

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

Post by hktvb2001 »

WOW!! That is so great!!! Thank you very much! You don't know how I am happy with this MOD. Before, I have use the notify admin and moderator mod that I have found on this site, and it takes 20 minutes to install, and I have got many problem with my forum with it. Now with yours, only 1 min. of install, and everything works perfectly!! How great are you!!!

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

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

Post by henmedia »

Glad to see that you are THAT HAPPY with n2m :-)

Work on beta 4 is in progress. That will give you quick links to certain actions regarding the post (edit, delete, quote, pm ...)

Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]
Gizmokid2005
Registered User
Posts: 33
Joined: Mon Oct 08, 2007 11:42 pm
Location: 192.168.10.100

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

Post by Gizmokid2005 »

henmedia wrote:Glad to see that you are THAT HAPPY with n2m :-)

Work on beta 4 is in progress. That will give you quick links to certain actions regarding the post (edit, delete, quote, pm ...)

Stefan
Wow Stefan!! Keep up the great work!! I was going to try to do this myself, but you beat me to it. And you are doing GREAT!
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,

super mods whith good evolution and possibilities.

just a answer, in the mail can you add the mail (in text) of the user
for exemple> user : mrx ( [email protected] )

tks for you job
henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany

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

Post by henmedia »

marc.r wrote:just a answer, in the mail can you add the mail (in text) of the user
for exemple> user : mrx ( [email protected] )
Yes, you can expect it with beta 4

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

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

Post by henmedia »

New version beta 4 released:

Added the following links to certain actions:
- reply to post
- quote post
- edit post
- delete post
- info about post
- pm user
- email user (you must have a valid login session or the link doesn't work)

Added support for showing the signature in the email. Can be switched on or off using the config file

Added support for showing the users email address including a mailto: link. Can be configured to always show the email address or only if the user has allowed to contact him by email

Config file has been changed, new options $n2m_ALWAYS_SHOW_EMAIL and $n2m_SHOW_SIG

Config file has been renamed to newpost2mail.config.php for security reasons. Delete your old newpost2mail.config if you are upgrading to beta 4

Donwload: http://henmedia.de

Stefan
Get the latest version of newpost2mail for phpBB3 at http://henmedia.de | [donate USD] [donate EUR]
ofir1978
Registered User
Posts: 11
Joined: Wed Jan 16, 2008 9:03 am

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

Post by ofir1978 »

Great Mod but I have the following problem:

I have few forums and each of them is managed by someone else.
How this mod can be modified so each forum manager will get only notifications for posts that were made in his forum?
henmedia
Registered User
Posts: 140
Joined: Wed Dec 19, 2007 9:31 am
Location: Germany

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

Post by henmedia »

ofir1978 wrote:I have few forums and each of them is managed by someone else.
How this mod can be modified so each forum manager will get only notifications for posts that were made in his forum?
There are no plans for this at this time, sorry.

However you could send all of them every mail and they could use a client which is capable of filtering mails by the subject line. As you can put the forum name to the subject line, this could be easiely done.

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

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

Post by henmedia »

New version beta 5 released:
  • The forum name is now displayed with its forum parent(s).
    A new variable $post_FORUMPARENTS is available for the config file to reflect this, so you can put the parent(s) into your subject line if needed.
    Both is useful if you have organized your board with subforms and you have several forums with equal names.
  • Fixed a small display bug in signature handling if posting has no signature.
Download: http://henmedia.de

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

Return to “[3.0.x] Abandoned MODs”