Firefox PHP

Author as Sender 1.1 (5.1 and 5.2 ready)

All files from this thread

File Name File Size   Posted by Date  
author_as_sender-1.1.1.zip 4.6 KB open | download Oliver Riesen-Mallmann 06/13/2007 Read message
Author as Sender 1.1 (5.1 and 5.2 ready)
September 06, 2006 03:51PM
Author as Sender 1.1 (5.1 and 5.2 ready)

ses the authors name (or optional real name) and email address as sender in the FROM-clause for outgoing emails (user and moderator notifications and private mail).

For user notifications and private mail the authors email address is only used if there exists an email address and if the author allow to show the email address to other users.

Moderator notifications contains the authors email address even if the author
doesn't allow to show the email address to other users.

Since the display name for an email address should contain only ASCII-characters any special character will be replaced by a question mark. See RFC 2822 (http://www.rfc-editor.org/rfc/rfc2822.txt). German umlauts are replaced by there corresponding ASCII-Characters.

Tested on version 5.1.17 and CVS (till revision 1450)

License:

Free to use, modify, or redistribute this code so long as I am given credit for the original development somewhere. This code comes with absolutely no warranty.

Installation:

1. Unpack the archive.

2. Move the directory "author_as_sender" to the directory "mods" within your Phorum installation. Don't change the directory name!

3. If you want to use this module with version 5.1 you have to replace include/email_functions.php with a newer version from CVS.

4. Login as administrator in Phorum's administrative interface and go to the "Modules" section.

5. Enable the module "Author as Sender Module".

6. Go to the module settings, change and save the options.

Module settings:

Settings for user notifications and private mail

1. Use real-name instead of username

If this option is marked and if the users real name exists the module will use the real name. Otherwise the user name is used.

The default value is "checked".

2. Use authors email-address instead of System Emails From Address

If this option is marked and if the users email address is public the module will use the users email address. In all other cases the "System Emails From Address" from the "Global Settings" is used.

The default value is "checked".

Settings for moderator notifications

1. Use real-name instead of username

If this option is marked and if the users real name exists the module will use the real name. Otherwise the user name is used.

The default value is "checked".

2. Use authors email-address instead of System Emails From Address

If this option is marked the module will use the users email address. In all other cases the "System Emails From Address" from the "Global Settings" is used.

The default value is "checked".

Language support:

This module doesn't contain any language text.

Sanity Checks:

If you have problems with this module login as administrator in Phorum's administrative interface and go to the "System Sanity Checks" section. Check for warnings or errors for the Author as Sender Module.

Changelog:

2006/09/06 version 1.0.0 Oliver Riesen (oliver@riesen.org)

2006/10/25 version 1.1.0 Oliver Riesen (oliver@riesen.org)
- Module function now separately configurable for users and moderators.

2007/06/13 version 1.1.1 Oliver Riesen (oliver@riesen.org)
- Bugfix undefined index reported by David Scott.


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.




Edited 2 time(s). Last edit at 06/13/2007 02:46PM by Oliver Riesen.
Attachments:
open | download - author_as_sender-1.1.1.zip (4.6 KB)
Re: Author as Sender 1.0 (5.1 and 5.2 ready)
October 24, 2006 11:45PM
Hello,

I just install this module. I think the sender's email should always be made visible when the email is sent to the moderator.

Is this possible?

Thanks,

Yves
Re: Author as Sender 1.1 (5.1 and 5.2 ready)
October 25, 2006 07:17AM
Author as Sender (5.1 and 5.2 ready), new version 1.1.0

Changelog
2006/10/25 version 1.1.0 Oliver Riesen (oliver@riesen.org)
- Module function now separately configurable for users and moderators.


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.




Edited 1 time(s). Last edit at 10/25/2006 03:02PM by Oliver Riesen.
Re: Author as Sender 1.0 (5.1 and 5.2 ready)
October 25, 2006 07:19AM
Hi Yves,

Quote
Yes
I think the sender's email should always be made visible when the email is sent to the moderator.

Please try new version 1.1.0.

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Author as Sender 1.0 (5.1 and 5.2 ready)
October 25, 2006 11:29AM
Thak it works !

Yves
Re: Author as Sender 1.1 (5.1 and 5.2 ready)
June 12, 2007 05:26PM
Tue Jun 12 17:04:59 2007] [error] PHP Notice: Undefined index: author in /mods/author_as_sender/author_as_sender.php on line 13

Line 11 - 13

11. $data = $array[1];
12.
13. $author = $data['author'];

Any thoughts?

My new users are not getting registration verifications.
Re: Author as Sender 1.1 (5.1 and 5.2 ready)
June 13, 2007 03:25AM
Hi Scott,

Quote
scottd@ucann2.org
[error] PHP Notice: Undefined index: author in /mods/author_as_sender/author_as_sender.php on line 13

Did you change something? My original version looks like this:

01 <?php
02 
03 if (!defined('PHORUM')) return;
04
05 function mod_author_as_sender_email_user_start($array)
06 {
07 $PHORUM = $GLOBALS['PHORUM'];
08
09 $data = $array[1];
10
11 $author = $data['author'];
12 $email_address = $PHORUM['system_email_from_address'];
13

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Author as Sender 1.1 (5.1 and 5.2 ready)
June 13, 2007 10:01AM
No ididn't change anything, my looks like this. But here, in my post I did put in as line 12 is a space, and this was not coorect.

[snipe]
5 function mod_author_as_sender_email_user_start($array)
6 {
7 $PHORUM = $GLOBALS['PHORUM'];
8
9 $data = $array[1];
10
11 $author = $data['author'];
12 $email_address = $PHORUM['system_email_from_address'];
13

However the newusers do get their emails. I noticed that this error only happens, when a new user applies.

David
Re: Author as Sender 1.1 (5.1 and 5.2 ready)
June 13, 2007 02:48PM
Author as Sender (5.1 and 5.2 ready), new version 1.1.1

Changelog:
2007/06/13 version 1.1.1 Oliver Riesen (oliver@riesen.org)
- Bugfix undefined index reported by David Scott.


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Sorry, only registered users may post in this forum.

Click here to login