Start of pallet
This commit is contained in:
128
root/adm/style/acp_pallet.html
Normal file
128
root/adm/style/acp_pallet.html
Normal file
@@ -0,0 +1,128 @@
|
||||
<!-- INCLUDE overall_header.html -->
|
||||
|
||||
<h1>{L_TITLE}</h1>
|
||||
|
||||
<p>{L_TITLE_EXPLAIN}</p>
|
||||
|
||||
<!-- IF S_LAYOUT_SETTINGS -->
|
||||
|
||||
<table cellspacing="1">
|
||||
<caption>{L_PALLET_LAYOUT}</caption>
|
||||
<col class="col1" /><col class="col2" /><col class="col1" />
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{L_COLUMN_LEFT}</th>
|
||||
<th>{L_COLUMN_CENTER}</th>
|
||||
<th>{L_COLUMN_RIGHT}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!-- BEGIN table_row -->
|
||||
<tr>
|
||||
<td>
|
||||
<!-- IF table_row.LEFT -->
|
||||
<!-- IF table_row.S_LEFT_FIRST_ROW && not table_row.S_LEFT_LAST_ROW -->
|
||||
{ICON_MOVE_UP_DISABLED}
|
||||
<a href="{table_row.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
|
||||
<!-- ELSEIF not table_row.S_LEFT_FIRST_ROW && not table_row.S_LEFT_LAST_ROW-->
|
||||
<a href="{table_row.U_MOVE_UP}">{ICON_MOVE_UP}</a>
|
||||
<a href="{table_row.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
|
||||
<!-- ELSEIF table_row.S_LEFT_LAST_ROW && not table_row.S_LEFT_FIRST_ROW -->
|
||||
<a href="{table_row.U_MOVE_UP}">{ICON_MOVE_UP}</a>
|
||||
{ICON_MOVE_DOWN_DISABLED}
|
||||
<!-- ELSE -->
|
||||
{ICON_MOVE_UP_DISABLED}
|
||||
{ICON_MOVE_DOWN_DISABLED}
|
||||
<!-- ENDIF -->
|
||||
<!-- IF table_row.S_LEFT_ENABLED -->
|
||||
{ICON_DELETE}
|
||||
<!-- ELSE -->
|
||||
{ICON_EDIT}
|
||||
<!-- ENDIF -->
|
||||
{table_row.LEFT}
|
||||
<!-- ENDIF -->
|
||||
</td>
|
||||
<td>
|
||||
<!-- IF table_row.CENTER -->
|
||||
<!-- IF table_row.S_CENTER_FIRST_ROW && not table_row.S_CENTER_LAST_ROW -->
|
||||
{ICON_MOVE_UP_DISABLED}
|
||||
<a href="{table_row.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
|
||||
<!-- ELSEIF not table_row.S_CENTER_FIRST_ROW && not table_row.S_CENTER_LAST_ROW-->
|
||||
<a href="{table_row.U_MOVE_UP}">{ICON_MOVE_UP}</a>
|
||||
<a href="{table_row.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
|
||||
<!-- ELSEIF table_row.S_CENTER_LAST_ROW && not table_row.S_CENTER_FIRST_ROW -->
|
||||
<a href="{table_row.U_MOVE_UP}">{ICON_MOVE_UP}</a>
|
||||
{ICON_MOVE_DOWN_DISABLED}
|
||||
<!-- ELSE -->
|
||||
{ICON_MOVE_UP_DISABLED}
|
||||
{ICON_MOVE_DOWN_DISABLED}
|
||||
<!-- ENDIF -->
|
||||
<!-- IF table_row.S_CENTER_ENABLED -->
|
||||
{ICON_DELETE}
|
||||
<!-- ELSE -->
|
||||
{ICON_EDIT}
|
||||
<!-- ENDIF -->
|
||||
{table_row.CENTER}
|
||||
<!-- ENDIF -->
|
||||
</td>
|
||||
<td>
|
||||
<!-- IF table_row.RIGHT-->
|
||||
<!-- IF table_row.S_RIGHT_FIRST_ROW && not table_row.S_RIGHT_LAST_ROW -->
|
||||
{ICON_MOVE_UP_DISABLED}
|
||||
<a href="{table_row.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
|
||||
<!-- ELSEIF not table_row.S_RIGHT_FIRST_ROW && not table_row.S_RIGHT_LAST_ROW-->
|
||||
<a href="{table_row.U_MOVE_UP}">{ICON_MOVE_UP}</a>
|
||||
<a href="{table_row.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a>
|
||||
<!-- ELSEIF table_row.S_RIGHT_LAST_ROW && not table_row.S_RIGHT_FIRST_ROW -->
|
||||
<a href="{table_row.U_MOVE_UP}">{ICON_MOVE_UP}</a>
|
||||
{ICON_MOVE_DOWN_DISABLED}
|
||||
<!-- ELSE -->
|
||||
{ICON_MOVE_UP_DISABLED}
|
||||
{ICON_MOVE_DOWN_DISABLED}
|
||||
<!-- ENDIF -->
|
||||
<!-- IF table_row.S_RIGHT_ENABLED -->
|
||||
{ICON_DELETE}
|
||||
<!-- ELSE -->
|
||||
{ICON_EDIT}
|
||||
<!-- ENDIF -->
|
||||
{table_row.RIGHT}
|
||||
<!-- ENDIF -->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- END table_row -->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table cellspacing="1">
|
||||
<caption>{L_PALLET_KEY}</caption>
|
||||
<col class="col1" /><col class="col2" />
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{L_IMAGE}</th>
|
||||
<th>{L_KEY}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{ICON_EDIT}</td>
|
||||
<td>Enable</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{ICON_DELETE}</td>
|
||||
<td>Disable</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{ICON_MOVE_UP}</td>
|
||||
<td>Move Up</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{ICON_MOVE_DOWN}</td>
|
||||
<td>Move Down</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- INCLUDE overall_footer.html -->
|
||||
164
root/includes/acp/acp_pallet.php
Normal file
164
root/includes/acp/acp_pallet.php
Normal file
@@ -0,0 +1,164 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package - Board3portal
|
||||
* @version $Id: acp_pallet.php 325 2008-08-17 18:59:40Z kevin74 $
|
||||
* @copyright (c) kevin / saint ( www.board3.de/ ), (c) Ice, (c) nickvergessen ( www.flying-bits.org/ ), (c) redbull254 ( www.digitalfotografie-foren.de ), (c) Christian_N ( www.phpbb-projekt.de )
|
||||
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
class acp_pallet
|
||||
{
|
||||
function main($id, $mode)
|
||||
{
|
||||
global $db, $user, $template;
|
||||
global $config, $portal_config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
|
||||
|
||||
$user->add_lang('mods/lang_pallet_acp');
|
||||
|
||||
define('IN_PALLET_ACP', true);
|
||||
|
||||
$block_sql = 'SELECT * FROM phpbb_portal_blocks ORDER BY block_position ASC , block_order ASC';
|
||||
$block_result = $db->sql_query($block_sql);
|
||||
|
||||
$block_array = array();
|
||||
|
||||
while ($block_row = $db->sql_fetchrow($block_result))
|
||||
{
|
||||
switch( $block_row['block_position'] )
|
||||
{
|
||||
case 0:
|
||||
$block_pos = 'left';
|
||||
$block_type = 'side';
|
||||
break;
|
||||
case 1:
|
||||
$block_pos = 'center';
|
||||
$block_type = '';
|
||||
break;
|
||||
case 2:
|
||||
$block_pos = 'right';
|
||||
$block_type = 'side';
|
||||
break;
|
||||
}
|
||||
|
||||
$block_array[$block_pos][$block_row['block_order']] = array(
|
||||
'block_name' => ( $block_type == '' ) ? $block_row['block_name'] : $block_row['block_name'] . '_' . $block_type,
|
||||
'block_enabled' => $block_row['block_enabled'],
|
||||
);
|
||||
}
|
||||
|
||||
$left_count = sizeof($block_array['left']);
|
||||
$center_count = sizeof($block_array['center']);
|
||||
$right_count = sizeof($block_array['right']);
|
||||
|
||||
$table_length = max($left_count, $center_count, $right_count);
|
||||
|
||||
for($i = 0; $i < $table_length; $i++) {
|
||||
$table_row = array(
|
||||
'LEFT' => '',
|
||||
'S_LEFT_ENALBED' => false,
|
||||
'CENTER' => '',
|
||||
'S_CENTER_ENALBED' => false,
|
||||
'RIGHT' => '',
|
||||
'S_RIGHT_ENALBED' => false,
|
||||
'S_LEFT_FIRST_ROW' => false,
|
||||
'S_LEFT_LAST_ROW' => false,
|
||||
'S_CENTER_FIRST_ROW' => false,
|
||||
'S_CENTER_LAST_ROW' => false,
|
||||
'S_RIGHT_FIRST_ROW' => false,
|
||||
'S_RIGHT_LAST_ROW' => false,
|
||||
);
|
||||
|
||||
if( isset( $block_array['left'][$i] ) )
|
||||
{
|
||||
if( $i == 0 )
|
||||
{
|
||||
$table_row['S_LEFT_FIRST_ROW'] = true;
|
||||
}
|
||||
|
||||
if( $i == $left_count-1 )
|
||||
{
|
||||
$table_row['S_LEFT_LAST_ROW'] = true;
|
||||
}
|
||||
|
||||
if ( $block_array['left'][$i]['block_enabled'] )
|
||||
{
|
||||
$table_row['S_LEFT_ENABLED'] = true;
|
||||
}
|
||||
|
||||
$table_row['LEFT'] = $block_array['left'][$i]['block_name'];
|
||||
}
|
||||
|
||||
if( isset( $block_array['center'][$i] ) )
|
||||
{
|
||||
if( $i == 0 )
|
||||
{
|
||||
$table_row['S_CENTER_FIRST_ROW'] = true;
|
||||
}
|
||||
|
||||
if( $i == $center_count-1 )
|
||||
{
|
||||
$table_row['S_CENTER_LAST_ROW'] = true;
|
||||
}
|
||||
|
||||
if ( $block_array['center'][$i]['block_enabled'] )
|
||||
{
|
||||
$table_row['S_CENTER_ENABLED'] = true;
|
||||
}
|
||||
|
||||
$table_row['CENTER'] = $block_array['center'][$i]['block_name'];
|
||||
}
|
||||
|
||||
if( isset( $block_array['right'][$i] ) )
|
||||
{
|
||||
if( $i == 0 )
|
||||
{
|
||||
$table_row['S_RIGHT_FIRST_ROW'] = true;
|
||||
}
|
||||
|
||||
if( $i == $right_count-1 )
|
||||
{
|
||||
$table_row['S_RIGHT_LAST_ROW'] = true;
|
||||
}
|
||||
|
||||
if ( $block_array['right'][$i]['block_enabled'] )
|
||||
{
|
||||
$table_row['S_RIGHT_ENABLED'] = true;
|
||||
}
|
||||
|
||||
$table_row['RIGHT'] = $block_array['right'][$i]['block_name'];
|
||||
}
|
||||
|
||||
$template->assign_block_vars('table_row', $table_row);
|
||||
}
|
||||
|
||||
$l_title = 'ACP_ATTACHMENT_LAYOUT';
|
||||
|
||||
$this->tpl_name = 'acp_pallet';
|
||||
$this->page_title = $l_title;
|
||||
|
||||
$template->assign_var('S_LAYOUT_SETTINGS', true);
|
||||
|
||||
|
||||
|
||||
/*$template->assign_vars(array(
|
||||
'L_TITLE' => $user->lang[$l_title],
|
||||
'L_TITLE_EXPLAIN' => $user->lang[$l_title . '_EXPLAIN'],
|
||||
'U_ACTION' => $this->u_action)
|
||||
);
|
||||
|
||||
$template->assign_block_vars('options', array(
|
||||
'KEY' => $config_key,
|
||||
'TITLE' => (isset($user->lang[$vars['lang']])) ? $user->lang[$vars['lang']] : $vars['lang'],
|
||||
'S_EXPLAIN' => $vars['explain'],
|
||||
'TITLE_EXPLAIN' => $l_explain,
|
||||
'CONTENT' => build_cfg_template($type, $config_key, $this->new_config, $config_key, $vars),
|
||||
)
|
||||
);*/
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -81,7 +81,7 @@ class acp_portal
|
||||
'portal_news_show_last' => array('lang' => 'PORTAL_NEWS_SHOW_LAST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_news_archive' => array('lang' => 'PORTAL_NEWS_ARCHIVE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_news_permissions' => array('lang' => 'PORTAL_NEWS_PERMISSIONS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_show_news_replies_views' => array('lang' => 'PORTAL_SHOW_REPLIES_VIEWS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_show_news_replies_views' => array('lang' => 'PORTAL_SHOW_REPLIES_VIEWS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
)
|
||||
);
|
||||
break;
|
||||
@@ -89,16 +89,16 @@ class acp_portal
|
||||
$display_vars = array(
|
||||
'title' => 'ACP_PORTAL_ANNOUNCE_SETTINGS',
|
||||
'vars' => array(
|
||||
'legend1' => 'ACP_PORTAL_ANNOUNCE_SETTINGS',
|
||||
'portal_announcements' => array('lang' => 'PORTAL_ANNOUNCEMENTS' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_announcements_style' => array('lang' => 'PORTAL_ANNOUNCEMENTS_STYLE' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_number_of_announcements' => array('lang' => 'PORTAL_NUMBER_OF_ANNOUNCEMENTS' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_announcements_day' => array('lang' => 'PORTAL_ANNOUNCEMENTS_DAY' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_announcements_length' => array('lang' => 'PORTAL_ANNOUNCEMENTS_LENGTH' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_global_announcements_forum' => array('lang' => 'PORTAL_GLOBAL_ANNOUNCEMENTS_FORUM' , 'validate' => 'string', 'type' => 'text:10:200', 'explain' => true),
|
||||
'portal_announcements_archive' => array('lang' => 'PORTAL_ANNOUNCEMENTS_ARCHIVE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_announcements_permissions' => array('lang' => 'PORTAL_ANNOUNCEMENTS_PERMISSIONS' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_show_announcements_replies_views' => array('lang' => 'PORTAL_SHOW_REPLIES_VIEWS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'legend1' => 'ACP_PORTAL_ANNOUNCE_SETTINGS',
|
||||
'portal_announcements' => array('lang' => 'PORTAL_ANNOUNCEMENTS' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_announcements_style' => array('lang' => 'PORTAL_ANNOUNCEMENTS_STYLE' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_number_of_announcements' => array('lang' => 'PORTAL_NUMBER_OF_ANNOUNCEMENTS' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_announcements_day' => array('lang' => 'PORTAL_ANNOUNCEMENTS_DAY' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_announcements_length' => array('lang' => 'PORTAL_ANNOUNCEMENTS_LENGTH' , 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),
|
||||
'portal_global_announcements_forum' => array('lang' => 'PORTAL_GLOBAL_ANNOUNCEMENTS_FORUM' , 'validate' => 'string', 'type' => 'text:10:200', 'explain' => true),
|
||||
'portal_announcements_archive' => array('lang' => 'PORTAL_ANNOUNCEMENTS_ARCHIVE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_announcements_permissions' => array('lang' => 'PORTAL_ANNOUNCEMENTS_PERMISSIONS' , 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
'portal_show_announcements_replies_views' => array('lang' => 'PORTAL_SHOW_REPLIES_VIEWS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
|
||||
)
|
||||
);
|
||||
break;
|
||||
|
||||
32
root/includes/acp/info/acp_pallet.php
Normal file
32
root/includes/acp/info/acp_pallet.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package - Board3portal
|
||||
* @version $Id: acp_pallet.php 325 2008-08-17 18:59:40Z kevin74 $
|
||||
* @copyright (c) kevin / saint ( www.board3.de/ ), (c) Ice, (c) nickvergessen ( www.flying-bits.org/ ), (c) redbull254 ( www.digitalfotografie-foren.de ), (c) Christian_N ( www.phpbb-projekt.de )
|
||||
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @package module_install
|
||||
*/
|
||||
class acp_pallet_info
|
||||
{
|
||||
function module()
|
||||
{
|
||||
return array(
|
||||
'filename' => 'acp_pallet',
|
||||
'title' => 'ACP_PALLET_INFO',
|
||||
'version' => '1.0.0',
|
||||
'modes' => array(
|
||||
'list' => array('title' => 'ACP_PALLET_LIST_INFO', 'auth' => 'acl_a_board', 'cat' => array('ACP_BOARD_CONFIGURATION')),
|
||||
'layout' => array('title' => 'ACP_PORTAL_LAYOUT_INFO', 'auth' => 'acl_a_board', 'cat' => array('ACP_BOARD_CONFIGURATION')),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
0
root/language/en/mods/lang_pallet_acp.php
Normal file
0
root/language/en/mods/lang_pallet_acp.php
Normal file
245
root/portal.php
245
root/portal.php
@@ -27,6 +27,16 @@ $user->session_begin();
|
||||
$auth->acl($user->data);
|
||||
$user->setup('mods/lang_portal');
|
||||
|
||||
// output page
|
||||
page_header($user->lang['PORTAL']);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => '/portal/portal_body.html'
|
||||
));
|
||||
|
||||
|
||||
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
|
||||
|
||||
$load_center = true;
|
||||
|
||||
if ( is_dir( $phpbb_root_path . 'install_portal/' ) === TRUE )
|
||||
@@ -38,7 +48,6 @@ if ( is_dir( $phpbb_root_path . 'install_portal/' ) === TRUE )
|
||||
if ( version_compare( $current_version, $portal_config['portal_version'], '<=' ) === TRUE )
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_GENERAL' => true,
|
||||
'GEN_TITLE' => $user->lang['PORTAL_ERROR'],
|
||||
'GEN_MESSAGE' => sprintf( $user->lang['PORTAL_DELETE_DIR'], $phpbb_root_path . 'install_portal' )
|
||||
));
|
||||
@@ -46,16 +55,75 @@ if ( is_dir( $phpbb_root_path . 'install_portal/' ) === TRUE )
|
||||
else
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_GENERAL' => true,
|
||||
'GEN_TITLE' => $user->lang['PORTAL_UPDATE'],
|
||||
'GEN_MESSAGE' => sprintf( $user->lang['PORTAL_UPDATE_TEXT'], $phpbb_root_path . 'install_portal/install.'.$phpEx, $current_version )
|
||||
));
|
||||
}
|
||||
|
||||
if (!isset($template->filename['general_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'general_block' => 'portal/block/general_block.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('general_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_center', array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
|
||||
$load_center = false;
|
||||
}
|
||||
}
|
||||
|
||||
if ($load_center == TRUE && $user->data['user_perm_from'] && $auth->acl_get('a_switchperm'))
|
||||
{
|
||||
if (!isset($template->filename['general_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'general_block' => 'portal/block/general_block.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('general_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_center', array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
if ( $load_center != TRUE )
|
||||
{
|
||||
$where = ' AND block_type <> 1';
|
||||
} else {
|
||||
$where = '';
|
||||
}
|
||||
|
||||
$block_sql = 'SELECT * FROM phpbb_portal_blocks WHERE block_enabled = 1'.$where.' ORDER BY block_position ASC , block_order ASC';
|
||||
$block_result = $db->sql_query($block_sql);
|
||||
|
||||
while ($block_row = $db->sql_fetchrow($block_result))
|
||||
{
|
||||
switch( $block_row['block_position'] )
|
||||
{
|
||||
case 0:
|
||||
$block_pos = 'left';
|
||||
$block_type = 'side';
|
||||
break;
|
||||
case 1:
|
||||
$block_pos = 'center';
|
||||
$block_type = '';
|
||||
break;
|
||||
case 2:
|
||||
$block_pos = 'right';
|
||||
$block_type = 'side';
|
||||
break;
|
||||
}
|
||||
include($phpbb_root_path . 'portal/block/'.$block_row['block_name'].'.'.$phpEx);
|
||||
}
|
||||
|
||||
if ( $load_center === TRUE )
|
||||
{
|
||||
|
||||
@@ -75,169 +143,6 @@ if ( $load_center === TRUE )
|
||||
);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_recent'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/recent.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_wordgraph'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/wordgraph.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_poll_topic'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/poll.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_welcome'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/welcome.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_welcome_guest'])
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_WELCOME_GUEST' => true,
|
||||
));
|
||||
}
|
||||
|
||||
if ($portal_config['portal_announcements'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/announcements.'.$phpEx);
|
||||
$template->assign_vars(array(
|
||||
'S_ANNOUNCE_COMPACT' => ($portal_config['portal_announcements_style']) ? true : false,
|
||||
));
|
||||
}
|
||||
|
||||
if ($portal_config['portal_news'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/news.'.$phpEx);
|
||||
$template->assign_vars(array(
|
||||
'S_NEWS_COMPACT' => ($portal_config['portal_news_style']) ? true : false,
|
||||
));
|
||||
}
|
||||
|
||||
if ($portal_config['portal_custom_center'] or $portal_config['portal_custom_small'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/custom.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($config['load_online'] && $config['load_online_time'] && $portal_config['portal_whois_online'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/whois_online.'.$phpEx);
|
||||
}
|
||||
}
|
||||
|
||||
// show login box and user menu
|
||||
|
||||
// only registered user see user menu
|
||||
if ($user->data['is_registered'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/user_menu.'.$phpEx);
|
||||
}
|
||||
else
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/login_box.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_main_menu'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/main_menu.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_user_menu'])
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_USERMENU' => true,
|
||||
));
|
||||
}
|
||||
|
||||
if ($portal_config['portal_birthdays'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/birthday_list.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_search'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/search.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_attachments'] && $config['allow_attachments'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/attachments.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_advanced_stat'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/statistics.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_minicalendar'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/mini_cal.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_link_us'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/link_us.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_leaders'] && $portal_config['portal_leaders_ext'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/leaders_ext.'.$phpEx);
|
||||
}
|
||||
elseif ($portal_config['portal_leaders'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/leaders.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_load_last_visited_bots'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/latest_bots.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_top_posters'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/top_posters.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_latest_members'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/latest_members.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_random_member'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/random_member.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_friends'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/friends.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_change_style'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/change_style.'.$phpEx);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_clock'])
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_CLOCK' => true,
|
||||
));
|
||||
}
|
||||
|
||||
if ($portal_config['portal_links'])
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/links.'.$phpEx);
|
||||
}
|
||||
|
||||
|
||||
if ($portal_config['portal_pay_s_block'] or ( $portal_config['portal_pay_c_block'] && $load_center === TRUE ) )
|
||||
{
|
||||
include($phpbb_root_path . 'portal/block/donate.'.$phpEx);
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
@@ -245,16 +150,6 @@ $template->assign_vars(array(
|
||||
'PORTAL_RIGHT_COLUMN' => $portal_config['portal_right_column_width'],
|
||||
));
|
||||
|
||||
// output page
|
||||
page_header($user->lang['PORTAL']);
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => '/portal/portal_body.html'
|
||||
));
|
||||
|
||||
|
||||
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
|
||||
|
||||
page_footer();
|
||||
|
||||
?>
|
||||
@@ -315,9 +315,28 @@ $template->assign_vars(array(
|
||||
'NEWEST_POST_IMG' => $user->img('icon_topic_newest', 'VIEW_NEWEST_POST'),
|
||||
'READ_POST_IMG' => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'),
|
||||
'GOTO_PAGE_IMG' => $user->img('icon_post_target', 'GOTO_PAGE'),
|
||||
'S_DISPLAY_ANNOUNCEMENTS' => true,
|
||||
'S_DISPLAY_ANNOUNCEMENTS_RVS' => ( $portal_config['portal_show_announcements_replies_views'] ) ? true : false,
|
||||
'S_TOPIC_ICONS' => $topic_icons,
|
||||
));
|
||||
|
||||
if( $portal_config['portal_announcements_style'] )
|
||||
{
|
||||
$template_file = 'portal/block/announcements_compact.html';
|
||||
} else {
|
||||
$template_file = 'portal/block/announcements.html';
|
||||
}
|
||||
|
||||
if (!isset($template->filename['announcements_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'announcements_block' => $template_file)
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('announcements_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
?>
|
||||
@@ -89,16 +89,18 @@ if( $attach_forums === TRUE )
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_ATTACHMENTS' => true,
|
||||
));
|
||||
} else {
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_ATTACHMENTS' => false,
|
||||
));
|
||||
if (!isset($template->filename['attachments_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'attachments_block' => 'portal/block/attachments.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('attachments_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -71,14 +71,26 @@ if ($config['load_birthdays'] && $config['allow_birthdays'])
|
||||
}
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// Assign index specific vars
|
||||
$template->assign_vars(array(
|
||||
'BIRTHDAY_LIST' => $birthday_list,
|
||||
'BIRTHDAYS_AHEAD_LIST' => ( $portal_config['portal_birthdays_ahead'] > 0 ) ? $birthday_ahead_list : '',
|
||||
'L_BIRTHDAYS_AHEAD' => sprintf($user->lang['BIRTHDAYS_AHEAD'], $portal_config['portal_birthdays_ahead']),
|
||||
));
|
||||
|
||||
if (!isset($template->filename['birthday_list_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'birthday_list_block' => 'portal/block/birthday_list.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('birthday_list_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
}
|
||||
|
||||
// Assign index specific vars
|
||||
$template->assign_vars(array(
|
||||
'BIRTHDAY_LIST' => $birthday_list,
|
||||
'BIRTHDAYS_AHEAD_LIST' => ( $portal_config['portal_birthdays_ahead'] > 0 ) ? $birthday_ahead_list : '',
|
||||
'L_BIRTHDAYS_AHEAD' => sprintf($user->lang['BIRTHDAYS_AHEAD'], $portal_config['portal_birthdays_ahead']),
|
||||
'S_DISPLAY_BIRTHDAY_LIST' => ($config['load_birthdays']) ? true : false,
|
||||
));
|
||||
|
||||
?>
|
||||
@@ -22,44 +22,55 @@ if (!defined('IN_PORTAL'))
|
||||
|
||||
$style = request_var('style', 0);
|
||||
|
||||
$sql = 'SELECT style_id, style_name, style_copyright
|
||||
FROM ' . STYLES_TABLE . '
|
||||
WHERE style_active = 1
|
||||
ORDER BY style_name ASC';
|
||||
$sql = 'SELECT style_id, style_name, style_copyright
|
||||
FROM ' . STYLES_TABLE . '
|
||||
WHERE style_active = 1
|
||||
ORDER BY style_name ASC';
|
||||
|
||||
$result = $db->sql_query($sql);
|
||||
$style_select = '<option selected="selected" disabled="disabled">' . $user->lang['STYLE_CHOOSE'] . '</option>';
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$selected = ( $style == $row['style_id'] ) ? ' selected="selected"' : '';
|
||||
$style_value = append_sid("{$phpbb_root_path}portal.$phpEx", 'style=' . $row['style_id']);
|
||||
$style_select .= '<option value="' . $style_value . '"' . $selected . '> ' . $row['style_name'] . ' </option>';
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// style info
|
||||
$sql2 = 'SELECT style_id, style_name, style_copyright
|
||||
FROM ' . STYLES_TABLE . '
|
||||
WHERE style_active = 1
|
||||
AND style_id = ' . $style;
|
||||
$result = $db->sql_query($sql);
|
||||
$style_select = '<option selected="selected" disabled="disabled">' . $user->lang['STYLE_CHOOSE'] . '</option>';
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$selected = ( $style == $row['style_id'] ) ? ' selected="selected"' : '';
|
||||
$style_value = append_sid("{$phpbb_root_path}portal.$phpEx", 'style=' . $row['style_id']);
|
||||
$style_select .= '<option value="' . $style_value . '"' . $selected . '> ' . $row['style_name'] . ' </option>';
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$result = $db->sql_query($sql2);
|
||||
$row = $db->sql_fetchrow($result);
|
||||
// style info
|
||||
$sql2 = 'SELECT style_id, style_name, style_copyright
|
||||
FROM ' . STYLES_TABLE . '
|
||||
WHERE style_active = 1
|
||||
AND style_id = ' . $style;
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_STYLE_ACTION'=> append_sid("{$phpbb_root_path}portal.$phpEx"),
|
||||
'STYLE_NAME' => $row['style_name'],
|
||||
'STYLE_COPY' => $row['style_copyright'],
|
||||
'STYLE_SELECT' => $style_select,
|
||||
));
|
||||
$result = $db->sql_query($sql2);
|
||||
$row = $db->sql_fetchrow($result);
|
||||
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'S_STYLE_OPTIONS' => ($config['override_user_style']) ? '' : style_select($user->data['user_style']),
|
||||
'S_DISPLAY_CHANGE_STYLE' => true,
|
||||
'S_STYLE_ACTION'=> append_sid("{$phpbb_root_path}portal.$phpEx"),
|
||||
'STYLE_NAME' => $row['style_name'],
|
||||
'STYLE_COPY' => $row['style_copyright'],
|
||||
'STYLE_SELECT' => $style_select,
|
||||
));
|
||||
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'S_STYLE_OPTIONS' => ($config['override_user_style']) ? '' : style_select($user->data['user_style']),
|
||||
));
|
||||
|
||||
if (!isset($template->filename['change_style_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'change_style_block' => 'portal/block/change_style.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('change_style_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
?>
|
||||
26
root/portal/block/clock.php
Normal file
26
root/portal/block/clock.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package - Board3portal
|
||||
* @version $Id: clock.php 325 2008-08-17 18:59:40Z kevin74 $
|
||||
* @copyright (c) kevin / saint ( www.board3.de/ ), (c) Ice, (c) nickvergessen ( www.flying-bits.org/ ), (c) redbull254 ( www.digitalfotografie-foren.de ), (c) Christian_N ( www.phpbb-projekt.de )
|
||||
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
if (!isset($template->filename['clock_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'clock_block' => 'portal/block/clock.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('clock_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
?>
|
||||
@@ -12,85 +12,106 @@
|
||||
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
|
||||
if (!defined('IN_PORTAL'))
|
||||
{
|
||||
exit;
|
||||
exit;
|
||||
}
|
||||
|
||||
$allow_bbcode = 1;
|
||||
$allow_urls = 1;
|
||||
$allow_smilies = 1;
|
||||
|
||||
// Center Box
|
||||
if ($portal_config['portal_custom_center'])
|
||||
if ($block_type == '')
|
||||
{
|
||||
// Center Box
|
||||
if ($portal_config['portal_custom_center_bbcode'])
|
||||
{
|
||||
if ($portal_config['portal_custom_center_bbcode'])
|
||||
{
|
||||
$message_parser = new parse_message($portal_config['portal_custom_code_center']);
|
||||
$message_parser->parse($allow_bbcode, $allow_urls, $allow_smilies);
|
||||
$message_parser = new parse_message($portal_config['portal_custom_code_center']);
|
||||
$message_parser->parse($allow_bbcode, $allow_urls, $allow_smilies);
|
||||
|
||||
$text_center = $message_parser->message;
|
||||
$bbcode_uid = $message_parser->bbcode_uid;
|
||||
$bbcode_bitfield = $message_parser->bbcode_bitfield;
|
||||
$text_center = $message_parser->message;
|
||||
$bbcode_uid = $message_parser->bbcode_uid;
|
||||
$bbcode_bitfield = $message_parser->bbcode_bitfield;
|
||||
|
||||
$bbcode = new bbcode(base64_encode($bbcode_bitfield));
|
||||
$text_center = censor_text($text_center);
|
||||
$bbcode->bbcode_second_pass($text_center, $bbcode_uid, $bbcode_bitfield);
|
||||
$text_center = bbcode_nl2br($text_center);
|
||||
$text_center = smiley_text($text_center);
|
||||
$bbcode = new bbcode(base64_encode($bbcode_bitfield));
|
||||
$text_center = censor_text($text_center);
|
||||
$bbcode->bbcode_second_pass($text_center, $bbcode_uid, $bbcode_bitfield);
|
||||
$text_center = bbcode_nl2br($text_center);
|
||||
$text_center = smiley_text($text_center);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_CUSTOM_CENTER_CODE' => $text_center,
|
||||
));
|
||||
}
|
||||
else
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_CUSTOM_CENTER_CODE' => htmlspecialchars_decode($portal_config['portal_custom_code_center'],ENT_QUOTES),
|
||||
));
|
||||
}
|
||||
$template->assign_vars(array(
|
||||
'S_CUSTOM_CENTER' => true,
|
||||
'PORTAL_CUSTOM_CENTER_HEADLINE' => $portal_config['portal_custom_center_headline'],
|
||||
));
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_CUSTOM_CENTER_CODE' => $text_center,
|
||||
));
|
||||
}
|
||||
else
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_CUSTOM_CENTER_CODE' => htmlspecialchars_decode($portal_config['portal_custom_code_center'],ENT_QUOTES),
|
||||
));
|
||||
}
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_CUSTOM_CENTER_HEADLINE' => $portal_config['portal_custom_center_headline'],
|
||||
));
|
||||
|
||||
if (!isset($template->filename['custom_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'custom_block' => 'portal/block/custom_center.html')
|
||||
);
|
||||
}
|
||||
|
||||
// Small Box
|
||||
if ($portal_config['portal_custom_small'])
|
||||
$block_temp = $template->assign_display('custom_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
} else {
|
||||
// Small Box
|
||||
if ($portal_config['portal_custom_small_bbcode'])
|
||||
{
|
||||
if ($portal_config['portal_custom_small_bbcode'])
|
||||
{
|
||||
$message_parser = new parse_message($portal_config['portal_custom_code_small']);
|
||||
$message_parser->parse($allow_bbcode, $allow_urls, $allow_smilies);
|
||||
$message_parser = new parse_message($portal_config['portal_custom_code_small']);
|
||||
$message_parser->parse($allow_bbcode, $allow_urls, $allow_smilies);
|
||||
|
||||
$text_small = $message_parser->message;
|
||||
$bbcode_uid = $message_parser->bbcode_uid;
|
||||
$bbcode_bitfield = $message_parser->bbcode_bitfield;
|
||||
$text_small = $message_parser->message;
|
||||
$bbcode_uid = $message_parser->bbcode_uid;
|
||||
$bbcode_bitfield = $message_parser->bbcode_bitfield;
|
||||
|
||||
$bbcode = new bbcode(base64_encode($bbcode_bitfield));
|
||||
$text_small = censor_text($text_small);
|
||||
$bbcode->bbcode_second_pass($text_small, $bbcode_uid, $bbcode_bitfield);
|
||||
$text_small = bbcode_nl2br($text_small);
|
||||
$text_small = smiley_text($text_small);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_CUSTOM_SMALL_CODE' => $text_small,
|
||||
));
|
||||
}
|
||||
else
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_CUSTOM_SMALL_CODE' => htmlspecialchars_decode($portal_config['portal_custom_code_small'],ENT_QUOTES),
|
||||
));
|
||||
}
|
||||
$template->assign_vars(array(
|
||||
'S_CUSTOM_SMALL' => true,
|
||||
'PORTAL_CUSTOM_SMALL_HEADLINE' => $portal_config['portal_custom_small_headline'],
|
||||
));
|
||||
$bbcode = new bbcode(base64_encode($bbcode_bitfield));
|
||||
$text_small = censor_text($text_small);
|
||||
$bbcode->bbcode_second_pass($text_small, $bbcode_uid, $bbcode_bitfield);
|
||||
$text_small = bbcode_nl2br($text_small);
|
||||
$text_small = smiley_text($text_small);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_CUSTOM_SMALL_CODE' => $text_small,
|
||||
));
|
||||
}
|
||||
else
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_CUSTOM_SMALL_CODE' => htmlspecialchars_decode($portal_config['portal_custom_code_small'],ENT_QUOTES),
|
||||
));
|
||||
}
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_CUSTOM_SMALL_HEADLINE' => $portal_config['portal_custom_small_headline'],
|
||||
));
|
||||
|
||||
if (!isset($template->filename['custom_side_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'custom_side_block' => 'portal/block/custom_small.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('custom_side_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
}
|
||||
?>
|
||||
@@ -20,26 +20,42 @@ if (!defined('IN_PORTAL'))
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($portal_config['portal_pay_acc'])
|
||||
if ($block_type == '')
|
||||
{
|
||||
if ($portal_config['portal_pay_c_block'])
|
||||
if (!isset($template->filename['donate_block']))
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_PAY_C' => true,
|
||||
));
|
||||
$template->set_filenames(array(
|
||||
'donate_block' => 'portal/block/donation.html')
|
||||
);
|
||||
}
|
||||
|
||||
if ($portal_config['portal_pay_s_block'])
|
||||
$block_temp = $template->assign_display('donate_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!isset($template->filename['donate_side_block']))
|
||||
{
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_PAY_S' => true,
|
||||
));
|
||||
$template->set_filenames(array(
|
||||
'donate_side_block' => 'portal/block/donation_small.html')
|
||||
);
|
||||
}
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'PAY_ACC' => $portal_config['portal_pay_acc'],
|
||||
));
|
||||
$block_temp = $template->assign_display('donate_side_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
}
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'PAY_ACC' => $portal_config['portal_pay_acc'],
|
||||
));
|
||||
|
||||
?>
|
||||
40
root/portal/block/forum_index.php
Normal file
40
root/portal/block/forum_index.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package - Board3portal
|
||||
* @version $Id: forum_index.php 325 2008-08-17 18:59:40Z kevin74 $
|
||||
* @copyright (c) kevin / saint ( www.board3.de/ ), (c) Ice, (c) nickvergessen ( www.flying-bits.org/ ), (c) redbull254 ( www.digitalfotografie-foren.de ), (c) Christian_N ( www.phpbb-projekt.de )
|
||||
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
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 (!isset($template->filename['forum_index_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'forum_index_block' => 'portal/block/forum_index.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('forum_index_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
|
||||
?>
|
||||
@@ -25,55 +25,26 @@ $s_display_friends = false;
|
||||
// Output listing of friends online
|
||||
$update_time = $config['load_online_time'] * 60;
|
||||
|
||||
switch ($db->sql_layer)
|
||||
{
|
||||
case 'mssql':
|
||||
case 'mssql_odbc':
|
||||
$sql = $db->sql_build_query('SELECT_DISTINCT', array(
|
||||
'SELECT' => 'u.user_id, u.username, u.user_colour, u.user_allow_viewonline, MAX(s.session_time) as online_time, MIN(s.session_viewonline) AS viewonline',
|
||||
'FROM' => array(
|
||||
USERS_TABLE => 'u',
|
||||
ZEBRA_TABLE => 'z'
|
||||
),
|
||||
$sql = $db->sql_build_query('SELECT_DISTINCT', array(
|
||||
'SELECT' => 'u.user_id, u.username, u.username_clean, u.user_colour, u.user_allow_viewonline, MAX(s.session_time) as online_time, MIN(s.session_viewonline) AS viewonline',
|
||||
'FROM' => array(
|
||||
USERS_TABLE => 'u',
|
||||
ZEBRA_TABLE => 'z'
|
||||
),
|
||||
|
||||
'LEFT_JOIN' => array(
|
||||
array(
|
||||
'FROM' => array(SESSIONS_TABLE => 's'),
|
||||
'ON' => 's.session_user_id = z.zebra_id'
|
||||
)
|
||||
),
|
||||
'LEFT_JOIN' => array(
|
||||
array(
|
||||
'FROM' => array(SESSIONS_TABLE => 's'),
|
||||
'ON' => 's.session_user_id = z.zebra_id'
|
||||
)
|
||||
),
|
||||
|
||||
'WHERE' => 'z.user_id = ' . $user->data['user_id'] . '
|
||||
AND z.friend = 1
|
||||
AND u.user_id = z.zebra_id',
|
||||
'GROUP_BY' => 'z.zebra_id, u.user_id, u.username, u.user_allow_viewonline, u.user_colour',
|
||||
'ORDER_BY' => 'u.username ASC',
|
||||
));
|
||||
break;
|
||||
|
||||
default:
|
||||
$sql = $db->sql_build_query('SELECT_DISTINCT', array(
|
||||
'SELECT' => 'u.user_id, u.username, u.user_colour, u.user_allow_viewonline, MAX(s.session_time) as online_time, MIN(s.session_viewonline) AS viewonline',
|
||||
'FROM' => array(
|
||||
USERS_TABLE => 'u',
|
||||
ZEBRA_TABLE => 'z'
|
||||
),
|
||||
|
||||
'LEFT_JOIN' => array(
|
||||
array(
|
||||
'FROM' => array(SESSIONS_TABLE => 's'),
|
||||
'ON' => 's.session_user_id = z.zebra_id'
|
||||
)
|
||||
),
|
||||
|
||||
'WHERE' => 'z.user_id = ' . $user->data['user_id'] . '
|
||||
AND z.friend = 1
|
||||
AND u.user_id = z.zebra_id',
|
||||
'GROUP_BY' => 'z.zebra_id, u.user_id, u.username, u.user_allow_viewonline, u.user_colour',
|
||||
'ORDER_BY' => 'u.username_clean ASC',
|
||||
));
|
||||
break;
|
||||
}
|
||||
'WHERE' => 'z.user_id = ' . $user->data['user_id'] . '
|
||||
AND z.friend = 1
|
||||
AND u.user_id = z.zebra_id',
|
||||
'GROUP_BY' => 'z.zebra_id, u.user_id, u.username, u.user_allow_viewonline, u.user_colour',
|
||||
'ORDER_BY' => 'u.username_clean ASC',
|
||||
));
|
||||
|
||||
$result = $db->sql_query_limit($sql, $portal_config['portal_max_online_friends']);
|
||||
|
||||
@@ -92,10 +63,23 @@ while ($row = $db->sql_fetchrow($result))
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_FRIENDS' => $s_display_friends,
|
||||
'S_ZEBRA_ENABLED' => true,
|
||||
));
|
||||
|
||||
//if( $s_display_friends )
|
||||
//{
|
||||
if (!isset($template->filename['friends_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'friends_block' => 'portal/block/online_friends.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('friends_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
//}
|
||||
|
||||
|
||||
?>
|
||||
27
root/portal/block/jumpbox.php
Normal file
27
root/portal/block/jumpbox.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* @package - Board3portal
|
||||
* @version $Id: jumpbox.php 325 2008-08-17 18:59:40Z kevin74 $
|
||||
* @copyright (c) kevin / saint ( www.board3.de/ ), (c) Ice, (c) nickvergessen ( www.flying-bits.org/ ), (c) redbull254 ( www.digitalfotografie-foren.de ), (c) Christian_N ( www.phpbb-projekt.de )
|
||||
* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
*
|
||||
*/
|
||||
|
||||
if (!isset($template->filename['jumpbox_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'jumpbox_block' => 'portal/block/jumpbox.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('jumpbox_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
|
||||
?>
|
||||
@@ -57,7 +57,19 @@ $db->sql_freeresult($result);
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'LAST_VISITED_BOTS' => sprintf($user->lang['LAST_VISITED_BOTS'], $portal_config['portal_last_visited_bots_number']),
|
||||
'S_LAST_VISITED_BOTS' => ($portal_config['portal_load_last_visited_bots']) ? true : false,
|
||||
));
|
||||
|
||||
if (!isset($template->filename['latest_bots_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'latest_bots_block' => 'portal/block/latest_bots.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('latest_bots_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
?>
|
||||
@@ -36,8 +36,17 @@ while( ($row = $db->sql_fetchrow($result)) && ($row['username']) )
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_LATEST_MEMBERS' => true,
|
||||
));
|
||||
if (!isset($template->filename['latest_members_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'latest_members_block' => 'portal/block/latest_members.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('latest_members_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
?>
|
||||
@@ -140,9 +140,17 @@ while ($row = $db->sql_fetchrow($result))
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if (!isset($template->filename['leaders_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'leaders_block' => 'portal/block/leaders.html')
|
||||
);
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_LEADERS' => true,
|
||||
));
|
||||
$block_temp = $template->assign_display('leaders_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
?>
|
||||
@@ -110,8 +110,17 @@ if( sizeof($groups) )
|
||||
}
|
||||
}
|
||||
}
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_LEADERS_EXT' => true,
|
||||
));
|
||||
if (!isset($template->filename['leaders_ext_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'leaders_ext_block' => 'portal/block/leaders_ext.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('leaders_ext_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
?>
|
||||
@@ -24,9 +24,22 @@ $u_link = $config['server_protocol'] . $config['server_name'] . $config['script_
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_LINK_US' => true,
|
||||
'LINK_US_TXT' => sprintf($user->lang['LINK_US_TXT'], $config['sitename']),
|
||||
'U_LINK_US' => '<a href="' . $u_link . '" ' . (($config['site_desc']) ? 'title="' . $config['site_desc'] . '"' : '' ) . '>' . (($config['sitename']) ? $config['sitename'] : $u_link ) . '</a>',
|
||||
));
|
||||
|
||||
if (!isset($template->filename['link_us_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'link_us_block' => 'portal/block/link_us.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('link_us_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
|
||||
?>
|
||||
@@ -33,8 +33,18 @@ foreach( $links as $link_id => $link_data )
|
||||
));
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_LINKS' => true,
|
||||
));
|
||||
if (!isset($template->filename['links_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'links_block' => 'portal/block/links.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('links_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
|
||||
?>
|
||||
@@ -21,10 +21,23 @@ if (!defined('IN_PORTAL'))
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_MAINMENU' => true,
|
||||
'U_M_BBCODE' => append_sid("{$phpbb_root_path}faq.$phpEx", 'mode=bbcode'),
|
||||
'U_M_TERMS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms'),
|
||||
'U_M_PRV' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=privacy'),
|
||||
));
|
||||
|
||||
if (!isset($template->filename['main_menu_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'main_menu_block' => 'portal/block/main_menu.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('main_menu_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
|
||||
?>
|
||||
@@ -145,7 +145,6 @@ $prev_month = '<a href="' . append_sid("{$phpbb_root_path}portal.$phpEx", "m=$do
|
||||
$next_month = '<a href="' . append_sid("{$phpbb_root_path}portal.$phpEx", "m=$up") . '"><img src="' . $phpbb_root_path . 'styles/' . $user->theme['theme_path'] . '/theme/images/portal/mini_cal_icon_right_arrow.png' . '" title="' . $user->lang['View_next_month'] . '" height="16" width="16" alt=">>" /></a>';
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_MINICAL' => true,
|
||||
'L_MINI_CAL_MONTH' => $user->lang['mini_cal']['long_month'][$mini_cal->day[0][4]] . " " . $mini_cal->day[0][5],
|
||||
'L_MINI_CAL_ADD_EVENT' => $user->lang['Mini_Cal_add_event'],
|
||||
'L_MINI_CAL_CALENDAR' => $user->lang['Mini_Cal_calendar'],
|
||||
@@ -162,4 +161,17 @@ $template->assign_vars(array(
|
||||
'U_NEXT_MONTH' => $next_month,
|
||||
));
|
||||
|
||||
if (!isset($template->filename['mini_cal_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'mini_cal_block' => 'portal/block/mini_calendar.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('mini_cal_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
?>
|
||||
@@ -297,14 +297,35 @@ if( isset($fetch_news['topic_icons']) )
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'NEWEST_POST_IMG' => $user->img('icon_topic_newest', 'VIEW_NEWEST_POST'),
|
||||
'READ_POST_IMG' => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'),
|
||||
'GOTO_PAGE_IMG' => $user->img('icon_post_target', 'GOTO_PAGE'),
|
||||
'S_NEWEST_OR_FIRST' => ( $portal_config['portal_news_show_last'] ) ? $user->lang['JUMP_NEWEST'] : $user->lang['JUMP_FIRST'],
|
||||
'POSTED_BY_TEXT' => ( $portal_config['portal_news_show_last'] ) ? $user->lang['LAST_POST'] : $user->lang['POSTED'],
|
||||
'S_DISPLAY_NEWS' => true,
|
||||
'S_DISPLAY_NEWS_RVS' => ( $portal_config['portal_show_news_replies_views'] ) ? true : false,
|
||||
'S_TOPIC_ICONS' => $topic_icons,
|
||||
'NEWEST_POST_IMG' => $user->img('icon_topic_newest', 'VIEW_NEWEST_POST'),
|
||||
'READ_POST_IMG' => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'),
|
||||
'GOTO_PAGE_IMG' => $user->img('icon_post_target', 'GOTO_PAGE'),
|
||||
'S_NEWEST_OR_FIRST => ( $portal_config['portal_news_show_last'] ) ? $user->lang['JUMP_NEWEST'] : $user->lang['JUMP_FIRST'],
|
||||
'POSTED_BY_TEXT' => ( $portal_config['portal_news_show_last'] ) ? $user->lang['LAST_POST'] : $user->lang['POSTED'],
|
||||
'S_DISPLAY_NEWS' => true,
|
||||
'S_DISPLAY_NEWS_RVS' => ( $portal_config['portal_show_news_replies_views'] ) ? true : false,
|
||||
'S_TOPIC_ICONS' => $topic_icons,
|
||||
));
|
||||
|
||||
if( $portal_config['portal_news_style'] )
|
||||
{
|
||||
$template_file = 'portal/block/news_compact.html';
|
||||
} else {
|
||||
$template_file = 'portal/block/news.html';
|
||||
}
|
||||
|
||||
if (!isset($template->filename['news_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'news_block' => $template_file)
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('news_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
|
||||
?>
|
||||
@@ -388,11 +388,23 @@ if( $poll_forums === TRUE )
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_POLL' => true,
|
||||
'S_HAS_POLL' => $has_poll,
|
||||
'POLL_LEFT_CAP_IMG' => $user->img('poll_left'),
|
||||
'POLL_RIGHT_CAP_IMG'=> $user->img('poll_right'),
|
||||
));
|
||||
if (!isset($template->filename['poll_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'poll_block' => 'portal/block/poll.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('poll_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -79,8 +79,18 @@ $template->assign_block_vars('random_member', array(
|
||||
));
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_RANDOM_MEMBER' => true,
|
||||
));
|
||||
if (!isset($template->filename['random_member_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'random_member_block' => 'portal/block/random_member.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('random_member_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
|
||||
?>
|
||||
@@ -135,8 +135,17 @@ while( ($row = $db->sql_fetchrow($result)) && ($row['topic_title']) )
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_RECENT' => true,
|
||||
));
|
||||
if (!isset($template->filename['recent_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'recent_block' => 'portal/block/recent.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('recent_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
?>
|
||||
@@ -21,9 +21,21 @@ if (!defined('IN_PORTAL'))
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_PORTALSEARCH' => true,
|
||||
'S_SEARCH_ACTION' => append_sid("{$phpbb_root_path}search.$phpEx"),
|
||||
|
||||
));
|
||||
|
||||
if (!isset($template->filename['search_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'search_block' => 'portal/block/search.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('search_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
|
||||
?>
|
||||
@@ -125,7 +125,6 @@ $l_posts_per_topic_s = ($total_posts == 0) ? 'POSTS_PER_TOPIC_ZERO' : 'POSTS_PER
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_ADVANCED_STAT' => true,
|
||||
'TOTAL_POSTS' => sprintf($user->lang[$l_total_post_s], $total_posts),
|
||||
'TOTAL_TOPICS' => sprintf($user->lang[$l_total_topic_s], $total_topics),
|
||||
'TOTAL_USERS' => sprintf($user->lang[$l_total_user_s], $total_users),
|
||||
@@ -143,4 +142,18 @@ $template->assign_vars(array(
|
||||
'POSTS_PER_TOPIC' => sprintf($user->lang[$l_posts_per_topic_s], $posts_per_topic),
|
||||
));
|
||||
|
||||
if (!isset($template->filename['statistics_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'statistics_block' => 'portal/block/statistics.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('statistics_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
|
||||
?>
|
||||
@@ -40,8 +40,18 @@ while( ($row = $db->sql_fetchrow($result)) && ($row['username']) )
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_TOP_POSTERS' => true
|
||||
));
|
||||
if (!isset($template->filename['top_posters_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'top_posters_block' => 'portal/block/top_poster.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('top_posters_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
|
||||
?>
|
||||
@@ -58,49 +58,66 @@ if ($user->data['is_registered'])
|
||||
WHERE user_id = " . $user->data['user_id'];
|
||||
$result = $db->sql_query($sql);
|
||||
$you_posts_count = (int) $db->sql_fetchfield('user_posts');
|
||||
|
||||
//
|
||||
// - new posts since last visit & you post number
|
||||
//
|
||||
|
||||
|
||||
// Get user...
|
||||
$user_id = $user->data['user_id'];
|
||||
$username = $user->data['username'];
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . USERS_TABLE . '
|
||||
WHERE ' . (($username) ? "username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'" : "user_id = $user_id");
|
||||
$result = $db->sql_query($sql);
|
||||
$member = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
$avatar_img = get_user_avatar($member['user_avatar'], $member['user_avatar_type'], $member['user_avatar_width'], $member['user_avatar_height']);
|
||||
$rank_title = $rank_img = '';
|
||||
get_user_rank($member['user_rank'], $member['user_posts'], $rank_title, $rank_img, $rank_img_src);
|
||||
$username = $member['username'];
|
||||
$user_id = (int) $member['user_id'];
|
||||
$colour = $member['user_colour'];
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'L_NEW_POSTS' => $user->lang['SEARCH_NEW'] . ' (' . $new_posts_count . ')',
|
||||
'L_SELF_POSTS' => $user->lang['SEARCH_SELF'] . ' (' . $you_posts_count . ')',
|
||||
|
||||
'AVATAR_IMG' => $avatar_img,
|
||||
|
||||
'RANK_TITLE' => $rank_title,
|
||||
'RANK_IMG' => $rank_img,
|
||||
'RANK_IMG_SRC' => $rank_img_src,
|
||||
|
||||
'USERNAME_FULL' => get_username_string('full', $user_id, $username, $colour),
|
||||
'USERNAME' => get_username_string('username', $user_id, $username, $colour),
|
||||
'USER_COLOR' => get_username_string('colour', $user_id, $username, $colour),
|
||||
'U_VIEW_PROFILE' => get_username_string('profile', $user_id, $username, $colour),
|
||||
|
||||
'U_NEW_POSTS' => append_sid($phpbb_root_path . 'search.' . $phpEx . '?search_id=newposts'),
|
||||
'U_SELF_POSTS' => append_sid($phpbb_root_path . 'search.' . $phpEx . '?search_id=egosearch'),
|
||||
'U_UM_BOOKMARKS' => ($config['allow_bookmarks']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", "i=main&mode=bookmarks") : '',
|
||||
'U_UM_MAIN_SUBSCRIBED' => append_sid($phpbb_root_path . 'ucp.' . $phpEx . '?i=main&mode=subscribed'),
|
||||
));
|
||||
|
||||
if (!isset($template->filename['user_menu_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'user_menu_block' => 'portal/block/user_menu.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('user_menu_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
} else {
|
||||
include($phpbb_root_path . 'portal/block/login_box.'.$phpEx);
|
||||
}
|
||||
//
|
||||
// - new posts since last visit & you post number
|
||||
//
|
||||
|
||||
|
||||
// Get user...
|
||||
$user_id = $user->data['user_id'];
|
||||
$username = $user->data['username'];
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . USERS_TABLE . '
|
||||
WHERE ' . (($username) ? "username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'" : "user_id = $user_id");
|
||||
$result = $db->sql_query($sql);
|
||||
$member = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
$avatar_img = get_user_avatar($member['user_avatar'], $member['user_avatar_type'], $member['user_avatar_width'], $member['user_avatar_height']);
|
||||
$rank_title = $rank_img = '';
|
||||
get_user_rank($member['user_rank'], $member['user_posts'], $rank_title, $rank_img, $rank_img_src);
|
||||
$username = $member['username'];
|
||||
$user_id = (int) $member['user_id'];
|
||||
$colour = $member['user_colour'];
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'L_NEW_POSTS' => $user->lang['SEARCH_NEW'] . ' (' . $new_posts_count . ')',
|
||||
'L_SELF_POSTS' => $user->lang['SEARCH_SELF'] . ' (' . $you_posts_count . ')',
|
||||
|
||||
'AVATAR_IMG' => $avatar_img,
|
||||
|
||||
'RANK_TITLE' => $rank_title,
|
||||
'RANK_IMG' => $rank_img,
|
||||
'RANK_IMG_SRC' => $rank_img_src,
|
||||
|
||||
'USERNAME_FULL' => get_username_string('full', $user_id, $username, $colour),
|
||||
'USERNAME' => get_username_string('username', $user_id, $username, $colour),
|
||||
'USER_COLOR' => get_username_string('colour', $user_id, $username, $colour),
|
||||
'U_VIEW_PROFILE' => get_username_string('profile', $user_id, $username, $colour),
|
||||
|
||||
'U_NEW_POSTS' => append_sid($phpbb_root_path . 'search.' . $phpEx . '?search_id=newposts'),
|
||||
'U_SELF_POSTS' => append_sid($phpbb_root_path . 'search.' . $phpEx . '?search_id=egosearch'),
|
||||
'U_UM_BOOKMARKS' => ($config['allow_bookmarks']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", "i=main&mode=bookmarks") : '',
|
||||
'U_UM_MAIN_SUBSCRIBED' => append_sid($phpbb_root_path . 'ucp.' . $phpEx . '?i=main&mode=subscribed'),
|
||||
));
|
||||
|
||||
?>
|
||||
@@ -20,26 +20,41 @@ if (!defined('IN_PORTAL'))
|
||||
exit;
|
||||
}
|
||||
|
||||
$allow_bbcode = 1;
|
||||
$allow_urls = 1;
|
||||
$allow_smilies = 1;
|
||||
if ( !$portal_config['portal_welcome_guest'] || ( $portal_config['portal_welcome_guest'] && (!isset($user->data['is_registered']) || !$user->data['is_registered']) ) )
|
||||
{
|
||||
$allow_bbcode = 1;
|
||||
$allow_urls = 1;
|
||||
$allow_smilies = 1;
|
||||
|
||||
$message_parser = new parse_message($portal_config['portal_welcome_intro']);
|
||||
$message_parser->parse($allow_bbcode, $allow_urls, $allow_smilies);
|
||||
$message_parser = new parse_message($portal_config['portal_welcome_intro']);
|
||||
$message_parser->parse($allow_bbcode, $allow_urls, $allow_smilies);
|
||||
|
||||
$text = $message_parser->message;
|
||||
$bbcode_uid = $message_parser->bbcode_uid;
|
||||
$bbcode_bitfield = $message_parser->bbcode_bitfield;
|
||||
$text = $message_parser->message;
|
||||
$bbcode_uid = $message_parser->bbcode_uid;
|
||||
$bbcode_bitfield = $message_parser->bbcode_bitfield;
|
||||
|
||||
$bbcode = new bbcode(base64_encode($bbcode_bitfield));
|
||||
$text = censor_text($text);
|
||||
$bbcode->bbcode_second_pass($text, $bbcode_uid, $bbcode_bitfield);
|
||||
$text = bbcode_nl2br($text);
|
||||
$text = smiley_text($text);
|
||||
$bbcode = new bbcode(base64_encode($bbcode_bitfield));
|
||||
$text = censor_text($text);
|
||||
$bbcode->bbcode_second_pass($text, $bbcode_uid, $bbcode_bitfield);
|
||||
$text = bbcode_nl2br($text);
|
||||
$text = smiley_text($text);
|
||||
|
||||
if (!isset($template->filename['welcome_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'welcome_block' => 'portal/block/welcome.html')
|
||||
);
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_WELCOME' => true,
|
||||
'PORTAL_WELCOME_INTRO' => $text,
|
||||
));
|
||||
$template->assign_vars(array(
|
||||
'PORTAL_WELCOME_INTRO' => $text,
|
||||
));
|
||||
|
||||
$block_temp = $template->assign_display('welcome_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
}
|
||||
?>
|
||||
@@ -20,73 +20,84 @@ if (!defined('IN_PORTAL'))
|
||||
exit;
|
||||
}
|
||||
|
||||
//
|
||||
// who is online borrowed from index.php (phpBB-3.0.B3)
|
||||
// if this gets changed (in index.php) and I don't notice it, please tell me)
|
||||
//
|
||||
|
||||
// Grab group details for legend display
|
||||
if ($auth->acl_gets('a_group', 'a_groupadd', 'a_groupdel'))
|
||||
if ($config['load_online'] && $config['load_online_time'])
|
||||
{
|
||||
$sql = 'SELECT group_id, group_name, group_colour, group_type
|
||||
FROM ' . GROUPS_TABLE . '
|
||||
WHERE group_legend = 1
|
||||
ORDER BY group_name ASC';
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = 'SELECT g.group_id, g.group_name, g.group_colour, g.group_type
|
||||
FROM ' . GROUPS_TABLE . ' g
|
||||
LEFT JOIN ' . USER_GROUP_TABLE . ' ug
|
||||
ON (
|
||||
g.group_id = ug.group_id
|
||||
AND ug.user_id = ' . $user->data['user_id'] . '
|
||||
AND ug.user_pending = 0
|
||||
)
|
||||
WHERE g.group_legend = 1
|
||||
AND (g.group_type <> ' . GROUP_HIDDEN . ' OR ug.user_id = ' . $user->data['user_id'] . ')
|
||||
ORDER BY g.group_name ASC';
|
||||
}
|
||||
$result = $db->sql_query($sql);
|
||||
// who is online borrowed from index.php (phpBB-3.0.B3)
|
||||
// if this gets changed (in index.php) and I don't notice it, please tell me)
|
||||
//
|
||||
|
||||
$legend = '';
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$colour_text = ($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . '"' : '';
|
||||
|
||||
if ($row['group_name'] == 'BOTS')
|
||||
// Grab group details for legend display
|
||||
if ($auth->acl_gets('a_group', 'a_groupadd', 'a_groupdel'))
|
||||
{
|
||||
$legend .= (($legend != '') ? ', ' : '') . '<span' . $colour_text . '>' . $user->lang['G_BOTS'] . '</span>';
|
||||
$sql = 'SELECT group_id, group_name, group_colour, group_type
|
||||
FROM ' . GROUPS_TABLE . '
|
||||
WHERE group_legend = 1
|
||||
ORDER BY group_name ASC';
|
||||
}
|
||||
else
|
||||
{
|
||||
$legend .= (($legend != '') ? ', ' : '') . '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&g=' . $row['group_id']) . '">' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '</a>';
|
||||
$sql = 'SELECT g.group_id, g.group_name, g.group_colour, g.group_type
|
||||
FROM ' . GROUPS_TABLE . ' g
|
||||
LEFT JOIN ' . USER_GROUP_TABLE . ' ug
|
||||
ON (
|
||||
g.group_id = ug.group_id
|
||||
AND ug.user_id = ' . $user->data['user_id'] . '
|
||||
AND ug.user_pending = 0
|
||||
)
|
||||
WHERE g.group_legend = 1
|
||||
AND (g.group_type <> ' . GROUP_HIDDEN . ' OR ug.user_id = ' . $user->data['user_id'] . ')
|
||||
ORDER BY g.group_name ASC';
|
||||
}
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
$legend = '';
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$colour_text = ($row['group_colour']) ? ' style="color:#' . $row['group_colour'] . '"' : '';
|
||||
|
||||
if ($row['group_name'] == 'BOTS')
|
||||
{
|
||||
$legend .= (($legend != '') ? ', ' : '') . '<span' . $colour_text . '>' . $user->lang['G_BOTS'] . '</span>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$legend .= (($legend != '') ? ', ' : '') . '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&g=' . $row['group_id']) . '">' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '</a>';
|
||||
}
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
//
|
||||
// users online list borrowed from includes/functions.php (phpBB-3.0.B3)
|
||||
// if this gets changed (in functions.php) and I don't notice it, please tell me)
|
||||
//
|
||||
$display_online_list = true;
|
||||
|
||||
// Get users online list ... if required
|
||||
$l_online_users = $online_userlist = $l_online_record = '';
|
||||
|
||||
if ($config['load_online'] && $config['load_online_time'] && $display_online_list)
|
||||
{
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'LEGEND' => $legend,
|
||||
));
|
||||
|
||||
if (!isset($template->filename['whois_online_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'whois_online_block' => 'portal/block/whois_online.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('whois_online_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
}
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
//
|
||||
// users online list borrowed from includes/functions.php (phpBB-3.0.B3)
|
||||
// if this gets changed (in functions.php) and I don't notice it, please tell me)
|
||||
//
|
||||
$display_online_list = true;
|
||||
|
||||
// Get users online list ... if required
|
||||
$l_online_users = $online_userlist = $l_online_record = '';
|
||||
|
||||
if ($config['load_online'] && $config['load_online_time'] && $display_online_list)
|
||||
{
|
||||
$portal_whois_show = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$portal_whois_show = false;
|
||||
}
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_ONLINE_PORTAL_LIST' => $portal_whois_show,
|
||||
'LEGEND' => $legend,
|
||||
));
|
||||
|
||||
?>
|
||||
@@ -69,9 +69,20 @@ foreach ( $words as $word )
|
||||
}
|
||||
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_WORDGRAPH' => true,
|
||||
'L_WORDGRAPH' => $user->lang['WORDGRAPH'],
|
||||
)
|
||||
));
|
||||
if (!isset($template->filename['wordgraph_block']))
|
||||
{
|
||||
$template->set_filenames(array(
|
||||
'wordgraph_block' => 'portal/block/wordgraph.html')
|
||||
);
|
||||
}
|
||||
|
||||
$block_temp = $template->assign_display('wordgraph_block');
|
||||
|
||||
$template->assign_block_vars('portal_column_'.$block_pos, array(
|
||||
'BLOCK_DATA' => $block_temp)
|
||||
);
|
||||
unset( $block_temp );
|
||||
|
||||
?>
|
||||
12
root/styles/prosilver/template/portal/block/forum_index.html
Normal file
12
root/styles/prosilver/template/portal/block/forum_index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!--version $Id: forum_index.html 296 2008-08-13 00:34:14Z icedcold $ //-->
|
||||
<!-- 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 -->
|
||||
|
||||
<!-- INCLUDE forumlist_body.html -->
|
||||
<br style="clear:both" />
|
||||
@@ -1,21 +1,19 @@
|
||||
<!--version $Id$ //-->
|
||||
<!-- IF S_DISPLAY_JUMPBOX -->
|
||||
<form method="post" id="jumpbox" action="{S_JUMPBOX_ACTION}" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
|
||||
<form method="post" id="jumpbox" action="{S_JUMPBOX_ACTION}" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
|
||||
|
||||
<!-- IF $CUSTOM_FIELDSET_CLASS -->
|
||||
<fieldset class="{$CUSTOM_FIELDSET_CLASS}">
|
||||
<!-- ELSE -->
|
||||
<fieldset class="jumpbox">
|
||||
<!-- ENDIF -->
|
||||
<label for="f" accesskey="j"><!-- IF S_IN_MCP and S_MERGE_SELECT -->{L_SELECT_TOPICS_FROM}<!-- ELSEIF S_IN_MCP -->{L_MODERATE_FORUM}<!-- ELSE -->{L_JUMP_TO}<!-- ENDIF -->:</label>
|
||||
<select name="f" id="f" onchange="if(this.options[this.selectedIndex].value != -1){ document.forms['jumpbox'].submit() }">
|
||||
<!-- BEGIN jumpbox_forums -->
|
||||
<!-- IF jumpbox_forums.S_FORUM_COUNT == 1 --><option value="-1">------------------</option><!-- ENDIF -->
|
||||
<option value="{jumpbox_forums.FORUM_ID}"{jumpbox_forums.SELECTED}><!-- BEGIN level --> <!-- END level -->{jumpbox_forums.FORUM_NAME}</option>
|
||||
<!-- END jumpbox_forums -->
|
||||
</select>
|
||||
<input type="submit" value="{L_GO}" class="button2" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- IF $CUSTOM_FIELDSET_CLASS -->
|
||||
<fieldset class="{$CUSTOM_FIELDSET_CLASS}">
|
||||
<!-- ELSE -->
|
||||
<fieldset class="jumpbox">
|
||||
<!-- ENDIF -->
|
||||
<label for="f" accesskey="j"><!-- IF S_IN_MCP and S_MERGE_SELECT -->{L_SELECT_TOPICS_FROM}<!-- ELSEIF S_IN_MCP -->{L_MODERATE_FORUM}<!-- ELSE -->{L_JUMP_TO}<!-- ENDIF -->:</label>
|
||||
<select name="f" id="f" onchange="if(this.options[this.selectedIndex].value != -1){ document.forms['jumpbox'].submit() }">
|
||||
<!-- BEGIN jumpbox_forums -->
|
||||
<!-- IF jumpbox_forums.S_FORUM_COUNT == 1 --><option value="-1">------------------</option><!-- ENDIF -->
|
||||
<option value="{jumpbox_forums.FORUM_ID}"{jumpbox_forums.SELECTED}><!-- BEGIN level --> <!-- END level -->{jumpbox_forums.FORUM_NAME}</option>
|
||||
<!-- END jumpbox_forums -->
|
||||
</select>
|
||||
<input type="submit" value="{L_GO}" class="button2" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<br />
|
||||
<!-- ENDIF -->
|
||||
@@ -7,50 +7,10 @@
|
||||
<!-- [+] left block area -->
|
||||
<td valign="top" style="width: {PORTAL_LEFT_COLUMN}px; padding-right:6px;">
|
||||
<br style="clear:both" />
|
||||
|
||||
<!-- IF S_DISPLAY_MAINMENU -->
|
||||
<!-- INCLUDE portal/block/main_menu.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
|
||||
<!-- INCLUDE portal/block/birthday_list.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_CLOCK -->
|
||||
<!-- INCLUDE portal/block/clock.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_PORTALSEARCH and S_DISPLAY_SEARCH -->
|
||||
<!-- INCLUDE portal/block/search.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_RANDOM_MEMBER -->
|
||||
<!-- INCLUDE portal/block/random_member.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_ATTACHMENTS -->
|
||||
<!-- INCLUDE portal/block/attachments.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_CUSTOM_SMALL -->
|
||||
<!-- INCLUDE portal/block/custom_small.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_STYLE_OPTIONS and S_DISPLAY_CHANGE_STYLE -->
|
||||
<!-- INCLUDE portal/block/change_style.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_TOP_POSTERS -->
|
||||
<!-- INCLUDE portal/block/top_poster.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_LATEST_MEMBERS -->
|
||||
<!-- INCLUDE portal/block/latest_members.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_LINK_US -->
|
||||
<!-- INCLUDE portal/block/link_us.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- BEGIN portal_column_left -->
|
||||
{portal_column_left.BLOCK_DATA}
|
||||
<!-- END portal_column_left -->
|
||||
|
||||
</td>
|
||||
<!-- [-] left block area -->
|
||||
@@ -60,78 +20,9 @@
|
||||
<td valign="top">
|
||||
<br style="clear:both" />
|
||||
|
||||
<!-- IF S_DISPLAY_GENERAL -->
|
||||
<!-- INCLUDE portal/block/general_block.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF U_RESTORE_PERMISSIONS and S_DISPLAY_MAINMENU -->
|
||||
<!-- INCLUDE portal/block/general_block.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_WELCOME -->
|
||||
<!-- IF S_DISPLAY_WELCOME_GUEST and S_USER_LOGGED_IN -->
|
||||
<!-- ELSE -->
|
||||
<!-- INCLUDE portal/block/welcome.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_CUSTOM_CENTER -->
|
||||
<!-- INCLUDE portal/block/custom_center.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_RECENT -->
|
||||
<!-- INCLUDE portal/block/recent.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_ANNOUNCEMENTS -->
|
||||
<!-- IF S_ANNOUNCE_COMPACT -->
|
||||
<!-- INCLUDE portal/block/announcements_compact.html -->
|
||||
<!-- ELSE -->
|
||||
<!-- INCLUDE portal/block/announcements.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_NEWS -->
|
||||
<!-- IF S_NEWS_COMPACT -->
|
||||
<!-- INCLUDE portal/block/news_compact.html -->
|
||||
<!-- ELSE -->
|
||||
<!-- INCLUDE portal/block/news.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_POLL -->
|
||||
<!-- INCLUDE portal/block/poll.html -->
|
||||
<!-- 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 -->
|
||||
|
||||
<!-- INCLUDE forumlist_body.html -->
|
||||
<br />
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_ONLINE_PORTAL_LIST and S_DISPLAY_ONLINE_LIST -->
|
||||
<!-- INCLUDE portal/block/whois_online.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_PAY_C -->
|
||||
<!-- INCLUDE portal/block/donation.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_WORDGRAPH -->
|
||||
<!-- INCLUDE portal/block/wordgraph.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_JUMPBOX -->
|
||||
<!-- INCLUDE portal/block/jumpbox.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- BEGIN portal_column_center -->
|
||||
{portal_column_center.BLOCK_DATA}
|
||||
<!-- END portal_column_center -->
|
||||
|
||||
<br /><div class="copyright">{L_PORTAL_COPY}</div>
|
||||
</td>
|
||||
@@ -142,46 +33,10 @@
|
||||
<!-- [+] right block area -->
|
||||
<td valign="top" style="width: {PORTAL_RIGHT_COLUMN}px; padding-left:6px;">
|
||||
<br style="clear:both" />
|
||||
|
||||
<!-- IF S_DISPLAY_USERMENU -->
|
||||
<!-- IF not S_USER_LOGGED_IN -->
|
||||
<!-- INCLUDE portal/block/login_box.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
|
||||
<!-- INCLUDE portal/block/user_menu.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN and S_ZEBRA_ENABLED and S_DISPLAY_FRIENDS -->
|
||||
<!-- INCLUDE portal/block/online_friends.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_ADVANCED_STAT -->
|
||||
<!-- INCLUDE portal/block/statistics.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_MINICAL -->
|
||||
<!-- INCLUDE portal/block/mini_calendar.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_LEADERS_EXT -->
|
||||
<!-- INCLUDE portal/block/leaders_ext.html -->
|
||||
<!-- ELSEIF S_DISPLAY_LEADERS -->
|
||||
<!-- INCLUDE portal/block/leaders.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_LAST_BOTS and S_LAST_VISITED_BOTS -->
|
||||
<!-- INCLUDE portal/block/latest_bots.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_LINKS -->
|
||||
<!-- INCLUDE portal/block/links.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_PAY_S -->
|
||||
<!-- INCLUDE portal/block/donation_small.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- BEGIN portal_column_right -->
|
||||
{portal_column_right.BLOCK_DATA}
|
||||
<!-- END portal_column_right -->
|
||||
|
||||
</td>
|
||||
<!-- [-] right block area -->
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<!--version $Id: forum_index.html 296 2008-08-13 00:34:14Z icedcold $ //-->
|
||||
<!-- 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" />
|
||||
@@ -1,5 +1,4 @@
|
||||
<!--version $Id$ //-->
|
||||
<!-- IF S_DISPLAY_JUMPBOX -->
|
||||
<form method="post" name="jumpbox" action="{S_JUMPBOX_ACTION}" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0" align="right">
|
||||
@@ -16,5 +15,4 @@
|
||||
</table>
|
||||
|
||||
</form>
|
||||
<br />
|
||||
<!-- ENDIF -->
|
||||
<br />
|
||||
@@ -40,49 +40,9 @@ small, .small {
|
||||
<!-- [+] left block area -->
|
||||
<td width="{PORTAL_LEFT_COLUMN}px" valign="top" style="padding-right:6px;">
|
||||
|
||||
<!-- IF S_DISPLAY_MAINMENU -->
|
||||
<!-- INCLUDE portal/block/main_menu.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
|
||||
<!-- INCLUDE portal/block/birthday_list.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_CLOCK -->
|
||||
<!-- INCLUDE portal/block/clock.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_PORTALSEARCH and S_DISPLAY_SEARCH -->
|
||||
<!-- INCLUDE portal/block/search.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_RANDOM_MEMBER -->
|
||||
<!-- INCLUDE portal/block/random_member.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_ATTACHMENTS -->
|
||||
<!-- INCLUDE portal/block/attachments.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_CUSTOM_SMALL -->
|
||||
<!-- INCLUDE portal/block/custom_small.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_STYLE_OPTIONS and S_DISPLAY_CHANGE_STYLE -->
|
||||
<!-- INCLUDE portal/block/change_style.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_TOP_POSTERS -->
|
||||
<!-- INCLUDE portal/block/top_poster.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_LATEST_MEMBERS -->
|
||||
<!-- INCLUDE portal/block/latest_members.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_LINK_US -->
|
||||
<!-- INCLUDE portal/block/link_us.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- BEGIN portal_column_left -->
|
||||
{portal_column_left.BLOCK_DATA}
|
||||
<!-- END portal_column_left -->
|
||||
|
||||
</td>
|
||||
<!-- [-] left block area -->
|
||||
@@ -91,82 +51,9 @@ small, .small {
|
||||
<!-- [+] center block area -->
|
||||
<td valign="top">
|
||||
|
||||
<!-- IF S_DISPLAY_GENERAL -->
|
||||
<!-- INCLUDE portal/block/general_block.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF U_RESTORE_PERMISSIONS and S_DISPLAY_MAINMENU -->
|
||||
<!-- INCLUDE portal/block/general_block.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_WELCOME -->
|
||||
<!-- IF S_DISPLAY_WELCOME_GUEST and S_USER_LOGGED_IN -->
|
||||
<!-- ELSE -->
|
||||
<!-- INCLUDE portal/block/welcome.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_CUSTOM_CENTER -->
|
||||
<!-- INCLUDE portal/block/custom_center.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_RECENT -->
|
||||
<!-- INCLUDE portal/block/recent.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_ANNOUNCEMENTS -->
|
||||
<!-- IF S_ANNOUNCE_COMPACT -->
|
||||
<!-- INCLUDE portal/block/announcements_compact.html -->
|
||||
<!-- ELSE -->
|
||||
<!-- INCLUDE portal/block/announcements.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_NEWS -->
|
||||
<!-- IF S_NEWS_COMPACT -->
|
||||
<!-- INCLUDE portal/block/news_compact.html -->
|
||||
<!-- ELSE -->
|
||||
<!-- INCLUDE portal/block/news.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_POLL -->
|
||||
<!-- INCLUDE portal/block/poll.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- 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 -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_PAY_C -->
|
||||
<!-- INCLUDE portal/block/donation.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_WORDGRAPH -->
|
||||
<!-- INCLUDE portal/block/wordgraph.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_JUMPBOX -->
|
||||
<!-- INCLUDE portal/block/jumpbox.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- BEGIN portal_column_center -->
|
||||
{portal_column_center.BLOCK_DATA}
|
||||
<!-- END portal_column_center -->
|
||||
|
||||
<br />
|
||||
<div class="copyright" align="center">{L_PORTAL_COPY}</div>
|
||||
@@ -178,45 +65,11 @@ small, .small {
|
||||
|
||||
<!-- [+] right block area -->
|
||||
<td width="{PORTAL_RIGHT_COLUMN}px" valign="top" style="padding-left:6px;">
|
||||
<!-- IF S_DISPLAY_USERMENU -->
|
||||
<!-- IF not S_USER_LOGGED_IN -->
|
||||
<!-- INCLUDE portal/block/login_box.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN -->
|
||||
<!-- INCLUDE portal/block/user_menu.html -->
|
||||
<!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN and S_ZEBRA_ENABLED and S_DISPLAY_FRIENDS -->
|
||||
<!-- INCLUDE portal/block/online_friends.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_ADVANCED_STAT -->
|
||||
<!-- INCLUDE portal/block/statistics.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_MINICAL -->
|
||||
<!-- INCLUDE portal/block/mini_calendar.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_LEADERS_EXT -->
|
||||
<!-- INCLUDE portal/block/leaders_ext.html -->
|
||||
<!-- ELSEIF S_DISPLAY_LEADERS -->
|
||||
<!-- INCLUDE portal/block/leaders.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_LAST_BOTS and S_LAST_VISITED_BOTS -->
|
||||
<!-- INCLUDE portal/block/latest_bots.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_LINKS -->
|
||||
<!-- INCLUDE portal/block/links.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- IF S_DISPLAY_PAY_S -->
|
||||
<!-- INCLUDE portal/block/donation_small.html -->
|
||||
<!-- ENDIF -->
|
||||
|
||||
<!-- BEGIN portal_column_right -->
|
||||
{portal_column_right.BLOCK_DATA}
|
||||
<!-- END portal_column_right -->
|
||||
|
||||
</td>
|
||||
<!-- [-] right block area -->
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user