Deleted unnecessary block files;

Added leaders module; 
Added files for user_menu module;
This commit is contained in:
Marc Alexander
2010-04-08 14:30:41 +00:00
parent 5bcfe37930
commit f90784a68e
26 changed files with 572 additions and 340 deletions

View File

@@ -45,7 +45,7 @@ $lang = array_merge($lang, array(
'JUMP_NEWEST' => 'Zum letzten Beitrag springen',
'JUMP_FIRST' => 'Zum ersten Beitrag springen',
'JUMP_TO_POST' => 'Rufe den Beitrag auf',
'BACK' => 'Zur<EFBFBD>ck',
'BACK' => 'Zurück',
));
?>

View File

@@ -0,0 +1,39 @@
<?php
/**
* @package Portal - Leaders
* @version $Id$
* @copyright (c) 2009, 2010 Board3 Portal Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'NO_ADMINISTRATORS_P' => 'Keine Administratoren',
'NO_MODERATORS_P' => 'Keine Moderatoren',
'NO_GROUPS_P' => 'Keine Gruppen',
));
?>

View File

@@ -0,0 +1,41 @@
<?php
/**
* @package Portal - User Menu
* @version $Id$
* @copyright (c) 2009, 2010 Board3 Portal Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'USER_MENU' => 'Benutzer-Menü',
'UM_LOG_ME_IN' => 'Mich bei jedem Besuch automatisch anmelden',
'UM_HIDE_ME' => 'Meinen Online-Status während dieser Sitzung verbergen',
'UM_MAIN_SUBSCRIBED' => 'Benachrichtigungen verwalten',
'UM_BOOKMARKS' => 'Lesezeichen verwalten',
));
?>

View File

@@ -0,0 +1,39 @@
<?php
/**
* @package Portal - Leaders
* @version $Id$
* @copyright (c) 2009, 2010 Board3 Portal Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'NO_ADMINISTRATORS_P' => 'No Administrators',
'NO_MODERATORS_P' => 'No Moderators',
'NO_GROUPS_P' => 'No Groups',
));
?>

View File

@@ -0,0 +1,41 @@
<?php
/**
* @package Portal - User Menu
* @version $Id$
* @copyright (c) 2009, 2010 Board3 Portal Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'USER_MENU' => 'User menu',
'UM_LOG_ME_IN' => 'Remember me',
'UM_HIDE_ME' => 'Hide me',
'UM_MAIN_SUBSCRIBED'=> 'Subscribed',
'UM_BOOKMARKS' => 'Bookmarks',
));
?>

View File

@@ -0,0 +1,218 @@
<?php
/**
* @package Portal - User Menu
* @version $Id$
* @copyright (c) 2009, 2010 Board3 Portal Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* @package Modulname
*/
class portal_leaders_module
{
/**
* Allowed columns: Just sum up your options (Exp: left + right = 10)
* top 1
* left 2
* center 4
* right 8
* bottom 16
*/
var $columns = 10;
/**
* Default modulename
*/
var $name = 'THE_TEAM';
/**
* Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/"
*/
var $image_src = 'portal_team.png';
/**
* module-language file
* file must be in "language/{$user->lang}/mods/portal/"
*/
var $language = 'portal_leaders_module';
function get_template_center($module_id)
{
global $config, $template;
$template->assign_vars(array(
'EXAMPLE' => $config['portal_configname'],
));
return 'modulename_center.html';
}
function get_template_side($module_id)
{
global $config, $template, $user, $auth, $db;
// Display a listing of board admins, moderators
$user->add_lang('groups');
$user_ary = $auth->acl_get_list(false, array('a_', 'm_'), false);
$admin_id_ary = $mod_id_ary = $forum_id_ary = array();
foreach ($user_ary as $forum_id => $forum_ary)
{
foreach ($forum_ary as $auth_option => $id_ary)
{
if (!$forum_id && $auth_option == 'a_')
{
$admin_id_ary = array_merge($admin_id_ary, $id_ary);
continue;
}
else
{
$mod_id_ary = array_merge($mod_id_ary, $id_ary);
}
if ($forum_id)
{
foreach ($id_ary as $id)
{
$forum_id_ary[$id][] = $forum_id;
}
}
}
}
$admin_id_ary = array_unique($admin_id_ary);
$mod_id_ary = array_unique($mod_id_ary);
// Admin group id...
$sql = 'SELECT group_id
FROM ' . GROUPS_TABLE . "
WHERE group_name = 'ADMINISTRATORS'";
$result = $db->sql_query($sql);
$admin_group_id = (int) $db->sql_fetchfield('group_id');
$db->sql_freeresult($result);
$sql = 'SELECT forum_id, forum_name
FROM ' . FORUMS_TABLE . '
WHERE forum_type = ' . FORUM_POST;
$result = $db->sql_query($sql);
$forums = array();
while ($row = $db->sql_fetchrow($result))
{
$forums[$row['forum_id']] = $row['forum_name'];
}
$db->sql_freeresult($result);
$sql = $db->sql_build_query('SELECT', array(
'SELECT' => 'u.user_id, u.group_id as default_group, u.username, u.user_colour, u.user_allow_pm, g.group_id, g.group_name, g.group_colour, g.group_type, ug.user_id as ug_user_id',
'FROM' => array(
USERS_TABLE => 'u',
GROUPS_TABLE => 'g'
),
'LEFT_JOIN' => array(
array(
'FROM' => array(USER_GROUP_TABLE => 'ug'),
'ON' => 'ug.group_id = g.group_id AND ug.user_pending = 0 AND ug.user_id = ' . $user->data['user_id']
)),
'WHERE' => $db->sql_in_set('u.user_id', array_unique(array_merge($admin_id_ary, $mod_id_ary))) . '
AND u.group_id = g.group_id',
'ORDER_BY' => 'g.group_name ASC, u.username_clean ASC'
));
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$which_row = (in_array($row['user_id'], $admin_id_ary)) ? 'admin' : 'mod';
// We sort out admins not having the admin group as default
// The drawback is that only those admins are displayed which are within
// the special group 'Administrators' and also having it assigned as their default group.
// - might change
if ($which_row == 'admin' && $row['default_group'] != $admin_group_id)
{
// Remove from admin_id_ary, because the user may be a mod instead
unset($admin_id_ary[array_search($row['user_id'], $admin_id_ary)]);
if (!in_array($row['user_id'], $mod_id_ary))
{
continue;
}
else
{
$which_row = 'mod';
}
}
if ($row['group_type'] == GROUP_HIDDEN && !$auth->acl_gets('a_group', 'a_groupadd', 'a_groupdel') && $row['ug_user_id'] != $user->data['user_id'])
{
$group_name = $user->lang['GROUP_UNDISCLOSED'];
$u_group = '';
}
else
{
$group_name = ($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name'];
$u_group = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&amp;g=' . $row['group_id']);
}
$template->assign_block_vars($which_row, array(
'USER_ID' => $row['user_id'],
'GROUP_NAME' => $group_name,
'GROUP_COLOR' => $row['group_colour'],
'U_GROUP' => $u_group,
'USERNAME_FULL' => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),
'USERNAME' => get_username_string('username', $row['user_id'], $row['username'], $row['user_colour']),
'USER_COLOR' => get_username_string('colour', $row['user_id'], $row['username'], $row['user_colour']),
'U_VIEW_PROFILE' => get_username_string('profile', $row['user_id'], $row['username'], $row['user_colour']),
));
}
$db->sql_freeresult($result);
return 'leaders_side.html';
}
function get_template_acp($module_id)
{
return array(
'title' => 'ACP_CONFIG_MODULENAME',
'vars' => array(
/*'legend1' => 'ACP_MODULENAME_CONFIGLEGEND',
'portal_configname' => array('lang' => 'MODULENAME_CONFIGNAME', 'validate' => 'string', 'type' => 'text:10:200', 'explain' => false),
'portal_configname2' => array('lang' => 'MODULENAME_CONFIGNAME2', 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),*/
),
);
}
/**
* API functions
*/
function install($module_id)
{
// nothing
return true;
}
function uninstall($module_id)
{
global $db;
// nothing
return $db->sql_query($sql);
}
}
?>

