-- cgit v1.2.3 From f9325c79022b73185f07b157511f9c03892ac379 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Sat, 17 Jul 2010 04:30:50 +0000 Subject: Adding content of registration terms plugin --- languages/en.php | 10 ++++++ manifest.xml | 11 +++++++ start.php | 28 +++++++++++++++++ views/default/account/forms/register.php | 46 ++++++++++++++++++++++++++++ views/default/registrationterms/register.php | 9 ++++++ 5 files changed, 104 insertions(+) create mode 100644 languages/en.php create mode 100644 manifest.xml create mode 100644 start.php create mode 100644 views/default/account/forms/register.php create mode 100644 views/default/registrationterms/register.php diff --git a/languages/en.php b/languages/en.php new file mode 100644 index 000000000..079e85e07 --- /dev/null +++ b/languages/en.php @@ -0,0 +1,10 @@ + "I have read and agree to the", + 'terms' => 'Terms', + + 'agreetoterms:required' => "You must first agree to the terms", +); + +add_translation("en",$english); +?> \ No newline at end of file diff --git a/manifest.xml b/manifest.xml new file mode 100644 index 000000000..f1382f08b --- /dev/null +++ b/manifest.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/start.php b/start.php new file mode 100644 index 000000000..de7657fab --- /dev/null +++ b/start.php @@ -0,0 +1,28 @@ + \ No newline at end of file diff --git a/views/default/account/forms/register.php b/views/default/account/forms/register.php new file mode 100644 index 000000000..3e53b6f05 --- /dev/null +++ b/views/default/account/forms/register.php @@ -0,0 +1,46 @@ +admin) && ($vars['show_admin'])) { + $admin_option = true; +} + +$form_body = "


"; + +$form_body .= "
"; +$form_body .= "
"; +$form_body .= "
"; +$form_body .= "
"; + +// view to extend to add more fields to the registration form +$form_body .= elgg_view('register/extend'); + +// Add captcha hook +$form_body .= elgg_view('input/captcha'); + +if ($admin_option) { + $form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option')))); +} + +$form_body .= elgg_view('input/hidden', array('internalname' => 'friend_guid', 'value' => $vars['friend_guid'])); +$form_body .= elgg_view('input/hidden', array('internalname' => 'invitecode', 'value' => $vars['invitecode'])); +$form_body .= elgg_view('input/hidden', array('internalname' => 'action', 'value' => 'register')); +$form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "

"; +?> + +
+

+ "{$vars['url']}action/register", 'body' => $form_body)) ?> +
\ No newline at end of file diff --git a/views/default/registrationterms/register.php b/views/default/registrationterms/register.php new file mode 100644 index 000000000..a8ad88cdb --- /dev/null +++ b/views/default/registrationterms/register.php @@ -0,0 +1,9 @@ + +
\ No newline at end of file -- cgit v1.2.3 -- cgit v1.2.3 From 16e8eb3aa78ee8a15327886467e0c1cdf53bfb96 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Fri, 18 Mar 2011 22:01:20 -0700 Subject: Updated manifest for 1.8 --- manifest.xml | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/manifest.xml b/manifest.xml index f1382f08b..38912072b 100644 --- a/manifest.xml +++ b/manifest.xml @@ -1,11 +1,19 @@ - - - - - - - - - + + Registration Terms + Evan Winslow + 1.0 + Force users to check a box saying they agree to the site's terms before they are allowed to register + http://www.facebook.com/evanwinslow + (C) Evan Winslow 2010 + GNU Public License version 2 + + plugin + externalpages + + + elgg_version + 2011031401 + + simple -- cgit v1.2.3 From 9e4ac3d0d5b24cd6c91b33a5402fb5e636df61f4 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Fri, 18 Mar 2011 22:01:45 -0700 Subject: Ignoring standard eclipse files --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..f24f87a96 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/.settings +/.project +/.buildpath -- cgit v1.2.3 From 198cd62a80dbc685d8e10686e81c7b5a4a2f2773 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Fri, 18 Mar 2011 22:25:02 -0700 Subject: Cleaned up registration terms and updated to 1.8 style Upped version. --- languages/en.php | 12 +++----- manifest.xml | 2 +- start.php | 37 +++++++++------------- views/default/account/forms/register.php | 46 ---------------------------- views/default/registrationterms/register.php | 16 +++++++--- 5 files changed, 30 insertions(+), 83 deletions(-) delete mode 100644 views/default/account/forms/register.php diff --git a/languages/en.php b/languages/en.php index 079e85e07..ba7b03d92 100644 --- a/languages/en.php +++ b/languages/en.php @@ -1,10 +1,6 @@ "I have read and agree to the", - 'terms' => 'Terms', - 'agreetoterms:required' => "You must first agree to the terms", -); - -add_translation("en",$english); -?> \ No newline at end of file +add_translation("en", array( + 'registrationterms:agree' => 'I have read and agree to the Terms of Service', + 'registrationterms:required' => "You must first agree to the terms", +)); \ No newline at end of file diff --git a/manifest.xml b/manifest.xml index 38912072b..f7e84f155 100644 --- a/manifest.xml +++ b/manifest.xml @@ -2,7 +2,7 @@ Registration Terms Evan Winslow - 1.0 + 1.1 Force users to check a box saying they agree to the site's terms before they are allowed to register http://www.facebook.com/evanwinslow (C) Evan Winslow 2010 diff --git a/start.php b/start.php index de7657fab..acd890ae1 100644 --- a/start.php +++ b/start.php @@ -1,28 +1,19 @@ \ No newline at end of file diff --git a/views/default/account/forms/register.php b/views/default/account/forms/register.php deleted file mode 100644 index 3e53b6f05..000000000 --- a/views/default/account/forms/register.php +++ /dev/null @@ -1,46 +0,0 @@ -admin) && ($vars['show_admin'])) { - $admin_option = true; -} - -$form_body = "


