<!-- IF SCRIPT_NAME == "viewforum" or SCRIPT_NAME == "viewtopic" or SCRIPT_NAME =="s_index"-->
И так будет работать?
Добавлено спустя 4 минуты 26 секунд:
Нет, не будет.
<!-- IF SCRIPT_NAME == "viewforum" or SCRIPT_NAME == "viewtopic" or SCRIPT_NAME =="s_index"-->
Код: Выделить всё
<!-- IF S_VIEWFORUM or S_VIEWTOPIC or S_INDEX -->
красиво смотрится, спасибо!Пчелкин писал(а): всплывашка, мохнатая, с бордюром черного цвета, с прозрачностью почти 100 (90), спокойным фоном, синим шрифтом:
Код: Выделить всё
#tooltip{ position: absolute; /* Абсолютное позиционирование */ padding: 5px; /* Поля вокруг текста */ border: solid 3px #000000; /* Параметры рамки */ display: none; /*white-space: nowrap;*/ background: #ECF3F7; /* Цвет фона */ color: #000066; /* Цвет текста */ -moz-box-shadow: 0 0 32px; /* Для Firefox */ -webkit-box-shadow: 0 0 32px; /* Для Safari и Chrome */ box-shadow: 0 0 32px; /* Параметры тени */ border-radius: 8px; /* Радиус скругления */ font: 15px Verdana, Arial, Helvetica, sans-serif; text-align: left; /* Позиция текста */ z-index: 1000; /* Приоритер наложения */ filter: alpha(opacity=90); /* Костыль для ИЕ */ opacity: 0.9; /* Полупрозрачность элемента */ }
Код: Выделить всё
this.tip.style.left = (x + this.offsetX) + "px";
Код: Выделить всё
var l = x + this.offsetX;
Код: Выделить всё
this.tip.style.top = (y + this.offsetY) + "px";
Код: Выделить всё
var all = jQuery(window).width();
var left = jQuery(this.tip).offset().left;
var width = jQuery(this.tip).outerWidth(true);
var offset = all - (left + width);
if (offset < 0) this.tip.style.left = (l + offset) + "px";
Ой, а я в ксс файле просто вставилаАлг писал(а):но, длинные подсказки обрезаются справа ( выходят за размеры окна)
пришлось вносить изменения в tooltip.js
max-width: 200px;
. Или это не то?<acronym>
? Там ведь тоже title
Код: Выделить всё
$sql = $db->sql_build_query('SELECT', $sql_array);
Код: Выделить всё
// BEGIN Topic Text Hover Mod
if ($config['hover_active'] && !$user->data['user_text_hover'])
{
include($phpbb_root_path . 'includes/topic_text_hover.' . $phpEx);
if($config['hover_show'] == TOPIC_TEXT_HOVER_FIRST || $config['hover_show'] == TOPIC_TEXT_HOVER_BOTH)
{
$sql_array['LEFT_JOIN'][] = array(
'FROM' => array(POSTS_TABLE => 'p'),
'ON' => "p.post_id = t.topic_first_post_id"
);
$sql_array['SELECT'] .= ', p.post_text AS first_text_hover';
}
}
// END Topic Text Hover Mod
Код: Выделить всё
$template->assign_block_vars('similar', array(
Код: Выделить всё
// BEGIN Topic Text Hover Mod
$forum_rows[$parent_id]['first_text_hover'] = (isset($similar['first_text_hover'])) ? $similar['first_text_hover'] : '';
if(!empty($similar['first_text_hover']))
{
// strip all bbcode
include($phpbb_root_path . 'includes/topic_text_hover.' . $phpEx);
$first_text_hover = bbcode_strip($similar['first_text_hover']);
if (utf8_strlen($first_text_hover) >= $config['hover_char_limit'])
{
$first_text_hover = (utf8_strlen($first_text_hover) > $config['hover_char_limit'] + 3) ? utf8_substr($first_text_hover, 0, $config['hover_char_limit']) . '...' : $first_text_hover;
}
}
else
{
$first_text_hover = '';
}
// END Topic Text Hover MOD
Код: Выделить всё
'LAST_POST_TIME' => $user->format_date($similar['topic_last_post_time']),
Код: Выделить всё
// BEGIN Topic Text Hover MOD
'FIRST_TEXT_HOVER' => (isset($first_text_hover)) ? censor_text($first_text_hover) : '', // END Topic Text Hover Mod
Код: Выделить всё
<a href="{similar.U_VIEW_TOPIC}" class="topictitle"
Код: Выделить всё
<!-- IF similar.FIRST_TEXT_HOVER --> title="{similar.FIRST_TEXT_HOVER}"<!-- ENDIF -->