View File

@@ -0,0 +1,177 @@
<?php
/**
* @package Portal - User Menu
* @version $Id$
* @copyright (c) 2009, 2010 Board3 Portal Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* @package Modulname
*/
class portal_user_menu_module
{
/**
* Allowed columns: Just sum up your options (Exp: left + right = 10)
* top 1
* left 2
* center 4
* right 8
* bottom 16
*/
var $columns = 10;
/**
* Default modulename
*/
var $name = 'USER_MENU';
/**
* Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/"
*/
var $image_src = 'portal_user.png';
/**
* module-language file
* file must be in "language/{$user->lang}/mods/portal/"
*/
var $language = 'portal_user_menu_module';
function get_template_center($module_id)
{
global $config, $template;
$template->assign_vars(array(
'EXAMPLE' => $config['portal_configname'],
));
return 'modulename_center.html';
}
function get_template_side($module_id)
{
global $config, $template;
//
// + new posts since last visit & you post number
//
if ($user->data['is_registered'])
{
$ex_fid_ary = array_unique(array_merge(array_keys($auth->acl_getf('!f_read', true)), array_keys($auth->acl_getf('!f_search', true))));
if ($auth->acl_get('m_approve'))
{
$m_approve_fid_ary = array(-1);
$m_approve_fid_sql = '';
}
else if ($auth->acl_getf_global('m_approve'))
{
$m_approve_fid_ary = array_diff(array_keys($auth->acl_getf('!m_approve', true)), $ex_fid_ary);
$m_approve_fid_sql = ' AND (p.post_approved = 1' . ((sizeof($m_approve_fid_ary)) ? ' OR ' . $db->sql_in_set('p.forum_id', $m_approve_fid_ary, true) : '') . ')';
}
else
{
$m_approve_fid_ary = array();
$m_approve_fid_sql = ' AND p.post_approved = 1';
}
$sql = 'SELECT COUNT(distinct t.topic_id) as total
FROM ' . TOPICS_TABLE . ' t
WHERE t.topic_last_post_time > ' . $user->data['user_lastvisit'] . '
AND t.topic_moved_id = 0
' . str_replace(array('p.', 'post_'), array('t.', 'topic_'), $m_approve_fid_sql) . '
' . ((sizeof($ex_fid_ary)) ? 'AND ' . $db->sql_in_set('t.forum_id', $ex_fid_ary, true) : '');
$result = $db->sql_query($sql);
$new_posts_count = (int) $db->sql_fetchfield('total');
$db->sql_freeresult($result);
// unread posts
$sql_where = 'AND t.topic_moved_id = 0
' . str_replace(array('p.', 'post_'), array('t.', 'topic_'), $m_approve_fid_sql) . '
' . ((sizeof($ex_fid_ary)) ? 'AND ' . $db->sql_in_set('t.forum_id', $ex_fid_ary, true) : '');
$unread_list = array();
$unread_list = get_unread_topics($user->data['user_id'], $sql_where, 'ORDER BY t.topic_id DESC');
$unread_posts_count = sizeof($unread_list);
}
//
// - new posts since last visit & you post number
//
// Get user avatar and rank
$user_id = $user->data['user_id'];
$username = $user->data['username'];
$colour = $user->data['user_colour'];
$avatar_img = get_user_avatar($user->data['user_avatar'], $user->data['user_avatar_type'], $user->data['user_avatar_width'], $user->data['user_avatar_height']);
$rank_title = $rank_img = '';
get_user_rank($user->data['user_rank'], $user->data['user_posts'], $rank_title, $rank_img, $rank_img_src);
// Assign specific vars
$template->assign_vars(array(
'L_NEW_POSTS' => $user->lang['SEARCH_NEW'] . '&nbsp;(' . $new_posts_count . ')',
'L_SELF_POSTS' => $user->lang['SEARCH_SELF'] . '&nbsp;(' . $user->data['user_posts'] . ')',
'L_UNREAD_POSTS'=> $user->lang['SEARCH_UNREAD'] . '&nbsp;(' . $unread_posts_count . ')',
'B3P_AVATAR_IMG' => $avatar_img,
'B3P_RANK_TITLE' => $rank_title,
'B3P_RANK_IMG' => $rank_img,
'RANK_IMG_SRC' => $rank_img_src,
'USERNAME_FULL' => get_username_string('full', $user_id, $username, $colour),
'B3P_USERNAME' => get_username_string('username', $user_id, $username, $colour),
'B3P_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_UNREAD_POSTS' => append_sid("{$phpbb_root_path}search.$phpEx", 'search_id=unreadposts'),
'U_UM_BOOKMARKS' => ($config['allow_bookmarks']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=main&amp;mode=bookmarks') : '',
'U_UM_MAIN_SUBSCRIBED' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=main&amp;mode=subscribed'),
'U_MCP' => ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&amp;mode=front', true, $user->session_id) : '',
));
return 'user_menu_side.html';
}
function get_template_acp($module_id)
{
return array(
'title' => 'ACP_CONFIG_MODULENAME',
'vars' => array(
/*'legend1' => 'ACP_MODULENAME_CONFIGLEGEND',
'portal_configname' => array('lang' => 'MODULENAME_CONFIGNAME', 'validate' => 'string', 'type' => 'text:10:200', 'explain' => false),
'portal_configname2' => array('lang' => 'MODULENAME_CONFIGNAME2', 'validate' => 'int', 'type' => 'text:3:3', 'explain' => true),*/
),
);
}
/**
* API functions
*/
function install($module_id)
{
// nothing
return true;
}
function uninstall($module_id)
{
global $db;
// nothing
return $db->sql_query($sql);
}
}
?>

View File

@@ -1,12 +0,0 @@
<!--version $Id$ //-->
<!-- IF BIRTHDAY_LIST -->
<strong>{L_CONGRATULATIONS}:<br /> {BIRTHDAY_LIST}</strong>
<!-- ELSE -->
{L_NO_BIRTHDAYS}
<!-- ENDIF -->
<h3>{L_BIRTHDAYS_AHEAD}</h3>
<!-- IF BIRTHDAYS_AHEAD_LIST -->
<strong>{BIRTHDAYS_AHEAD_LIST}</strong>
<!-- ELSE -->
{L_NO_BIRTHDAYS_AHEAD}
<!-- ENDIF -->

View File

@@ -1,7 +0,0 @@
<!--version $Id$ //-->
{$LR_BLOCK_H_L}<img src="{T_THEME_PATH}/images/portal/portal_style.png" width="16" height="16" alt="" />&nbsp;{L_BOARD_STYLE}{$LR_BLOCK_H_R}
<select style="width: 150px;" name="demo" id="demo" onchange="document.location.href = this.options[this.selectedIndex].value;">
{STYLE_SELECT}
</select>
<br />
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}

