Firefox PHP

Email All Posts module

Posted by Chris Eaton 
Re: Email All Posts module
February 03, 2007 10:59AM
No, this hack allows you to send every message posted in every forum to one group. My module allows you to send every message posted in a specific forum to any group that has rights to that forum.
Re: Email All Posts module
February 04, 2007 07:53AM
Quote
Azumandias
No, this hack allows you to send every message posted in every forum to one group. My module allows you to send every message posted in a specific forum to any group that has rights to that forum.

It's definitely not the same, but Azumandias module seems to include my module hack. Just give a group rights in all forums and it does the same.
If it had been posted a little bit earlier, I wouldn't have to do mine ;-)
So it was coincidence we thought about the same problem. I like Azumandias solution better than mine.

The only little disadvantage of Azumandias module is AFAIK that, that you can't use the module and have other groups with specific forum rights not getting the posts as e-mails. But that may be a very special case.
3 issues/feature changes please
March 11, 2007 09:12PM
I'm using brianlmoon's emailallposts_blm version. There are 3 issues I'd like to fix.

1. When someone posts to phorum via email (using the Phorummail script/module), this script does not mail out the resulting post.
2. I'd like to allow people to subscribe by joining a group if they actually want a mail list instead of using phorum. Should I try the group version of this module? Will it work with Phorummail?
3. I want the email to include the contents of the post, not just a link to it. Any suggestions?

I'll post any resulting code.

Brandon Stout
[mscis.org]
Re: 3 issues/feature changes please
March 12, 2007 11:44AM
Brandon,

1 - my group autoemail uses the post_post hook. As long as brianlmoon's mod triggers that mod, the group autoemail mod will email out the post. I am not sure if it does and don't have the time just now to check it.

2 - my group autoemail mod will do exactly what you want here. Create a group (or a number of groups) called mailinglist or a_forum_mailinglist and give that group access to any forum. Then allow users to join those groups and they will receive emails when posts are made to the forums granted to the group they join.

3 - to see an example of the email sent by my module, check the readme. In short, yes it sends out the post contents, not just the link.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: 3 issues/feature changes please
March 25, 2007 10:48PM
Quote
Azumandias
my group autoemail uses the post_post hook. . . the group autoemail mod will email out the post...

I'm now using your mod. When I email in, it posts to the phorum, but it's not getting emailed back out.

Quote
Azumandias
my group autoemail mod will do exactly what you want here. Create a group (or a number of groups) called mailinglist or a_forum_mailinglist and give that group access to any forum. Then allow users to join those groups and they will receive emails when posts are made to the forums granted to the group they join.

I have my admin user and a test user in my group called mailinglist. When I post via phorum, the test user receives the email, but not the admin user.

Quote
Azumandias
to see an example of the email sent by my module, check the readme. In short, yes it sends out the post contents, not just the link.

I don't see a readme file in your module. Where can I access it? Currently, the email does not include the post's contents. A full email from a test post:

Quote

Subject:
[MSCIS] brasto: Re: fetchin' test
From:
"MSCIS.org Phorum" <list@mscis.org>
Date:
Sun, 25 Mar 2007 20:06:27 -0600 (MDT)
To:
bms@flfn.org

Author: brasto
Username: brasto (fw.oremut02.us.wh.verio.net)
Subject: Re: fetchin' test
Forum: General Management
Link: [mscis.org]
Approved: Yes

Any ideas on how I can resolve all three issues?

Brandon Stout
[mscis.org]
Re: Email All Posts module
March 26, 2007 11:57AM
Brasto,

Firstly, it doesn't look like you are using my Group Auto-Email Module. My module has a readme.txt included in the zip file and definitely includes the post's content in emails it sends out. You can find a link to my module in my signature below.

Secondly, after looking at the code in Brian's phorummail module, I see that it does not call the post_post hook and thus will not run my mod on incoming emails. In order to have that work, please add this line of code (in green) to the phorummail.php file, near the end.

if(!$error){

    phorum_db_post_message($new_message);
    phorum_update_thread_info($new_message["thread"]); 
    phorum_hook("post_post", $new_message);

    if ($new_message["status"] > 0) {
        phorum_db_update_forum_stats(false, 1, $new_message["datestamp"]); 
        // mailing subscribed users
        phorum_email_notice($new_message);
    } 
    
    if ($PHORUM["email_moderators"] == PHORUM_EMAIL_MODERATOR_ON) {
        // mailing moderators
        phorum_email_moderators($new_message);
    }
Once you add the line and install my Group Auto-Email module, all posts, whether via email or the forum, should be emailed out to everyone in your mailinglist group.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Email All Posts module
March 26, 2007 01:18PM
Quote
Azumandias
Firstly, it doesn't look like you are using my Group Auto-Email Module.
My apologies Azumandias. I confused your module with emailallposts2group, which is what I switched to. I'll try your module... for real this time...

Brandon Stout
[mscis.org]
Re: Email All Posts module
May 02, 2007 03:28PM
I have a forum which is private to a certain group.

I would like to allow members of this group to "subscribe" (or not) in order to get every post by email.

will this module allow each member to choose whether or not they receive the mails?

Is this also tested as working with the phorummail module which would allow them to also reply to the post by email?
Re: Email All Posts module
November 07, 2007 03:29PM
Malfunctions warning on supplement

if ($PHORUM["max_attachments"]>0 && isset($_POST["attach"]))
{
$body .= "\nAttachments included!";
}

:-(
Re: Email All Posts module
November 08, 2007 04:16AM
The program unit "Email All Posts" should advise of an attachment in the contribution. I that is the part of the data code.

if ($PHORUM["max_attachments"]>0 && isset($_POST["attach"]))
{
$body .= "\nAttachments included!";
}

However this funktion doesn't work. Could you please give me any suggestion? I have tried all versions of this module I found but there comes no attention note

Thank you
Sorry, only registered users may post in this forum.

Click here to login