From fa3793216fb428d44f213aad4f4ab4642b03e392 Mon Sep 17 00:00:00 2001 From: Simon DELAGE Date: Sat, 30 Aug 2014 17:03:56 +0200 Subject: [PATCH] Fix No change, only fixed settings.php files to fix options, added plugin.info.txt, cleaned up some files --- action.php | 14 +++++++------- conf/default.php | 16 ++++++++++------ conf/metadata.php | 6 +++++- lang/en/settings.php | 24 ++++++++++++------------ lang/ko/settings.php | 25 +++++++++++++++++-------- lang/ru/settings.php | 20 +++++++++++--------- plugin.info.txt | 7 +++++++ 7 files changed, 69 insertions(+), 43 deletions(-) create mode 100644 plugin.info.txt diff --git a/action.php b/action.php index 6a0c042..92706f0 100644 --- a/action.php +++ b/action.php @@ -1,6 +1,7 @@ on 2014-08-30 if (!defined('DOKU_INC')) die(); if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/'); @@ -146,11 +147,11 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin return array ( 'name' => 'User Home Page', - 'email' => 'guanfenglin@gmail.com', - 'date' => '04/12/2008', - 'author' => 'James GuanFeng Lin, Mikhail I. Izmestev, Daniel Stonier', + 'email' => 'simon.geekitude@gmail.com', + 'date' => '2009-05-28', + 'author' => 'Simon Delage (previously James GuanFeng Lin, Mikhail I. Izmestev & Daniel Stonier)', 'desc' => 'auto redirects users to their homepage', - 'url' => '' + 'url' => 'https://www.dokuwiki.org/plugin:userhomepage' ); } @@ -160,4 +161,3 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin $controller->register_hook('HTML_PAGE_FROMTEMPLATE', 'BEFORE', $this, 'page_template',array()); } } -?> diff --git a/conf/default.php b/conf/default.php index 8eb0085..2acf705 100644 --- a/conf/default.php +++ b/conf/default.php @@ -1,10 +1,14 @@ on 2014-08-30 + */ + +$conf['use_name_string'] = 0; // use name string instead of login string for the user's ns +$conf['use_start_page'] = 1; // use state page instead of namespace string for home page +$conf['set_permissions'] = 1; // configure acl's $conf['set_permissions_others'] = '0'; -$conf['use_name_string'] = false; // use name string instead of login string for the user's ns -$conf['use_start_page'] = true; // use state page instead of namespace string for home page $conf['templatepath'] = 'lib/plugins/userhomepage/_template.txt'; // the location of the template file $conf['users_namespace'] = 'people'; // namespace storing the user namespaces -$conf['group_by_name'] = true; // use the first character of name to group people -$conf['edit_before_create'] = true; // allow users to edit their home pages before create -?> +$conf['group_by_name'] = 1; // use the first character of name to group people +$conf['edit_before_create'] = 1; // allow users to edit their home pages before create diff --git a/conf/metadata.php b/conf/metadata.php index 4a28ba3..42f1a4b 100644 --- a/conf/metadata.php +++ b/conf/metadata.php @@ -1,4 +1,9 @@ on 2014-08-30 + */ + $meta['use_name_string'] = array('onoff'); // use name string instead of login string for the user's namespace $meta['use_start_page'] = array('onoff'); // use start page instead of namespace string for home page $meta['set_permissions'] = array('onoff'); // configure permissions @@ -7,4 +12,3 @@ $meta['templatepath'] = array('string','_pattern' => '/^(|[a-zA-Z\-]+)$/'); / $meta['users_namespace'] = array('string','_pattern' => '/^(|[a-zA-Z\-:]+)$/'); // the namespace containing user directories $meta['group_by_name'] = array('onoff'); // group people by the first character of name $meta['edit_before_create'] = array('onoff'); // allow users to edit their home page before create. -?> diff --git a/lang/en/settings.php b/lang/en/settings.php index d763ad2..bc97771 100644 --- a/lang/en/settings.php +++ b/lang/en/settings.php @@ -1,21 +1,21 @@ + * English language file for config of Userhomepage plugin + * @author: Daniel Stonier + * FIXED by Simon Delage on 2014-08-30 */ -$lang['set_permissions'] = "Configure acl's to permit user full access to their home namespace."; -$lang['use_name_string'] = "Use names strings for the user's namespace (alt. login strings)."; -$lang['use_start_page'] = "Use the wiki's start page string instead of the user's namespace string for the home page."; -$lang['templatepath'] = "Doku relative path to the template file."; -$lang['users_namespace'] = "Namespace under which user namespaces are created."; -$lang['set_permissions_others'] = "If set permission enabled, what permission for other people?"; + +$lang['use_name_string'] = 'Use names strings for the user\'s namespace (alt. login strings).'; +$lang['use_start_page'] = 'Use the wiki\'s start page string instead of the user\'s namespace string for the home page.'; +$lang['set_permissions'] = 'Configure acl\'s to permit user full access to their home namespace.'; +$lang['set_permissions_others'] = 'If set permission enabled, what permission for other people?'; $lang['set_permissions_others_o_0'] = 'None'; $lang['set_permissions_others_o_1'] = 'Read'; $lang['set_permissions_others_o_2'] = 'Edit'; $lang['set_permissions_others_o_4'] = 'Create'; $lang['set_permissions_others_o_8'] = 'Upload'; $lang['set_permissions_others_o_16'] = 'Delete'; -$lang['group_by_name'] = "Group home pages by the first character of user name?"; -$lang['edit_before_create'] = "Allow users to edit their home pages before create"; -?> +$lang['templatepath'] = 'Doku relative path to the template file.'; +$lang['users_namespace'] = 'Namespace under which user namespaces are created.'; +$lang['group_by_name'] = 'Group home pages by the first character of user name?'; +$lang['edit_before_create'] = 'Allow users to edit their home pages before create'; diff --git a/lang/ko/settings.php b/lang/ko/settings.php index 9869c36..3f41577 100644 --- a/lang/ko/settings.php +++ b/lang/ko/settings.php @@ -1,12 +1,21 @@ + * @author: 이재영 + * FIXED by Simon Delage on 2014-08-30 */ -$lang['set_permissions'] = "홈 네임스페이스에 대한 모든 권한을 갖도론 acl을 설정하세요."; -$lang['use_name_string'] = "Use names strings for the user's namespace (alt. login strings)."; -$lang['use_start_page'] = "Use the wiki's start page string instead of the user's namespace string for the home page."; -$lang['templatepath'] = "템플릿화일들이 존재하는 Doku 의 경로를 알려주세요."; -$lang['users_namespace'] = "사용자 네임스페이스가 있는 네임스페이스."; -?> + +$lang['use_name_string'] = 'Use names strings for the user\'s namespace (alt. login strings).'; +$lang['use_start_page'] = 'Use the wiki\'s start page string instead of the user\'s namespace string for the home page.'; +$lang['set_permissions'] = '홈 네임스페이스에 대한 모든 권한을 갖도론 acl을 설정하세요.'; +$lang['set_permissions_others'] = 'If set permission enabled, what permission for other people?'; +$lang['set_permissions_others_o_0'] = 'None'; +$lang['set_permissions_others_o_1'] = 'Read'; +$lang['set_permissions_others_o_2'] = 'Edit'; +$lang['set_permissions_others_o_4'] = 'Create'; +$lang['set_permissions_others_o_8'] = 'Upload'; +$lang['set_permissions_others_o_16'] = 'Delete'; +$lang['templatepath'] = '템플릿화일들이 존재하는 Doku 의 경로를 알려주세요.'; +$lang['users_namespace'] = '사용자 네임스페이스가 있는 네임스페이스.'; +$lang['group_by_name'] = 'Group home pages by the first character of user name?'; +$lang['edit_before_create'] = 'Allow users to edit their home pages before create'; diff --git a/lang/ru/settings.php b/lang/ru/settings.php index 291f37f..d66652c 100644 --- a/lang/ru/settings.php +++ b/lang/ru/settings.php @@ -1,20 +1,22 @@ + * FIXED by Simon Delage on 2014-08-30 */ -$lang['set_permissions'] = "Устанавливать пользователю полные права доступа к домашней странице."; -$lang['use_name_string'] = "Использовать полное имя для неймспейса пользователя (иначе будет использоваться логин)."; -$lang['use_start_page'] = "Использовать имя стартовой страницы вместо имени пользователя для домашней страницы."; -$lang['templatepath'] = "Относительный путь до файла шаблона."; -$lang['users_namespace'] = "Неймспейс где будут создаваться неймспейсы пользователей."; -$lang['set_permissions_others'] = "Какие права доступа устанавливать для остальных пользователей?"; + +$lang['use_name_string'] = 'Использовать полное имя для неймспейса пользователя (иначе будет использоваться логин).'; +$lang['use_start_page'] = 'Использовать имя стартовой страницы вместо имени пользователя для домашней страницы.'; +$lang['set_permissions'] = 'Устанавливать пользователю полные права доступа к домашней странице.'; +$lang['set_permissions_others'] = 'Какие права доступа устанавливать для остальных пользователей?'; $lang['set_permissions_others_o_0'] = 'Замечание'; $lang['set_permissions_others_o_1'] = 'Чтение'; $lang['set_permissions_others_o_2'] = 'Правка'; $lang['set_permissions_others_o_4'] = 'Создание'; $lang['set_permissions_others_o_8'] = 'Загрузка файлов'; $lang['set_permissions_others_o_16'] = 'Удаление'; -$lang['group_by_name'] = "Группировать неймспейсы пользователей по первой букве имени?"; -$lang['edit_before_create'] = "Редактировать домашнюю страницу, но не создавать её."; +$lang['templatepath'] = 'Относительный путь до файла шаблона.'; +$lang['users_namespace'] = 'Неймспейс где будут создаваться неймспейсы пользователей.'; +$lang['group_by_name'] = 'Группировать неймспейсы пользователей по первой букве имени?'; +$lang['edit_before_create'] = 'Редактировать домашнюю страницу, но не создавать её.'; + diff --git a/plugin.info.txt b/plugin.info.txt new file mode 100644 index 0000000..1d8d9cb --- /dev/null +++ b/plugin.info.txt @@ -0,0 +1,7 @@ +base userhomepage +author Simon Delage +email guanfenglin@gmail.com +date 2009-05-28 +name User Home Page +desc Auto redirects users to their homepage. +url https://www.dokuwiki.org/plugin:userhomepage