View File

@@ -1,8 +0,0 @@
<!--version $Id$ //-->
<br />
<div style="text-align: center;">
<object type="application/x-shockwave-flash" data="{T_IMAGES_PATH}portal/board3clock.swf" width="140" height="140">
<param name="wmode" value="transparent" />
<param name="movie" value="{T_IMAGES_PATH}portal/board3clock.swf" />
</object>
</div>

View File

@@ -1,39 +0,0 @@
<!--version $Id$ //-->
<strong>{SITENAME}</strong> {L_DONATION_TEXT}
<br />
<div style="float: left; padding: 5px 5px 5px 5px"><img src="{T_IMAGES_PATH}portal/paypal.gif" alt="" /></div>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="padding-top:15px">
<div>
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="{PAY_ACC}" />
<input type="hidden" name="item_name" value="{L_PAY_ITEM}" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="no_shipping" value="2" />
<input type="hidden" name="bn" value="PP-DonationsBF" />
<input type="hidden" name="tax" value="0" />
<input type="text" tabindex="11" name="amount" size="10" maxlength="6" value="" class="inputbox autowidth" title="{L_PAY_MSG}" />
<select name="currency_code" class="autowidth">
<option value="USD">{L_USD}</option>
<option value="AUD">{L_AUD}</option>
<option value="CAD">{L_CAD}</option>
<option value="CZK">{L_CZK}</option>
<option value="DKK">{L_DKK}</option>
<option value="EUR" selected="selected">{L_EUR}</option>
<option value="HKD">{L_HKD}</option>
<option value="HUF">{L_HUF}</option>
<option value="NZD">{L_NZD}</option>
<option value="NOK">{L_NOK}</option>
<option value="PLN">{L_PLN}</option>
<option value="GBP">{L_GBP}</option>
<option value="SGD">{L_SGD}</option>
<option value="SEK">{L_SEK}</option>
<option value="CHF">{L_CHF}</option>
<option value="JPY">{L_JPY}</option>
<option value="MXN">{L_MXN}</option>
<option value="ILS">{L_ILS}</option>
</select>
<input type="submit" name="submit" value="{L_DONATION}" class="button1" />
</div>
</form>
<br />
<strong>{L_PAY_MSG}</strong>

