Расписано для для обоих стилей, принцип один, для просильвера выделил цветом где идет расхождение в установке. Смотрим внимательно! У себя протестировал на обоих стилях.
Тестировал сам лично два раза на двух чистых движках 41 донат и 39 free работает на обоих стилях субсильвер и просильвер. Тестировал именно по данному мануалу что тут расписан. Так что у кого что не выходит сидим выпрямляем руки и внимательно читаем инфу по установке! Внимательно смотрим пути к картинкам.
Open: includes/functions.phpFind
Код: Выделить всё
$l_privmsgs_text = $l_privmsgs_text_unread = '';
$s_privmsg_new = false;
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Код: Выделить всё
//Popup Layer on New PMs
$l_new_message_popup = $pm_popup_click = '';
Tip: This may be a partial find and not the whole line.
Код: Выделить всё
$sql = 'UPDATE ' . USERS_TABLE . '
SET user_last_privmsg = ' . $user->data['session_last_visit'] . '
WHERE user_id = ' . $user->data['user_id'];
$db->sql_query($sql);
$s_privmsg_new = true;
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Код: Выделить всё
//Popup Layer on New PMs
$l_new_message_popup = ($user->data['user_new_privmsg'] == 1) ? $user->lang['YOU_NEW_PM'] : $user->lang['YOU_NEW_PMS'];
$pm_popup_click = sprintf($user->lang['CLICK_VIEW_PRIVMSG'], '<a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=pm&folder=inbox') . '">', '</a>');
Tip: This may be a partial find and not the whole line.
Код: Выделить всё
'A_COOKIE_SETTINGS' => addslashes('; path=' . $config['cookie_path'] . ((!$config['cookie_domain'] || $config['cookie_domain'] == 'localhost' || $config['cookie_domain'] == '127.0.0.1') ? '' : '; domain=' . $config['cookie_domain']) . ((!$config['cookie_secure']) ? '' : '; secure')),
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Код: Выделить всё
//Popup Layer on New PMs
'PM_POPUP_MESSAGE' => $l_new_message_popup,
'PM_POPUP_CLICK_TO_VIEW' => $pm_popup_click,
Код: Выделить всё
else
{
$s_privmsg_new = false;
}
Код: Выделить всё
$pm_user_id = 'u_' . $user->data['user_id'];
$pm_user_last_privmsg = $user->data['user_last_privmsg'];
$sql = "SELECT p.msg_id, p.author_id, p.message_subject, p.message_time, u.username, u.user_avatar, u.user_avatar_type
FROM " . PRIVMSGS_TABLE . " AS p, " . USERS_TABLE . " AS u
WHERE p.message_time = $pm_user_last_privmsg
AND p.author_id = u.user_id
AND p.to_address = '$pm_user_id'";
$result = $db->sql_query($sql);
while( ($row = $db->sql_fetchrow($result)) && ($row['msg_id'] != '') )
{
if($row['user_avatar_type'] == 0)
{
$avatar = $row['user_avatar'];
}
else
{
function get_avatar_filename($avatar_entry)
{
global $config;
if ($avatar_entry[0] === 'g')
{
$avatar_group = true;
$avatar_entry = substr($avatar_entry, 1);
}
else
{
$avatar_group = false;
}
$ext = substr(strrchr($avatar_entry, '.'), 1);
$avatar_entry = intval($avatar_entry);
return $config['avatar_salt'] . '_' . (($avatar_group) ? 'g' : '') . $avatar_entry . '.' . $ext;
}
$avatar = $phpbb_root_path . $config['avatar_path'] . '/' . get_avatar_filename($row['user_avatar']);
}
// Assign specific vars
$template->assign_vars(array(
'S_PM_AVATAR' => $avatar,
'S_PM_SENDER' => $row['username'],
'S_PM_SUBJECT' => $row['message_subject'],
'S_PM_DATE' => $user->format_date($row['message_time'], $format = 'd.m.Y, H:i'),
)
);
}
$db->sql_freeresult($result);
Open: styles/subsilver2/template/overall_header.html
Находим и удаляем код
Код: Выделить всё
<!-- IF S_USER_PM_POPUP -->
if ({S_NEW_PM})
{
popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
}
<!-- ENDIF -->
Open: styles/subsilver2/template/overall_footer.html
Find
Tip: This may be a partial find and not the whole line.
Код: Выделить всё
</body>
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Код: Выделить всё
</div>
<!-- IF S_USER_PM_POPUP and S_NEW_PM -->
<script type="text/javascript">
setOpacity('main-block', 0.3);
</script>
<!-- ENDIF -->
Open: styles/subsilver2/theme/stylesheet.css или styles/prosilver/theme/common.css перед /* Search box
Find
Tip: This may be a partial find and not the whole line.
Код: Выделить всё
/* Text
Tip: Add these lines on a new blank line before the preceding line(s) to find.
Код: Выделить всё
.uContent {
background-attachment: scroll;
background-clip: border-box;
background-color: transparent;
background-image: url("/images/background-pm.png");
background-origin: padding-box;
background-position: 0% 0%;
background-repeat: repeat;
background-size: auto;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
box-shadow: 0px 2px 7px;
position: fixed;
top: 50%;
left: 50%;
margin-left: 200px;
margin-top: 190px;
width: 400px;
z-index: 2;
text-align: center;
margin-bottom: 10px;
padding-bottom: 7px;
padding-left: 7px;
padding-right: 7px;
padding-top: 7px;
width: 300px;
}
.close {
height: 100px;
padding-left: 282px;
}
.ava {
padding-left: 15px;
margin-top: -9px;
}
Теперь открываем файл styles/subsilver2/template/overall_header.html
И вставляем куда вам удобнее код, лично у меня не стандартный overall_header.html так что подберете место сами =)
Код: Выделить всё
<div id="content"></div>
<script>
function show()
{
$.ajax({
url: "lc.php",
cache: false,
success: function(html){
$("#content").html(html);
}
});
}
$(document).ready(function(){
show();
setInterval('show()',15000);
});
</script>
Код: Выделить всё
<script src="{PPKBB3CKER_ADDONS}js/jquery-min.js" type="text/javascript"></script>
И у вас должен быть прописан
Код: Выделить всё
<script src="{PPKBB3CKER_ADDONS}js/jquery.js" type="text/javascript"></script>
Код: Выделить всё
<script src="{PPKBB3CKER_ADDONS}js/ppkBB3cker.js" type="text/javascript"></script>
В просильвере прописываем если нету после
Код: Выделить всё
<script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>
Качаем архив и кидаем все по папкам. http://upwap.ru/1614911
Вопрос: Как установить эту опцию для всех существующих пользователей на форуме?
Ответ: Скачать данный скрипт: http://upwap.ru/1615037
Оба архива (файла) в одном: http://rghost.ru/37094021 (обновлен 19 марта 2012)
Загрузить файл set_popup.php в корень форума
Запустить в браузере set_popup.php
Должна появиться зелененькая надпись «The option has been successfully changed».
Удалить файл set_popup.php с сервера.
Итог Субсильвер:
Просильвер:
Там может что то быть лишним в коде разбирать ща нет желания. Если и есть то чуть чуть.
Спасибо Сереге-serrrios Помог с кодом для вывода авы и ткнул носом где другой код на вывод автора и темы лс.
Ах да самое главное забыл
serrrios (13:32:36 18/07/2011)
СРЕДЕЧКИ БЛЕАТЬ?)))