"; - -$form_body .= "
"; -$form_body .= "
"; -$form_body .= "
"; -$form_body .= "
"; - -// view to extend to add more fields to the registration form -$form_body .= elgg_view('register/extend'); - -// Add captcha hook -$form_body .= elgg_view('input/captcha'); - -if ($admin_option) { - $form_body .= elgg_view('input/checkboxes', array('internalname' => "admin", 'options' => array(elgg_echo('admin_option')))); -} - -$form_body .= elgg_view('input/hidden', array('internalname' => 'friend_guid', 'value' => $vars['friend_guid'])); -$form_body .= elgg_view('input/hidden', array('internalname' => 'invitecode', 'value' => $vars['invitecode'])); -$form_body .= elgg_view('input/hidden', array('internalname' => 'action', 'value' => 'register')); -$form_body .= elgg_view('input/submit', array('internalname' => 'submit', 'value' => elgg_echo('register'))) . "

"; -?> - -
-

- "{$vars['url']}action/register", 'body' => $form_body)) ?> -
\ No newline at end of file diff --git a/views/default/registrationterms/register.php b/views/default/registrationterms/register.php index a8ad88cdb..7f746719b 100644 --- a/views/default/registrationterms/register.php +++ b/views/default/registrationterms/register.php @@ -1,9 +1,15 @@ 'agreetoterms', + 'value' => 'true', +)); ?> -
\ No newline at end of file +
+ +
\ No newline at end of file -- cgit v1.2.3 From 33656642382e5addc0a6247a688e4539acc99278 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Thu, 16 Jun 2011 00:46:46 -0700 Subject: Updated the URL to point to github --- manifest.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.xml b/manifest.xml index f7e84f155..010676814 100644 --- a/manifest.xml +++ b/manifest.xml @@ -4,7 +4,7 @@ Evan Winslow 1.1 Force users to check a box saying they agree to the site's terms before they are allowed to register - http://www.facebook.com/evanwinslow + http://github.com/ewinslow/elgg-registrationterms (C) Evan Winslow 2010 GNU Public License version 2 -- cgit v1.2.3 From 1cc948cdb5cb80241010f01e07282599313c7c69 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Thu, 16 Jun 2011 01:08:52 -0700 Subject: Fixed typo in plugin initialization --- start.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/start.php b/start.php index acd890ae1..3c42aa14a 100644 --- a/start.php +++ b/start.php @@ -15,5 +15,4 @@ function registrationterms_register_hook() { } } -elgg_register_elgg_event_handler('init', 'system', 'registrationterms_init'); -?> \ No newline at end of file +elgg_register_event_handler('init', 'system', 'registrationterms_init'); -- cgit v1.2.3 From 0505b291a6f5becbb46f734bd6c16af5468e7263 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Thu, 16 Jun 2011 01:10:32 -0700 Subject: Updated checkbox for 1.8 --- views/default/registrationterms/register.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/default/registrationterms/register.php b/views/default/registrationterms/register.php index 7f746719b..153674dd0 100644 --- a/views/default/registrationterms/register.php +++ b/views/default/registrationterms/register.php @@ -3,11 +3,13 @@ * */ -$label = elgg_echo('registrationterms:agree', array(elgg_get_site_url() . 'expages/read/Terms')); +$label = elgg_echo('registrationterms:agree', array(elgg_normalize_url('/terms'))); $input = elgg_view('input/checkbox', array( 'name' => 'agreetoterms', 'value' => 'true', + 'required' => TRUE, + 'default' => false, )); ?>
-- cgit v1.2.3 From 4619b5b63768983aad9c2334b52a0d2ed8cc4906 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Thu, 16 Jun 2011 01:25:52 -0700 Subject: Upping to 1.2 --- manifest.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.xml b/manifest.xml index 010676814..55a15d8a8 100644 --- a/manifest.xml +++ b/manifest.xml @@ -2,7 +2,7 @@ Registration Terms Evan Winslow - 1.1 + 1.2 Force users to check a box saying they agree to the site's terms before they are allowed to register http://github.com/ewinslow/elgg-registrationterms (C) Evan Winslow 2010 -- cgit v1.2.3 From 9fe1979a5a3b3bc2c393eb7be3ce8c197feed21a Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Thu, 16 Jun 2011 01:33:14 -0700 Subject: Added screenshot --- manifest.xml | 6 ++++++ screenshots/register-form.png | Bin 0 -> 8653 bytes 2 files changed, 6 insertions(+) create mode 100644 screenshots/register-form.png diff --git a/manifest.xml b/manifest.xml index 55a15d8a8..ed0b5b046 100644 --- a/manifest.xml +++ b/manifest.xml @@ -15,5 +15,11 @@ elgg_version 2011031401 + + + Checkbox appears in registration form. + screenshots/register-form.png + + simple diff --git a/screenshots/register-form.png b/screenshots/register-form.png new file mode 100644 index 000000000..277a287af Binary files /dev/null and b/screenshots/register-form.png differ -- cgit v1.2.3 From 3a0cefe2df0b87f218573c023d46021e92858b51 Mon Sep 17 00:00:00 2001 From: Evan Winslow Date: Thu, 16 Jun 2011 01:39:05 -0700 Subject: Added a README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 000000000..266368f80 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# Registration Terms for Elgg 1.8 # + +This is a simple little plugin that adds a checkbox to your registration form +and forces users to check it before they can proceed. + +## Customization ## + +If you'd like to customize the wording or translate it into other languages, +just override the language strings in languages/en.php \ No newline at end of file -- cgit v1.2.3 From 7cdd12ffd4296adbd4b4ab661efd27ee714a30bd Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 10 May 2012 08:18:54 -0700 Subject: Update manifest.xml --- manifest.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/manifest.xml b/manifest.xml index ed0b5b046..0fb339425 100644 --- a/manifest.xml +++ b/manifest.xml @@ -7,13 +7,13 @@ http://github.com/ewinslow/elgg-registrationterms (C) Evan Winslow 2010 GNU Public License version 2 - - plugin - externalpages + + plugin + externalpages - - elgg_version - 2011031401 + + elgg_version + 2011031401 -- cgit v1.2.3 From 08957cc28b07076c0dbc2ade3a3ed73e5a744935 Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 10 May 2012 18:22:58 +0300 Subject: Open terms in a new window. --- languages/en.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages/en.php b/languages/en.php index ba7b03d92..eecf0963f 100644 --- a/languages/en.php +++ b/languages/en.php @@ -1,6 +1,6 @@ 'I have read and agree to the Terms of Service', + 'registrationterms:agree' => 'I have read and agree to the Terms of Service', 'registrationterms:required' => "You must first agree to the terms", )); \ No newline at end of file -- cgit v1.2.3 From 74967c8938b2edf330ecbf0f8c369f216c95d9b1 Mon Sep 17 00:00:00 2001 From: Sem Date: Fri, 12 Oct 2012 18:06:42 +0200 Subject: Added catalan language. --- languages/ca.php | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 languages/ca.php diff --git a/languages/ca.php b/languages/ca.php new file mode 100644 index 000000000..4d2055ba0 --- /dev/null +++ b/languages/ca.php @@ -0,0 +1,6 @@ + 'He llegit i estic d\'acord amb les Condicions del Servei', + 'registrationterms:required' => 'Has d\'estar d\'acord amb les condicions', +); +add_translation("ca", $language); \ No newline at end of file -- cgit v1.2.3 From 77a1a618c179cac32bebcc666877f2722990c978 Mon Sep 17 00:00:00 2001 From: Sem Date: Fri, 8 Nov 2013 06:29:29 +0100 Subject: Bumped version 1.8.0 --- manifest.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manifest.xml b/manifest.xml index 0fb339425..9277f23eb 100644 --- a/manifest.xml +++ b/manifest.xml @@ -1,8 +1,8 @@ - Registration Terms + Registration Terms Evan Winslow - 1.2 + 1.8.0 Force users to check a box saying they agree to the site's terms before they are allowed to register http://github.com/ewinslow/elgg-registrationterms (C) Evan Winslow 2010 @@ -12,8 +12,8 @@ externalpages - elgg_version - 2011031401 + elgg_release + 1.8 -- cgit v1.2.3