View File

@@ -1,12 +0,0 @@
<!--version $Id$ //-->
{$C_BLOCK_H_L}<dt><!-- IF S_DISPLAY_GENERAL -->{L_PORTAL_INSTALL}<!-- ELSE -->{L_INFORMATION}<!-- ENDIF --></dt>{$C_BLOCK_H_R}
<ul class="topiclist bg1">
<li><dl>
<dd style="border-left: 0px">
<div style="margin: 0 0 0 5px">
<!-- IF S_DISPLAY_GENERAL -->{L_PORTAL_INSTALL_TEXT}<!-- ELSE -->&raquo; <a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a><!-- ENDIF -->
</div>
</dd>
</dl></li>
</ul>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}

View File

@@ -1,7 +0,0 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>

View File

@@ -1,21 +0,0 @@
<!--version $Id$ //-->
<!-- IF S_DISPLAY_JUMPBOX -->
<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 -->&nbsp; &nbsp;<!-- END level -->{jumpbox_forums.FORUM_NAME}</option>
<!-- END jumpbox_forums -->
</select>
<input type="submit" value="{L_GO}" class="button2" />
</fieldset>
</form>
<br />
<!-- ENDIF -->

View File

@@ -1,5 +0,0 @@
<!--version $Id$ //-->
<!-- BEGIN last_visited_bots -->
<span class="genmed">{last_visited_bots.BOT_NAME}</span> <br /> <span class="gensmall">{last_visited_bots.LAST_VISIT_DATE}</span>
<!-- IF not last_visited_bots.S_LAST_ROW --><hr /><!-- ENDIF -->
<!-- END last_visited_bots -->

