From 606b7b6a101bf109817567b1a2b0a7e831768766 Mon Sep 17 00:00:00 2001 From: brettp Date: Sat, 12 Feb 2011 19:22:55 +0000 Subject: Cleaned up more twitterservice code. Twitter usernames now have random digits appended upon name collision. Added the option for admins to allow twitter sign up even if site registration is disabled. git-svn-id: http://code.elgg.org/elgg/trunk@8169 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/settings/twitterservice/edit.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'mod/twitterservice/views/default') diff --git a/mod/twitterservice/views/default/settings/twitterservice/edit.php b/mod/twitterservice/views/default/settings/twitterservice/edit.php index 7e43762ce..f84710af3 100644 --- a/mod/twitterservice/views/default/settings/twitterservice/edit.php +++ b/mod/twitterservice/views/default/settings/twitterservice/edit.php @@ -1,6 +1,6 @@ $vars['entity']->sign_on ? $vars['entity']->sign_on : 'no', )); +$new_users_with_twitter = elgg_echo('twitterservice:new_users'); +$new_users_with_twitter_view = elgg_view('input/dropdown', array( + 'internalname' => 'params[new_users]', + 'options_values' => array( + 'yes' => elgg_echo('option:yes'), + 'no' => elgg_echo('option:no'), + ), + 'value' => $vars['entity']->new_users ? $vars['entity']->new_users : 'no', +)); + $settings = <<<__HTML
$insert_view
$consumer_key_string $consumer_key_view
$consumer_secret_string $consumer_secret_view
$sign_on_with_twitter_string $sign_on_with_twitter_view
+
$new_users_with_twitter $new_users_with_twitter_view
__HTML; echo $settings; -- cgit v1.2.3