From 11bb0e1e6e0fd0effa8ab9b9fe02bda3405776a0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 6 Aug 2008 01:59:52 +0000 Subject: Update: Completed phpBB3 plugin's ACP Also used a new method of providing the subscription file's URL as static text instead inside a text box. Refs #7 --- .../phpBB3/trunk/root/adm/style/acp_instadisc.html | 29 +++++++++++++++++++++- .../trunk/root/includes/acp/acp_instadisc.php | 11 ++++++++ .../trunk/root/language/en/mods/instadisc.php | 4 +++ 3 files changed, 43 insertions(+), 1 deletion(-) (limited to 'update/plugin') diff --git a/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html index 1322f24..387658a 100644 --- a/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html +++ b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html @@ -15,13 +15,40 @@
+
+
+ +
This is the URL of your subscription file +
+
{S_SUBSCRIPTION_FILE}
+

This is the Central Server's XML-RPC URL. They should have provided this for you in an email and also on their site.
- +
+
+ +
Enter the username you registered for at your Central Server +
+
+
+
+
+ +
Enter the password to go with the username above +
+
+
+
+
+ +
After submitting your subscription for sponsership at your Central Server, it should provide you with an Activation Key +
+
+

  diff --git a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php index 9ca3b81..bd1965c 100644 --- a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php +++ b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php @@ -32,15 +32,26 @@ class acp_instadisc // Add config to the database set_config('id_subscription_title', $_POST['subscription_title']); set_config('id_central_server', $_POST['central_server']); + set_config('id_username', $_POST['central_server_username']); + set_config('id_password', $_POST['central_server_password']); + set_config('id_activation_key', $_POST['central_server_activation']); trigger_error('The changes you made to your InstaDisc settings have been saved!' . adm_back_link($this->u_action), E_USER_NOTICE); } else { $idst = isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename']; $idcs = isset($config['id_central_server']) ? $config['id_central_server'] : ''; + $idun = isset($config['id_username']) ? $config['id_username'] : ''; + $idps = isset($config['id_password']) ? $config['id_password'] : ''; + $idak = isset($config['id_activation_key']) ? $config['id_activation_key'] : ''; + $idsf = $config['server_protocol'] . $config['server_name'] . $config['script_path'] . '/subscription.php'; $template->assign_vars(array( 'S_SUBSCRIPTION_TITLE' => $idst, 'S_CENTRAL_SERVER' => $idcs, + 'S_USERNAME' => $idun, + 'S_PASSWORD' => $idps, + 'S_ACTIVATION' => $idak, + 'S_SUBSCRIPTION_FILE' => $idsf, 'S_SUBMIT' => $this->u_action )); } diff --git a/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php index a9d51a8..17880f5 100644 --- a/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php +++ b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php @@ -39,8 +39,12 @@ $lang = array_merge($lang, array( 'SUBSCRIPTION' => 'Subscription', 'SUBSCRIPTION_TITLE' => 'Subscription Title', + 'SUBSCRIPTION_FILE' => 'Subscription File URL', 'CENTRAL_SERVER' => 'Central Server', + 'USERNAME' => 'Username', + 'PASSWORD' => 'Password', + 'ACTIVATION' => 'Activation Key', )); ?> -- cgit 1.4.1