View File

@@ -1,7 +0,0 @@
<!--version $Id$ //-->
<span style="float:left;"><strong>{L_USERNAME}</strong></span>
<span style="float:right;padding-right:10px;"><strong>{L_JOINED}</strong></span><br style="clear:both" />
<!-- BEGIN latest_members -->
<span style="float:left;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="float:left; padding-left:5px; padding-top:2px;">{latest_members.USERNAME_FULL}</span>
<span style="float:right;padding-right:10px; padding-top:2px;">{latest_members.JOINED}</span><br style="clear:both" />
<!-- END latest_members -->

View File

@@ -1,12 +0,0 @@
<!--version $Id$ //-->
<!-- IF .links -->
<div class="portal-navigation">
<ul>
<!-- BEGIN links -->
<!-- IF links.S_IS_CAT --><div class="menutitle">{links.TITLE}</div><!-- ELSE --><li><a href="{links.URL}">{links.TITLE}</a></li><!-- ENDIF -->
<!-- END links -->
</ul>
</div>
<!-- ELSE -->
<span style="float:left;" class="gensmall"><strong>{L_NO_LINKS}</strong></span><br />
<!-- ENDIF -->

View File

@@ -1,31 +0,0 @@
<!--version $Id$ //-->
{$LR_BLOCK_H_L}<img src="{T_THEME_PATH}/images/portal/portal_minical.png" width="16" height="16" alt="" />&nbsp;{L_MINI_CALENDAR}{$LR_BLOCK_H_R}
<table width="100%" cellspacing="1">
<tr>
<td align="left" colspan="2">{U_PREV_MONTH}</td>
<td colspan="3" align="center"><span class="genmed">{L_MINI_CAL_MONTH}</span></td>
<td align="right" colspan="2">{U_NEXT_MONTH}</td>
</tr>
<tr>
<!-- IF S_SUNDAY_FIRST -->
<td style="width: 14%;"><span class="gensmall" style="font-weight: bold">{L_MINI_CAL_SUN}</span></td>
<!-- ENDIF -->
<td style="width: 14%;"><span class="gensmall" style="font-weight: bold">{L_MINI_CAL_MON}</span></td>
<td style="width: 14%;"><span class="gensmall" style="font-weight: bold">{L_MINI_CAL_TUE}</span></td>
<td style="width: 14%;"><span class="gensmall" style="font-weight: bold">{L_MINI_CAL_WED}</span></td>
<td style="width: 14%;"><span class="gensmall" style="font-weight: bold">{L_MINI_CAL_THU}</span></td>
<td style="width: 14%;"><span class="gensmall" style="font-weight: bold">{L_MINI_CAL_FRI}</span></td>
<td style="width: 14%;"><span class="gensmall" style="font-weight: bold">{L_MINI_CAL_SAT}</span></td>
<!-- IF not S_SUNDAY_FIRST -->
<td style="width: 14%;"><span class="gensmall" style="font-weight: bold">{L_MINI_CAL_SUN}</span></td>
<!-- ENDIF -->
</tr>
<!-- BEGIN mini_cal_row -->
<tr>
<!-- BEGIN mini_cal_days -->
<td class="row1" align="center"><span class="gensmall">{mini_cal_row.mini_cal_days.MINI_CAL_DAY}</span></td>
<!-- END mini_cal_days -->
</tr>
<!-- END mini_cal_row -->
</table>
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}

