From dd9f475ff61e5808f4429cf5de0f5fda79224991 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Wed, 7 Oct 2015 06:22:15 +0200 Subject: [PATCH 1/2] personalise emails send from the server --- include/enotify.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/enotify.php b/include/enotify.php index 0ac9f48ff..e02c61383 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -20,7 +20,11 @@ function notification($params) { $siteurl = $a->get_baseurl(true); $thanks = t('Thank You,'); $sitename = $a->config['sitename']; - $site_admin = sprintf( t('%s Administrator'), $sitename); + if (!x($a->config['admin_name'])) { + $site_admin = sprintf( t('%s Administrator'), $sitename); + } else { + $site_admin = sprintf( t('%1$s, %2$s Administrator'), $a->config['admin_name'], $sitename); + } $nickname = ""; $sender_name = $sitename; From d80888842926eba272ae0e86d7666daeef201dc3 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Wed, 7 Oct 2015 09:38:47 +0200 Subject: [PATCH 2/2] added some lines to the htconfig config variables --- doc/htconfig.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/htconfig.md b/doc/htconfig.md index 5d98f55a7..d46abb3a0 100644 --- a/doc/htconfig.md +++ b/doc/htconfig.md @@ -77,3 +77,22 @@ line to your .htconfig.php: ## theme ## * hide_eventlist (Boolean) - Don't show the birthdays and events on the profile and network page + +# Administrator Options # + +Enabling the admin panel for an account, and thus making the account holder +admin of the node, is done by setting the variable + + $a->config['admin_email'] = "someone@example.com"; + +where you have to match the email address used for the account with the one you +enter to the .htconfig file. If more then one account should be able to access +the admin panel, seperate the email addresses with a comma. + + $a->config['admin_email'] = "someone@example.com,someonelese@example.com"; + +If you want to have a more personalized closing line for the notification +emails you can set a variable for the admin_name. + + $a->config['admin_name'] = "Marvin"; +