Шаблон Taurus для TorrentPier 2.1.5
Он не полный, по мере возможности буду адаптировать
Он не полный, по мере возможности буду адаптировать
- Инструкция по установке
-
#######################################
viewforum.php
#######################################
Найти
$s_display_order = ' '. $lang['SORT_BY'] .': '. $sort_list .' '. $order_list .' ';
Заменить на
$s_display_order = $sort_list;
$s_display_order1 = $order_list;
Найти
'S_DISPLAY_ORDER' => $s_display_order,
Ниже добавить
'S_DISPLAY_ORDER1' => $s_display_order1,
#######################################
functions.php
#######################################
найти
function set_die_append_msg ($forum_id = null, $topic_id = null, $group_id = null)
{
global $lang, $template;
$msg = '';
$msg .= ($topic_id) ? '<p class="mrg_10"><a href="'. TOPIC_URL . $topic_id .'">'. $lang['TOPIC_RETURN'] .'</a></p>' : '';
$msg .= ($forum_id) ? '<p class="mrg_10"><a href="'. FORUM_URL . $forum_id .'">'. $lang['FORUM_RETURN'] .'</a></p>' : '';
$msg .= ($group_id) ? '<p class="mrg_10"><a href="'. GROUP_URL . $group_id .'">'. $lang['GROUP_RETURN'] .'</a></p>' : '';
$msg .= '<p class="mrg_10"><a href="index.php">'. $lang['INDEX_RETURN'] .'</a></p>';
$template->assign_var('BB_DIE_APPEND_MSG', $msg);
}
заменить на
function set_die_append_msg ($forum_id = null, $topic_id = null, $group_id = null)
{
global $lang, $template;
$msg = '';
$msg .= ($topic_id) ? '<p class="mrg_10"><a href="'. TOPIC_URL . $topic_id .'"><span class="label label-success">'. $lang['TOPIC_RETURN'] .'</span></a></p>' : '';
$msg .= ($forum_id) ? '<p class="mrg_10"><a href="'. FORUM_URL . $forum_id .'"><span class="label label-success">'. $lang['FORUM_RETURN'] .'</span></a></p>' : '';
$msg .= ($group_id) ? '<p class="mrg_10"><a href="'. GROUP_URL . $group_id .'"><span class="label label-success">'. $lang['GROUP_RETURN'] .'</span></a></p>' : '';
$msg .= '<p class="mrg_10"><a href="index.php"><span class="label label-success">'. $lang['INDEX_RETURN'] .'</span></a></p>';
$template->assign_var('BB_DIE_APPEND_MSG', $msg);
}
#######################################
modcp.php
#######################################
Найти
//
// Functions
//
function return_msg_mcp ($status_msg)
{
global $topic_id, $req_topics, $forum_id, $lang, $mode;
if (count($req_topics) == 1)
{
$topic_id = $req_topics[0];
}
$message = $status_msg;
$message .= '<br /><br />';
if ($topic_id && $mode != 'delete')
{
$message .= sprintf($lang['CLICK_RETURN_TOPIC'], '<a href="'. TOPIC_URL . $topic_id .'">', '</a>');
$message .= '<br /><br />';
}
elseif (count($req_topics) != 1)
{
$message .= sprintf($lang['CLICK_RETURN_MODCP'], '<a href="'. FORUM_URL ."$forum_id&mod=1".'">', '</a>');
$message .= '<br /><br />';
}
$message .= sprintf($lang['CLICK_RETURN_FORUM'], '<a href="'. FORUM_URL . $forum_id .'">', '</a>');
return $message;
}
Заменить на
//
// Functions
//
function return_msg_mcp ($status_msg)
{
global $topic_id, $req_topics, $forum_id, $lang, $mode;
if (count($req_topics) == 1)
{
$topic_id = $req_topics[0];
}
$message = $status_msg;
$message .= '<br /><br />';
if ($topic_id && $mode != 'delete')
{
$message .= sprintf($lang['CLICK_RETURN_TOPIC'], '<a href="'. TOPIC_URL . $topic_id .'"><span class="label label-success">', '</span></a>');
$message .= '<br /><br />';
}
elseif (count($req_topics) != 1)
{
$message .= sprintf($lang['CLICK_RETURN_MODCP'], '<a href="'. FORUM_URL ."$forum_id&mod=1".'"><span class="label label-success">', '</span></a>');
$message .= '<br /><br />';
}
$message .= sprintf($lang['CLICK_RETURN_FORUM'], '<a href="'. FORUM_URL . $forum_id .'"><span class="label label-success">', '</span></a>');
return $message;
}