View File

@@ -1,3 +0,0 @@
<!--version $Id$ //-->
{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF -->

View File

@@ -1,15 +0,0 @@
<!--version $Id$ //-->
<strong style="color:green">{L_FRIENDS_ONLINE}</strong><br />
<!-- BEGIN friends_online -->
<span style="float:left;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="float:left; padding-left:5px; padding-top:2px;">{friends_online.USERNAME_FULL}</span><br style="clear:both" />
<!-- BEGINELSE -->
<span style="float:left; padding-left:5px; padding-top:2px;">{L_NO_FRIENDS_ONLINE}</span>
<br style="clear:both" />
<!-- END friends_online -->
<br style="clear:both" />
<strong style="color:red">{L_FRIENDS_OFFLINE}</strong><br />
<!-- BEGIN friends_offline -->
<span style="float:left;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="float:left; padding-left:5px; padding-top:2px;">{friends_offline.USERNAME_FULL}</span><br style="clear:both" />
<!-- BEGINELSE -->
<span style="float:left; padding-left:5px; padding-top:2px;">{L_NO_FRIENDS_OFFLINE}</span>
<!-- END friends_offline -->

View File

@@ -1,20 +0,0 @@
<!--version $Id$ //-->
<!-- BEGIN random_member -->
<div style="text-align: center;"><span style="font-size:12px; padding-top:1px; margin-bottom: 5px;">{random_member.USERNAME_FULL}</span><br style="clear:both" />
<!-- IF random_member.AVATAR_IMG --><a href="{random_member.U_VIEW_PROFILE}">{random_member.AVATAR_IMG}</a><br style="clear:both" /><!-- ENDIF -->
<!-- IF random_member.RANK_TITLE --><span class="gensmall">{random_member.RANK_TITLE}</span><br style="clear:both" /><!-- ENDIF -->
<!-- IF random_member.RANK_IMG -->{random_member.RANK_IMG}<br style="clear:both" /><!-- ENDIF -->
</div>
<br style="clear:both" />
<span style="float:left;"><strong>{L_RND_JOIN}:</strong></span><span style="float:right;padding-right:10px;">{random_member.JOINED}</span><br style="clear:both" />
<span style="float:left;"><strong>{L_RND_POSTS}:</strong></span><span style="float:right;padding-right:10px;">{random_member.USER_POSTS}</span><br style="clear:both" />
<!-- IF random_member.USER_OCC -->
<span style="float:left;"><strong>{L_RND_OCC}:</strong></span><span style="float:right;padding-right:10px;"> &nbsp; {random_member.USER_OCC}</span><br style="clear:both" />
<!-- ENDIF -->
<!-- IF random_member.USER_FROM -->
<span style="float:left;"><strong>{L_RND_FROM}:</strong></span><span style="float:right;padding-right:10px;"> &nbsp; {random_member.USER_FROM}</span><br style="clear:both" />
<!-- ENDIF -->
<!-- IF random_member.U_WWW -->
<span style="float:left;"><a href="{random_member.U_WWW}" title="{random_member.U_WWW}"><strong>{L_RND_WWW}</strong></a></span><br style="clear:both" />
<!-- ENDIF -->
<!-- END random_member -->

View File

@@ -1,74 +0,0 @@
<!--version $Id$ //-->
<script type="text/javascript">
<!--
function qsearch_onSubmit()
{
qs_enginename = document.getElementById('qsearch_select').value;
qs_keywords = document.getElementById('searchfield').value;
switch( qs_enginename )
{
case 'site':
break;
case 'author':
window.open('search.php?author=' + qs_keywords, '_self', '');
return false;
case 'wikipedia':
window.open('http://en.wikipedia.org/wiki/Spezial:Search?search=' + qs_keywords, '_wikipedia', '');
return false;
case 'google':
window.open('http://www.google.com/search?q=' + qs_keywords, '_google', '');
return false;
case 'yahoo':
window.open('http://search.yahoo.com/search?p=' + qs_keywords, '_yahoo', '');
return false;
case 'msnlive':
window.open('http://search.live.com/results.aspx?q=' + qs_keywords, '_msnlive', '');
return false;
case 'altavista':
window.open('http://www.altavista.com/web/results?itag=ody&q=' + qs_keywords + '&kgs=0&kls=0', '_altavista', '');
return false;
case 'lycos':
window.open('http://search.lycos.com/?query=' + qs_keywords, '_lycos', '');
return false;
case 'odp':
window.open('http://search.dmoz.org/cgi-bin/search?search=' + qs_keywords, '_odp', '');
return false;
default:
if( (i = qsearch_findEngine(qs_enginename)) >= 0 )
{
window.open(qsearch_engines[i].url + qs_keywords, '_blank', '');
return false;
}
break;
}
return true;
}
//-->
</script>
<form id="qsearch_form" method="post" action="{U_SEARCH}" onsubmit="return qsearch_onSubmit();">
<p>
<input type="text" tabindex="6" name="keywords" id="searchfield" size="22" maxlength="40" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
</p>
<p>
<select id="qsearch_select" tabindex="7">
<optgroup label="{L_SH_SITE}">
<option value="site">{L_SH_POSTS}</option>
<option value="author">{L_SH_AUTHOR}</option>
</optgroup>
<optgroup label="{L_SH_ENGINE}">
<option value="wikipedia">Wikipedia</option>
<option value="google">Google</option>
<option value="yahoo">Yahoo</option>
<option value="msnlive">Msnlive</option>
<option value="altavista">Altavista</option>
<option value="lycos">Lycos</option>
<option value="odp">Open directory</option>
</optgroup>
</select>
<input type="hidden" name="search_fields" value="all" />
<input type="hidden" name="show_results" value="topics" />
<input type="submit" value="{L_SH}" class="button2" tabindex="8" />
</p>
</form>
<p><a href="{U_SEARCH}">{L_SH_ADV}</a></p>

View File

@@ -1,19 +0,0 @@
<!--version $Id$ //-->
<strong>{L_ST_TOP}</strong><br />
{TOTAL_POSTS}<br />
{TOTAL_TOPICS}<br />
{L_ST_TOP_ANNS} <strong>{S_ANN}</strong><br />
{L_ST_TOP_STICKYS} <strong>{S_SCT}</strong><br />
{L_ST_TOT_ATTACH} <strong>{S_TOT_ATTACH}</strong><br />
<hr class="dashed" />
{TOPICS_PER_DAY}<br />
{POSTS_PER_DAY}<br />
{USERS_PER_DAY}<br />
{TOPICS_PER_USER}<br />
{POSTS_PER_USER}<br />
{POSTS_PER_TOPIC}<br />
<hr class="dashed" />
{TOTAL_USERS}<br />
{NEWEST_USER}

View File

@@ -1,11 +0,0 @@
<!--version $Id$ //-->
<!-- IF .top_poster -->
{$LR_BLOCK_H_L}<img src="{T_THEME_PATH}/images/portal/portal_top_poster.png" width="16" height="16" alt="" />&nbsp;{L_TOP_POSTER}{$LR_BLOCK_H_R}
<span style="float:left;"><strong>{L_USERNAME}</strong></span>
<span style="float:right;padding-right:10px;"><strong>{L_POSTS}</strong></span><br style="clear:both" />
<!-- BEGIN top_poster -->
<span style="float:left;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="float:left; padding-left:5px; padding-top:2px;">{top_poster.USERNAME_FULL}</span>
<span style="float:right;padding-right:10px; padding-top:2px;"><a href="{top_poster.S_SEARCH_ACTION}">{top_poster.POSTER_POSTS}</a></span><br style="clear:both" />
<!-- END top_poster -->
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}
<!-- ENDIF -->

