Report#90: Forum List on the Portal - like on the index, could be switched on and off in the ACP, default is off
This commit is contained in:
@@ -70,6 +70,8 @@ $lang = array_merge($lang, array(
|
|||||||
'PORTAL_MAIN_MENU_EXPLAIN' => 'Diesen Block auf dem Portal anzeigen.',
|
'PORTAL_MAIN_MENU_EXPLAIN' => 'Diesen Block auf dem Portal anzeigen.',
|
||||||
'PORTAL_USER_MENU' => 'Benutzermenü / Login Box',
|
'PORTAL_USER_MENU' => 'Benutzermenü / Login Box',
|
||||||
'PORTAL_USER_MENU_EXPLAIN' => 'Diesen Block auf dem Portal anzeigen.',
|
'PORTAL_USER_MENU_EXPLAIN' => 'Diesen Block auf dem Portal anzeigen.',
|
||||||
|
'PORTAL_FORUM_INDEX' => 'Foren Index (Foren Liste)',
|
||||||
|
'PORTAL_FORUM_INDEX_EXPLAIN' => 'Diesen Block auf dem Portal anzeigen.',
|
||||||
|
|
||||||
// random member
|
// random member
|
||||||
'PORTAL_RANDOM_MEMBER' => 'Zufälliges Profil',
|
'PORTAL_RANDOM_MEMBER' => 'Zufälliges Profil',
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ class acp_portal
|
|||||||
'portal_birthdays' => array('lang' => 'PORTAL_BIRTHDAYS' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
'portal_birthdays' => array('lang' => 'PORTAL_BIRTHDAYS' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||||
'portal_birthdays_ahead' => array('lang' => 'PORTAL_BIRTHDAYS_AHEAD' , 'validate' => 'int' , 'type' => 'text:3:3' , 'explain' => true),
|
'portal_birthdays_ahead' => array('lang' => 'PORTAL_BIRTHDAYS_AHEAD' , 'validate' => 'int' , 'type' => 'text:3:3' , 'explain' => true),
|
||||||
'portal_random_member' => array('lang' => 'PORTAL_RANDOM_MEMBER' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
'portal_random_member' => array('lang' => 'PORTAL_RANDOM_MEMBER' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||||
|
'portal_forum_index' => array('lang' => 'PORTAL_FORUM_INDEX' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||||
'portal_whois_online' => array('lang' => 'PORTAL_WHOIS_ONLINE' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
'portal_whois_online' => array('lang' => 'PORTAL_WHOIS_ONLINE' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||||
'portal_change_style' => array('lang' => 'PORTAL_CHANGE_STYLE' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
'portal_change_style' => array('lang' => 'PORTAL_CHANGE_STYLE' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||||
'portal_main_menu' => array('lang' => 'PORTAL_MAIN_MENU' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
'portal_main_menu' => array('lang' => 'PORTAL_MAIN_MENU' , 'validate' => 'bool' , 'type' => 'radio:yes_no' , 'explain' => true),
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_cust
|
|||||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_small_bbcode', '0');
|
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_small_bbcode', '0');
|
||||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_center_headline', 'Headline center box');
|
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_center_headline', 'Headline center box');
|
||||||
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_small_headline', 'Headline small box');
|
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_small_headline', 'Headline small box');
|
||||||
|
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_forum_index', '0');
|
||||||
|
|
||||||
# POSTGRES COMMIT #
|
# POSTGRES COMMIT #
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ $sql_update['0.2.3'] = array(
|
|||||||
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_small_bbcode', '0')",
|
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_small_bbcode', '0')",
|
||||||
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_center_headline', 'Headline center box')",
|
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_center_headline', 'Headline center box')",
|
||||||
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_small_headline', 'Headline small box')",
|
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_custom_small_headline', 'Headline small box')",
|
||||||
|
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_forum_index', '0')",
|
||||||
);
|
);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -75,6 +75,8 @@ $lang = array_merge($lang, array(
|
|||||||
'PORTAL_MAIN_MENU_EXPLAIN' => 'Display this block on portal.',
|
'PORTAL_MAIN_MENU_EXPLAIN' => 'Display this block on portal.',
|
||||||
'PORTAL_USER_MENU' => 'User menu / Login box',
|
'PORTAL_USER_MENU' => 'User menu / Login box',
|
||||||
'PORTAL_USER_MENU_EXPLAIN' => 'Display this block on portal.',
|
'PORTAL_USER_MENU_EXPLAIN' => 'Display this block on portal.',
|
||||||
|
'PORTAL_FORUM_INDEX' => 'Forum Index (Forum list)',
|
||||||
|
'PORTAL_FORUM_INDEX_EXPLAIN' => 'Display this block on portal.',
|
||||||
|
|
||||||
// random member
|
// random member
|
||||||
'PORTAL_RANDOM_MEMBER' => 'Random member block',
|
'PORTAL_RANDOM_MEMBER' => 'Random member block',
|
||||||
|
|||||||
@@ -58,6 +58,23 @@ if ( is_dir( $phpbb_root_path . 'install_portal/' ) === TRUE )
|
|||||||
|
|
||||||
if ( $load_center === TRUE )
|
if ( $load_center === TRUE )
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if ($portal_config['portal_forum_index'])
|
||||||
|
{
|
||||||
|
display_forums('');
|
||||||
|
|
||||||
|
$template->assign_vars(array(
|
||||||
|
'FORUM_IMG' => $user->img('forum_read', 'NO_NEW_POSTS'),
|
||||||
|
'FORUM_NEW_IMG' => $user->img('forum_unread', 'NEW_POSTS'),
|
||||||
|
'FORUM_LOCKED_IMG' => $user->img('forum_read_locked', 'NO_NEW_POSTS_LOCKED'),
|
||||||
|
'FORUM_NEW_LOCKED_IMG' => $user->img('forum_unread_locked', 'NO_NEW_POSTS_LOCKED'),
|
||||||
|
'S_DISPLAY_PORTAL_FORUM_INDEX' => true,
|
||||||
|
|
||||||
|
'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'mark=forums') : '',
|
||||||
|
'U_MCP' => ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if ($portal_config['portal_recent'])
|
if ($portal_config['portal_recent'])
|
||||||
{
|
{
|
||||||
include($phpbb_root_path . 'portal/block/recent.'.$phpEx);
|
include($phpbb_root_path . 'portal/block/recent.'.$phpEx);
|
||||||
|
|||||||
@@ -102,8 +102,22 @@
|
|||||||
<!-- IF S_DISPLAY_POLL -->
|
<!-- IF S_DISPLAY_POLL -->
|
||||||
<!-- INCLUDE portal/block/poll.html -->
|
<!-- INCLUDE portal/block/poll.html -->
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- IF S_DISPLAY_PORTAL_FORUM_INDEX -->
|
||||||
|
<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
|
||||||
|
<ul class="linklist">
|
||||||
|
<!-- IF S_DISPLAY_SEARCH -->
|
||||||
|
<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_USER_LOGGED_IN --> • <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> • <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="rightside"><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
|
||||||
|
</ul>
|
||||||
|
<!-- ENDIF -->
|
||||||
|
|
||||||
<!-- IF S_DISPLAY_ONLINE_PORTAL_LIST and S_DISPLAY_ONLINE_LIST -->
|
<!-- INCLUDE forumlist_body.html -->
|
||||||
|
<br />
|
||||||
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- IF S_DISPLAY_ONLINE_PORTAL_LIST and S_DISPLAY_ONLINE_LIST -->
|
||||||
<!-- INCLUDE portal/block/whois_online.html -->
|
<!-- INCLUDE portal/block/whois_online.html -->
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
|||||||
@@ -136,7 +136,25 @@ small, .small {
|
|||||||
<!-- INCLUDE portal/block/poll.html -->
|
<!-- INCLUDE portal/block/poll.html -->
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
<!-- IF S_DISPLAY_ONLINE_PORTAL_LIST and S_DISPLAY_ONLINE_LIST -->
|
<!-- IF S_DISPLAY_PORTAL_FORUM_INDEX -->
|
||||||
|
<!-- INCLUDE forumlist_body.html -->
|
||||||
|
<br clear="all" />
|
||||||
|
<table class="legend">
|
||||||
|
<tr>
|
||||||
|
<td width="20" align="center">{FORUM_NEW_IMG}</td>
|
||||||
|
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
|
||||||
|
<td> </td>
|
||||||
|
<td width="20" align="center">{FORUM_IMG}</td>
|
||||||
|
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
|
||||||
|
<td> </td>
|
||||||
|
<td width="20" align="center">{FORUM_LOCKED_IMG}</td>
|
||||||
|
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<br clear="all" />
|
||||||
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
<!-- IF S_DISPLAY_ONLINE_PORTAL_LIST and S_DISPLAY_ONLINE_LIST -->
|
||||||
<!-- INCLUDE portal/block/whois_online.html -->
|
<!-- INCLUDE portal/block/whois_online.html -->
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user