diff --git a/root/language/en/mods/portal/portal_announcements_module.php b/root/language/en/mods/portal/portal_announcements_module.php index 7c2b3cca..19f7be7a 100644 --- a/root/language/en/mods/portal/portal_announcements_module.php +++ b/root/language/en/mods/portal/portal_announcements_module.php @@ -1,6 +1,6 @@ 'Jump to first post', 'JUMP_TO_POST' => 'Jump to post', 'BACK' => 'Back', + + // ACP 'ACP_PORTAL_ANNOUNCE_SETTINGS' => 'Global announcements settings', 'ACP_PORTAL_ANNOUNCE_SETTINGS_EXPLAIN' => 'This is where you customize the global announcements block.', 'PORTAL_ANNOUNCEMENTS' => 'Display global announcements', diff --git a/root/language/en/mods/portal/portal_birthday_list_module.php b/root/language/en/mods/portal/portal_birthday_list_module.php index ffe79a07..0120c153 100644 --- a/root/language/en/mods/portal/portal_birthday_list_module.php +++ b/root/language/en/mods/portal/portal_birthday_list_module.php @@ -1,6 +1,6 @@ 'PayPal donations', + 'DONATION_TEXT' => 'is a group supplying services with no intention of any monetary profit. Your donations are welcome so that the cost of our server, domain name, etc. can be covered.', + 'PAY_MSG' => 'Please use a decimal point (not a comma) as the separator, e.g. 3.50', + 'PAY_ITEM' => 'Donate!', // paypal item + + 'AUD' => 'Australian Dollars (AUD)', + 'CAD' => 'Canadian Dollars (CAD)', + 'CZK' => 'Czech Koruna (CZK)', + 'DKK' => 'Danish Kroner (DKK)', + 'HKD' => 'Hong Kong Dollars (HKD)', + 'HUF' => 'Hungarian Forint (HUF)', + 'NZD' => 'New Zealand Dollars (NZD)', + 'NOK' => 'Norwegian Kroner (NOK)', + 'PLN' => 'Polish Zlotych (PLN)', + 'GBP' => 'British Pounds (GBP)', + 'SGD' => 'Singapore Dollars (SGD)', + 'SEK' => 'Swedish Kronor (SEK)', + 'CHF' => 'Swiss Francs (CHF)', + 'JPY' => 'Japanese Yen (JPY)', + 'USD' => 'U.S. Dollars (USD)', + 'EUR' => 'Euros (EUR)', + 'MXN' => 'Mexican Pesos (MXN)', + 'ILS' => 'Israeli New Shekels (ILS)', + + // ACP + 'ACP_PORTAL_PAYPAL_SETTINGS' => 'Paypal settings', + 'ACP_PORTAL_PAYPAL_SETTINGS_EXPLAIN' => 'This is where you customize the Paypal block.', + 'PORTAL_PAY_C_BLOCK' => 'Display paypal center block', + 'PORTAL_PAY_C_BLOCK_EXPLAIN' => 'Display this block on the portal.', + 'PORTAL_PAY_S_BLOCK' => 'Display paypal small block', + 'PORTAL_PAY_S_BLOCK_EXPLAIN' => 'Display this block on the portal.', + 'PORTAL_PAY_ACC' => 'Paypal account to use', + 'PORTAL_PAY_ACC_EXPLAIN' => 'Enter your Paypal e-mail address eg. xxx@xxx.com', +)); + +?> \ No newline at end of file diff --git a/root/language/en/mods/portal/portal_stylechanger_module.php b/root/language/en/mods/portal/portal_stylechanger_module.php index 5dd544be..c087b0ae 100644 --- a/root/language/en/mods/portal/portal_stylechanger_module.php +++ b/root/language/en/mods/portal/portal_stylechanger_module.php @@ -1,6 +1,6 @@ 'Top Posters', 'TOPPOSTERS_CONFIG' => 'Top Poster settings', + + // ACP 'NUM_TOPPOSTERS' => 'Number of Top Posters', - 'NUM_TOPPOSTERS_EXP' => 'Enter how many users should be displayed in the top posters block.', + 'NUM_TOPPOSTERS_EXP' => 'Enter how many users should be displayed in the top posters block.', )); ?> \ No newline at end of file diff --git a/root/portal/modules/portal_donation.php b/root/portal/modules/portal_donation.php new file mode 100644 index 00000000..40fbbfcc --- /dev/null +++ b/root/portal/modules/portal_donation.php @@ -0,0 +1,100 @@ +lang}/mods/portal/" + */ + var $language = 'portal_donation_module'; + + function get_template_center($module_id) + { + global $config, $template; + + $template->assign_var('PAY_ACC', $config['board3_pay_acc']); + + return 'donation_center.html'; + } + + function get_template_side($module_id) + { + global $config, $template; + + $template->assign_var('PAY_ACC', $config['board3_pay_acc']); + + return 'donation_side.html'; + } + + function get_template_acp($module_id) + { + return array( + 'title' => 'ACP_PORTAL_PAYPAL_SETTINGS', + 'vars' => array( + 'legend1' => 'ACP_PORTAL_PAYPAL_SETTINGS', + 'board3_pay_acc' => array('lang' => 'PORTAL_PAY_ACC' , 'validate' => 'string', 'type' => 'text:25:100', 'explain' => true), + ) + ); + } + + /** + * API functions + */ + function install($module_id) + { + set_config('board3_pay_acc', 'your@paypal.com'); + return true; + } + + function uninstall($module_id) + { + global $db; + + $del_config = array( + 'board3_pay_acc', + ); + $sql = 'DELETE FROM ' . CONFIG_TABLE . ' + WHERE ' . $db->sql_in_set('config_name', $del_config); + return $db->sql_query($sql); + } +} + +?> \ No newline at end of file diff --git a/root/styles/prosilver/template/portal/modules/donate_center.html b/root/styles/prosilver/template/portal/modules/donate_center.html deleted file mode 100644 index 5120168b..00000000 --- a/root/styles/prosilver/template/portal/modules/donate_center.html +++ /dev/null @@ -1,39 +0,0 @@ - -{SITENAME} {L_DONATION_TEXT} -
-
-
-
- - - - - - - - - - -
-
-
-{L_PAY_MSG} \ No newline at end of file diff --git a/root/styles/prosilver/template/portal/modules/donation_center.html b/root/styles/prosilver/template/portal/modules/donation_center.html new file mode 100644 index 00000000..f86328fd --- /dev/null +++ b/root/styles/prosilver/template/portal/modules/donation_center.html @@ -0,0 +1,49 @@ + +{$C_BLOCK_H_L}
{L_DONATION}
{$C_BLOCK_H_R} + +{$C_BLOCK_F_L}{$C_BLOCK_F_R} \ No newline at end of file diff --git a/root/styles/prosilver/template/portal/modules/donation_side.html b/root/styles/prosilver/template/portal/modules/donation_side.html new file mode 100644 index 00000000..98f19fe0 --- /dev/null +++ b/root/styles/prosilver/template/portal/modules/donation_side.html @@ -0,0 +1,36 @@ + +{$LR_BLOCK_H_L} {L_DONATION}{$LR_BLOCK_H_R} +
+
+
+ + + + + + + + + + +
+
+
+{$LR_BLOCK_F_L}{$LR_BLOCK_F_R} \ No newline at end of file diff --git a/root/styles/prosilver/theme/images/portal/paypal.gif b/root/styles/prosilver/theme/images/portal/paypal.gif new file mode 100644 index 00000000..0044501d Binary files /dev/null and b/root/styles/prosilver/theme/images/portal/paypal.gif differ diff --git a/root/styles/prosilver/theme/images/portal/portal_donation.png b/root/styles/prosilver/theme/images/portal/portal_donation.png new file mode 100644 index 00000000..42c52d05 Binary files /dev/null and b/root/styles/prosilver/theme/images/portal/portal_donation.png differ