View File

@@ -1,36 +0,0 @@
<!--version $Id$ //-->
<div style="text-align: center;">
<a href="{U_VIEW_PROFILE}"><!-- IF USER_COLOR --><span style="color: {USER_COLOR}; font-weight: bold;"><!-- ELSE --><span><!-- ENDIF -->{USERNAME}</span></a><br />
<!-- IF AVATAR_IMG -->
<a href="{U_PROFILE}">{AVATAR_IMG}</a>
<!-- ELSEIF $NO_AVATAR_IMG -->
<a href="{U_PROFILE}"><img src="{T_THEME_PATH}{$NO_AVATAR_IMG}" alt="" /></a>
<!-- ENDIF -->
<!-- IF RANK_TITLE --><br /><span class="gensmall">{RANK_TITLE}</span><!-- ENDIF -->
<!-- IF RANK_IMG --><br />{RANK_IMG}<!-- ENDIF -->
</div>
<hr class="dashed" />
<div class="portal-navigation">
<div class="menutitle">{L_M_MENU}</div>
<ul>
<!-- IF S_DISPLAY_SEARCH -->
<li><a href="{U_NEW_POSTS}">{L_NEW_POSTS}</a></li>
<li><a href="{U_SELF_POSTS}">{L_SELF_POSTS}</a></li>
<!-- ENDIF -->
<!-- IF U_UM_BOOKMARKS -->
<li><a href="{U_UM_BOOKMARKS}">{L_UM_BOOKMARKS}</a></li>
<!-- ENDIF -->
<li><a href="{U_UM_MAIN_SUBSCRIBED}">{L_UM_MAIN_SUBSCRIBED}</a></li>
<!-- IF S_DISPLAY_PM -->
<li><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a></li>
<!-- ENDIF -->
<li><a href="{U_PROFILE}">{L_PROFILE}</a></li>
<!-- IF U_MCP -->
<li><a href="{U_MCP}">{L_MCP}</a></li>
<!-- ENDIF -->
<!-- IF U_ACP -->
<li><a href="{U_ACP}">{L_M_ACP}</a></li>
<!-- ENDIF -->
<li><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></li>
</ul>
</div>

View File

@@ -0,0 +1,16 @@
<!--version $Id$ //-->
{$LR_BLOCK_H_L}<!-- IF $S_BLOCK_ICON --><img src="{T_THEME_PATH}/images/portal/portal_team.png" width="16" height="16" alt="" />&nbsp;<!-- ENDIF -->{L_THE_TEAM}{$LR_BLOCK_H_R}
<strong>{L_ADMINISTRATORS}</strong><br />
<!-- BEGIN admin -->
<span style="float:left;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="float:left; padding-left:5px; padding-top:2px;"><strong>{admin.USERNAME_FULL}</strong></span><br style="clear:both" />
<!-- BEGINELSE -->
{L_NO_ADMINISTRATORS_P}<br /><br />
<!-- END admin -->
<br style="clear:both" />
<strong>{L_MODERATORS}</strong><br />
<!-- BEGIN mod -->
<span style="float:left;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="float:left; padding-left:5px; padding-top:2px;"><strong>{mod.USERNAME_FULL}</strong></span><br style="clear:both" />
<!-- BEGINELSE -->
{L_NO_MODERATORS_P}
<!-- END mod -->
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}