Мой сайт Пятница, 20.06.2025, 22:25
Приветствую Вас Гость | RSS
Главная | Автор темы на форуме uCoz - Форум | Регистрация | Вход
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Автор темы на форуме uCoz
PaiN Дата: Суббота, 10.12.2011, 20:07 | Сообщение # 1

Сообщений: 163
Я туд Король
- 10 +

После $BODY$ в общий вид страниц форума:

Code
<?if($PAGE_ID$='threadpage')?>
<script type="text/javascript">
var url = location.href.split('/')[4].split('?')[0].split('#')[0].split('-');
if (url.length == 3 && url[2] != '1') {
$.get($('a.forumBarA:first').attr('href'), function(data) {
var author = $('td.postTdTop:first a', data);
$('td.postTdTop a:contains("' + author.text() + '")').parent().parent().next().find('td:first').each(function() {
if ($(this).find('img.userAvatar').length != 0) {
$(this).find('img.userAvatar').after('<br /><b style="color: red;">Автор темы</b>');
} else {
$(this).prepend('<b style="color: red;">Автор темы</b><br />');
}
});
});
} else {
var author = $('td.postTdTop:first a');
$('td.postTdTop a:contains("' + author.text() + '")').parent().parent().next().find('td:first').each(function() {
if ($(this).find('img.userAvatar').length != 0) {
$(this).find('img.userAvatar').after('<br /><b style="color: red;">Автор темы</b>');
} else {
$(this).prepend('<b style="color: red;">Автор темы</b><br />');
}
});
}
</script>
<?endif?>
 
Alexandr Дата: Суббота, 10.12.2011, 21:46 | Сообщение # 2

Сообщений: 29
3lou Admin
- 10 +
cool норм

 
  • Страница 1 из 1
  • 1
Поиск:


Copyright MyCorp © 2025
Хостинг от uCoz