Spelling mistakes, general clean up, few extra tidbits
This commit is contained in:
@@ -60,9 +60,9 @@ class acp_portal
|
||||
'portal_friends' => array('lang' => 'PORTAL_FRIENDS' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||
'portal_max_online_friends' => array('lang' => 'PORTAL_MAX_ONLINE_FRIENDS' , 'validate' => 'int' , 'type' => 'text:3:3' , 'explain' => true),
|
||||
|
||||
'legend2' => 'ACP_PORTAL_COLLUMN_WIDTH_SETTINGS',
|
||||
'portal_left_collumn_width' => array('lang' => 'PORTAL_LEFT_COLLUMN_WIDTH' , 'validate' => 'int' , 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_right_collumn_width' => array('lang' => 'PORTAL_RIGHT_COLLUMN_WIDTH' , 'validate' => 'int' , 'type' => 'text:3:3', 'explain' => true),
|
||||
'legend2' => 'ACP_PORTAL_COLUMN_WIDTH_SETTINGS',
|
||||
'portal_left_column_width' => array('lang' => 'PORTAL_LEFT_COLUMN_WIDTH' , 'validate' => 'int' , 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_right_column_width' => array('lang' => 'PORTAL_RIGHT_COLUMN_WIDTH' , 'validate' => 'int' , 'type' => 'text:3:3', 'explain' => true),
|
||||
)
|
||||
);
|
||||
break;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
$current_version = '1.0.0';
|
||||
$current_version = '1.0.0RC2';
|
||||
|
||||
// If only checking version, exit.
|
||||
if( defined('IN_PHPBB') )
|
||||
|
||||
@@ -26,8 +26,8 @@ INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_whoi
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_change_style', '0');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_main_menu', '1');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_user_menu', '1');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_right_collumn_width', '180');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_left_collumn_width', '180');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_right__width', '180');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_valuecolumn) VALUES ('portal_left__width', '180');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_poll_topic', '1');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_poll_topic_id', '');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_last_visited_bots_number', '1');
|
||||
@@ -38,7 +38,7 @@ INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_pay_
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_recent', '1');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_recent_title_limit', '100');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_max_topics', '10');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_exclude_forums', '');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_valuecolumn) VALUES ('portal_exclude_forums', '');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_forum', '');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_length', '250');
|
||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_number_of_news', '5');
|
||||
|
||||
@@ -50,6 +50,11 @@ $mod_update['0.3.0'] = array(
|
||||
'module_mode' => 'links',
|
||||
'module_auth' => ''
|
||||
),
|
||||
);
|
||||
);
|
||||
|
||||
$sql_update['1.0.0RC1'] = array(
|
||||
"UPDATE phpbb_portal_config SET config_name = 'portal_right_column_width' config_name = 'portal_right_collumn_width'",
|
||||
"UPDATE phpbb_portal_config SET config_name = 'portal_left_column_width' config_name = 'portal_left_collumn_width'",,
|
||||
);
|
||||
|
||||
?>
|
||||
@@ -183,13 +183,13 @@ $lang = array_merge($lang, array(
|
||||
'PORTAL_MAX_MOST_POSTER' => 'Anzahl der anzuzeigenden Vielschreiber',
|
||||
'PORTAL_MAX_MOST_POSTER_EXPLAIN' => '0 bedeutet unbegrenzt',
|
||||
|
||||
// left and right collumn width
|
||||
'ACP_PORTAL_COLLUMN_WIDTH_INFO' => 'Spaltenbreite',
|
||||
'ACP_PORTAL_COLLUMN_WIDTH_SETTINGS' => 'Breiteneinstellung der rechten und linken Spalte',
|
||||
'PORTAL_LEFT_COLLUMN_WIDTH' => 'Breite der linken Spalte',
|
||||
'PORTAL_LEFT_COLLUMN_WIDTH_EXPLAIN' => 'Ändere hier die Breite der linken Spalte in Pixel, empfohlener Wert 180',
|
||||
'PORTAL_RIGHT_COLLUMN_WIDTH' => 'Breite der rechten Spalte',
|
||||
'PORTAL_RIGHT_COLLUMN_WIDTH_EXPLAIN' => 'Ändere hier die Breite der rechten Spalte in Pixel, empfohlener Wert 180',
|
||||
// left and right column width
|
||||
'ACP_PORTAL_COLUMN_WIDTH_INFO' => 'Spaltenbreite',
|
||||
'ACP_PORTAL_COLUMN_WIDTH_SETTINGS' => 'Breiteneinstellung der rechten und linken Spalte',
|
||||
'PORTAL_LEFT_COLUMN_WIDTH' => 'Breite der linken Spalte',
|
||||
'PORTAL_LEFT_COLUMN_WIDTH_EXPLAIN' => 'Ändere hier die Breite der linken Spalte in Pixel, empfohlener Wert 180',
|
||||
'PORTAL_RIGHT_COLUMN_WIDTH' => 'Breite der rechten Spalte',
|
||||
'PORTAL_RIGHT_COLUMN_WIDTH_EXPLAIN' => 'Ändere hier die Breite der rechten Spalte in Pixel, empfohlener Wert 180',
|
||||
|
||||
// attachments
|
||||
'ACP_PORTAL_ATTACHMENTS_NUMBER_INFO' => 'Dateianhänge',
|
||||
|
||||
@@ -73,8 +73,8 @@ $lang = array_merge($lang, array(
|
||||
|
||||
// user menu
|
||||
'USER_MENU' => 'User menu',
|
||||
'UM_LOG_ME_IN' => 'remember me',
|
||||
'UM_HIDE_ME' => 'hide me',
|
||||
'UM_LOG_ME_IN' => 'Remember me',
|
||||
'UM_HIDE_ME' => 'Hide me',
|
||||
'UM_MAIN_SUBSCRIBED'=> 'Subscribed',
|
||||
'UM_BOOKMARKS' => 'Bookmarks',
|
||||
|
||||
@@ -83,26 +83,26 @@ $lang = array_merge($lang, array(
|
||||
'ST_NEW' => 'New',
|
||||
'ST_NEW_POSTS' => 'New post',
|
||||
'ST_NEW_TOPICS' => 'New topic',
|
||||
'ST_NEW_ANNS' => 'New announcment',
|
||||
'ST_NEW_ANNS' => 'New announcement',
|
||||
'ST_NEW_STICKYS'=> 'New sticky',
|
||||
*/
|
||||
'ST_TOP' => 'Total',
|
||||
'ST_TOP_ANNS' => 'Total announcment:',
|
||||
'ST_TOP_STICKYS'=> 'Total sticky:',
|
||||
'ST_TOT_ATTACH' => 'Total attachments:',
|
||||
'ST_TOP_ANNS' => 'Total Announcements:',
|
||||
'ST_TOP_STICKYS'=> 'Total Stickies:',
|
||||
'ST_TOT_ATTACH' => 'Total Attachments:',
|
||||
|
||||
// search
|
||||
'SH' => 'go',
|
||||
'SH_SITE' => 'forums',
|
||||
'SH_POSTS' => 'posts',
|
||||
'SH_AUTHOR' => 'author',
|
||||
'SH_ENGINE' => 'search engines',
|
||||
'SH_ADV' => 'advanced search',
|
||||
'SH' => 'Go',
|
||||
'SH_SITE' => 'Forums',
|
||||
'SH_POSTS' => 'Posts',
|
||||
'SH_AUTHOR' => 'Author',
|
||||
'SH_ENGINE' => 'Search engines',
|
||||
'SH_ADV' => 'Advanced search',
|
||||
|
||||
// recent
|
||||
'RECENT_NEWS' => 'Recent',
|
||||
'RECENT_TOPIC' => 'Recent topic',
|
||||
'RECENT_ANN' => 'Recent announcment',
|
||||
'RECENT_ANN' => 'Recent announcement',
|
||||
'RECENT_HOT_TOPIC' => 'Recent popular topic',
|
||||
|
||||
// random member
|
||||
@@ -129,7 +129,7 @@ $lang = array_merge($lang, array(
|
||||
|
||||
// make donation
|
||||
'DONATION' => 'Make a donation',
|
||||
'DONATION_TEXT' => 'is a formation suplying services with no intention of any revenue. Anyone who wants to support this formation can do it by donating so that the cost of server, the domain and etc. could be paid of.',
|
||||
'DONATION_TEXT' => 'is a group suplying services with no intention of any revenue. Anyone who wants to support this group can do so by donating so that the cost of server, the domain etc. can be covered.',
|
||||
'PAY_MSG' => 'After selecting the amount which you want to donate from the menu, you can go on by clicking on the picture of PayPal.',
|
||||
'PAY_ITEM' => 'Make a donation', // paypal item
|
||||
|
||||
@@ -210,7 +210,7 @@ $lang = array_merge($lang, array(
|
||||
'Mini_Cal_no_events' => 'None',
|
||||
'Mini_cal_this_event' => 'This month holiday events',
|
||||
'View_next_month' => 'next month',
|
||||
'View_previous_month' => 'previous month',
|
||||
'View_previous_month' => 'Previous month',
|
||||
|
||||
// uses MySQL DATE_FORMAT - %c long_month, numeric (1..12) - %e Day of the long_month, numeric (0..31)
|
||||
// see http://www.mysql.com/doc/D/a/Date_and_time_functions.html for more details
|
||||
|
||||
@@ -83,7 +83,7 @@ $lang = array_merge($lang, array(
|
||||
// global announcements
|
||||
'ACP_PORTAL_ANNOUNCE_INFO' => 'Global announcements',
|
||||
'ACP_PORTAL_ANNOUNCE_SETTINGS' => 'Global announcements settings',
|
||||
'ACP_PORTAL_ANNOUNCE_SETTINGS_EXPLAIN' => 'Here you can change your global announcment information and certain specific options.',
|
||||
'ACP_PORTAL_ANNOUNCE_SETTINGS_EXPLAIN' => 'Here you can change your global announcement information and certain specific options.',
|
||||
'PORTAL_ANNOUNCEMENTS' => 'Display global announcements',
|
||||
'PORTAL_ANNOUNCEMENTS_EXPLAIN' => 'Display this block on portal.',
|
||||
'PORTAL_ANNOUNCEMENTS_STYLE' => 'Compact global announcements block style',
|
||||
@@ -188,13 +188,13 @@ $lang = array_merge($lang, array(
|
||||
'PORTAL_MAX_MOST_POSTER' => 'How many most posters to display',
|
||||
'PORTAL_MAX_MOST_POSTER_EXPLAIN' => '0 means infinite',
|
||||
|
||||
// left and right collumn width
|
||||
'ACP_PORTAL_COLLUMN_WIDTH_INFO' => 'Collumn width',
|
||||
'ACP_PORTAL_COLLUMN_WIDTH_SETTINGS' => 'Left and right collumn width settings',
|
||||
'PORTAL_LEFT_COLLUMN_WIDTH' => 'Width value of the left collumn',
|
||||
'PORTAL_LEFT_COLLUMN_WIDTH_EXPLAIN' => 'Change the width of left collumn in pixel, recommended value 180',
|
||||
'PORTAL_RIGHT_COLLUMN_WIDTH' => 'Width value of the right collumn',
|
||||
'PORTAL_RIGHT_COLLUMN_WIDTH_EXPLAIN' => 'Change the width of right collumn in pixel, recommended value 180',
|
||||
// left and right column width
|
||||
'ACP_PORTAL_COLUMN_WIDTH_INFO' => 'Column width',
|
||||
'ACP_PORTAL_COLUMN_WIDTH_SETTINGS' => 'Left and right column width settings',
|
||||
'PORTAL_LEFT_COLUMN_WIDTH' => 'Width value of the left column',
|
||||
'PORTAL_LEFT_COLUMN_WIDTH_EXPLAIN' => 'Change the width of left column in pixel, recommended value 180',
|
||||
'PORTAL_RIGHT_COLUMN_WIDTH' => 'Width value of the right column',
|
||||
'PORTAL_RIGHT_COLUMN_WIDTH_EXPLAIN' => 'Change the width of right column in pixel, recommended value 180',
|
||||
|
||||
// attachments
|
||||
'ACP_PORTAL_ATTACHMENTS_NUMBER_INFO' => 'Attachments',
|
||||
|
||||
@@ -237,8 +237,8 @@ if ($portal_config['portal_pay_s_block'] or ( $portal_config['portal_pay_c_block
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_LEFT_COLLUMN' => $portal_config['portal_left_collumn_width'],
|
||||
'PORTAL_RIGHT_COLLUMN' => $portal_config['portal_right_collumn_width'],
|
||||
'PORTAL_LEFT_COLUMN' => $portal_config['portal_left_column_width'],
|
||||
'PORTAL_RIGHT_COLUMN' => $portal_config['portal_right_column_width'],
|
||||
));
|
||||
|
||||
// output page
|
||||
|
||||
@@ -27,8 +27,8 @@ function get_db_stat($mode)
|
||||
|
||||
switch( $mode )
|
||||
{
|
||||
case 'announcmenttotal':
|
||||
$sql = 'SELECT sizeof(distinct t.topic_id) AS announcment_total
|
||||
case 'announcementtotal':
|
||||
$sql = 'SELECT sizeof(distinct t.topic_id) AS announcement_total
|
||||
FROM ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
|
||||
WHERE t.topic_type = ' . POST_ANNOUNCE . '
|
||||
AND p.post_id = t.topic_first_post_id';
|
||||
@@ -54,8 +54,8 @@ function get_db_stat($mode)
|
||||
|
||||
switch ( $mode )
|
||||
{
|
||||
case 'announcmenttotal':
|
||||
return $row['announcment_total'];
|
||||
case 'announcementtotal':
|
||||
return $row['announcement_total'];
|
||||
break;
|
||||
case 'stickytotal':
|
||||
return $row['sticky_total'];
|
||||
@@ -130,7 +130,7 @@ $template->assign_vars(array(
|
||||
'TOTAL_TOPICS' => sprintf($user->lang[$l_total_topic_s], $total_topics),
|
||||
'TOTAL_USERS' => sprintf($user->lang[$l_total_user_s], $total_users),
|
||||
'NEWEST_USER' => sprintf($user->lang['NEWEST_USER'], get_username_string('full', $config['newest_user_id'], $config['newest_username'], $config['newest_user_colour'])),
|
||||
'S_ANN' => get_db_stat('announcmenttotal'),
|
||||
'S_ANN' => get_db_stat('announcementtotal'),
|
||||
'S_SCT' => get_db_stat('stickytotal'),
|
||||
'S_TOT_ATTACH' => ($config['allow_attachments']) ? get_db_stat('attachmentstotal') : 0,
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||
<tr>
|
||||
<!-- [+] left block area -->
|
||||
<td valign="top" style="width: {PORTAL_LEFT_COLLUMN}px; padding-right:6px;">
|
||||
<td valign="top" style="width: {PORTAL_LEFT_COLUMN}px; padding-right:6px;">
|
||||
<br style="clear:both" />
|
||||
|
||||
<!-- IF S_DISPLAY_MAINMENU -->
|
||||
@@ -141,7 +141,7 @@
|
||||
<td style="width:4px;" valign="top"> </td>
|
||||
|
||||
<!-- [+] right block area -->
|
||||
<td valign="top" style="width: {PORTAL_RIGHT_COLLUMN}px; padding-left:6px;">
|
||||
<td valign="top" style="width: {PORTAL_RIGHT_COLUMN}px; padding-left:6px;">
|
||||
<br style="clear:both" />
|
||||
|
||||
<!-- IF S_DISPLAY_USERMENU -->
|
||||
|
||||
@@ -38,7 +38,7 @@ small, .small {
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
|
||||
<tr>
|
||||
<!-- [+] left block area -->
|
||||
<td width="{PORTAL_LEFT_COLLUMN}px" valign="top" style="padding-right:6px;">
|
||||
<td width="{PORTAL_LEFT_COLUMN}px" valign="top" style="padding-right:6px;">
|
||||
|
||||
<!-- IF S_DISPLAY_MAINMENU -->
|
||||
<!-- INCLUDE portal/block/main_menu.html -->
|
||||
@@ -179,7 +179,7 @@ small, .small {
|
||||
<td style="width:4px;" valign="top"> </td>
|
||||
|
||||
<!-- [+] right block area -->
|
||||
<td width="{PORTAL_RIGHT_COLLUMN}px" valign="top" style="padding-left:6px;">
|
||||
<td width="{PORTAL_RIGHT_COLUMN}px" valign="top" style="padding-left:6px;">
|
||||
|
||||
|
||||
<!-- IF S_DISPLAY_USERMENU -->
|
||||
|
||||
Reference in New Issue
Block a user