Оформление результатов поиска картинками-превью.
2012-03-02 Дата: Пятница, 02.03.2012, 01:17 | Сообщение # 46
Лейтенант
Группа: Постоянные
Статус: Offline
likbezz , Приветик !!! Скажи пожалуйста, при добавление материала в какой не будь модуле, ссылка на фото где должен находится, чтоб при поиске скрипт находил эту фото. У меня все фото находится в операторе $AHUTOR_NAME$ И $OTHER1$ не как обычно в $IMG$ Я так понимаю что у тебя в скрипте в этой строке $.get(url,{},function(data){var src=$(data).find('td.eMessage img:eq(0)').attr('src')||'undefined'; скрипт ищет фото с материалом именно в операторе $MESSAGE$ Если да тогда возможна расширит это скрипт ? то что ты пере настроил не получилось. у меня в этом сайте работает нормально но фото с материалом находивший в операторе $OTEHR$ не работает Как буто я почти близости в этой деле как то за мудрит чтоб сделать такCode
<div class="eMESSAGE">$OTEHR$</div>
как и в Code
<div class="eMESSAGE">$MESSAGE$</div>
Просто проблема в том что при добавление материала оператор $OTHER$ находится внутри $BODY$ а при виде материалов оператор можно использовать по отдельности Скажи пожалуйста при поиске, твой скрипт именно с какого модуля, и с каким оператором связанных с фото вытаскивает какой из них важный чтоб находился фото прикрепленный к нему 1, $MESSAGE$ 2. $TITLE$ 3. $ENTRY_TITLE$ 4. $IMG$ 5. $BRIEF$ И скажи пожалуйста вот здесь как правильно написать несколько классы Code
$('#searchText a.yt-uix-tile-link').each(function(){ var el=$(this),$this=el.parents('div.result-item'),url=el.attr('href');
вот так имел введу $('#searchText a.yt-uix-tile-link div.yt-uix-tile-link p.yt-uix-tile-link ').each(function(){ var el=$(this),$this=el.parents('div.result-item'),url=el.attr('href');
2012-03-02 Дата: Пятница, 02.03.2012, 03:34 | Сообщение # 47
Аццкий кодер
Группа: Администраторы
Статус: Unknown
samirmm , Quote (samirmm )
Я так понимаю что у тебя в скрипте в этой строке $.get(url,{},function(data){var src=$(data).find('td.eMessage img:eq(0)').attr('src')||'undefined'; скрипт ищет фото с материалом именно в операторе $MESSAGE$
Да, он ищет первую картинку в блоке с сообщением. ... Quote (samirmm )
И скажи пожалуйста вот здесь как правильно написать несколько классы
А зачем там несколько? Класс ссылки, что ссылается на найденный материал только один, и он равен «yt-uix-tile-link». ... Quote (samirmm )
И скажи пожалуйста вот здесь как правильно написать несколько классы
Через запятую, вот так: Code
$('#searchText a.yt-uix-tile-link, div.yt-uix-tile-link, p.yt-uix-tile-link').each(function(){
... Quote (samirmm )
Как буто я почти близости в этой деле как то за мудрит чтоб сделать так
Ну, думал почти верно. Типа вот так: Code
<div class="imgSrc" style="display:none:">$OTEHR$</div>
и тогда: Code
$.get(url,{},function(data){var src=$(data).find('.eMessage img:eq(0)').attr('src')||$(data).find('.imgSrc').html()||'undefined';
... Quote (samirmm )
Скажи пожалуйста при поиске, твой скрипт именно с какого модуля, и с каким оператором связанных с фото вытаскивает какой из них важный чтоб находился фото прикрепленный к нему 1, $MESSAGE$ 2. $TITLE$ 3. $ENTRY_TITLE$ 4. $IMG$ 5. $BRIEF$
Скрипт вытаскивает ссылку на фото не из оператора, а из кода страницы, а именно из блока с классом «eMessage» - ищет первую картинку, и берёт из неё ссылку на картинку. ...
2012-03-02 Дата: Пятница, 02.03.2012, 04:45 | Сообщение # 48
Лейтенант
Группа: Постоянные
Статус: Offline
likbezz , Смотри здесь при поиске только видно 1 фото на все материал вот скрипт который настроил Code
<div id="searchText">$BODY$</div> <script type="text/javascript"> $('#searchText div.eBlock h3.eTitle a').each(function(){var c=$(this),cont=c.parents('td:eq(0)').find('.clip'),url=this.href; if(/load|publ|blog|board|forum|stuff|gb|dir|news/i.test(url.toLowerCase())) { $.get(url,{},function(a){var b=$(a).find('.eMessage img')||$(a).find('.eTitle img')||$(a).find('.postTable img'),src=null; for(var i=0;i<b.length;i++){if(!/ucoz.net/i.test(b[i].src)){ src=b[i].src;cont.prepend($('<img/>').attr('src',src).addClass('preview'));break}}})}; }); </script>>
даже в некоторых нет фото все равно с этими материалами показывает чужой фото и из форума не вытаскиваться фото вот эту строку добавил postTable img все равно не показывает от форума а может что то не правильно сделал. сразу говорю что это скрипт у меня давно стоял я дизайн этого сайта уже год не трогал, год назад наверно я эту скрипт поставил забыл уже откуда брал, а может с твоего сайта, просто для теста зашел в админ панели, смотрю стоит скрипт который похож на твой. Quote (likbezz )
Через запятую, вот так: Code $('#searchText a.yt-uix-tile-link, div.yt-uix-tile-link, p.yt-uix-tile-link').each(function(){
а это не катит Quote (likbezz )
Скрипт вытаскивает ссылку на фото не из оператора, а из кода страницы, а именно из блока с классом «eMessage» - ищет первую картинку, и берёт из неё ссылку на картинку. ...
значит получается что где у меня стоить это оператор $MESSAGE$ $OTHER$ $AHUTOR_NAME$ Я их блок должен добавить класс eMessage Добавлено (02.03.2012, 04:45) ---------------------------------------------likbezz , и скажи пожалуйста С оператором <?$RELATED_ENTRIES$(10)?> - ссылки на схожие материалы можно с таким же методом выводит фото рядом на схожие материалы ? если да то как?
2012-03-02 Дата: Пятница, 02.03.2012, 16:35 | Сообщение # 49
Аццкий кодер
Группа: Администраторы
Статус: Unknown
samirmm , Quote (samirmm )
даже в некоторых нет фото все равно с этими материалами показывает чужой фото и из форума не вытаскиваться фото
Потому что написал не правильно: Quote (samirmm )
cont=c.parents('td:eq(0)').find('.clip')
У тебя там вообще «td » нет. А это что? Quote (samirmm )
var b=$(a).find('.eMessage img')||$(a).find('.eTitle img')||$(a).find('.postTable img')
Ты что, правильно переписать не можешь? Вот так: Code
<div id="searchText">$BODY$</div> <script type="text/javascript"> $('#searchText div.eBlock h3.eTitle a').each(function(){ var c=$(this),cont=c.parents('div.eBlock:eq(0)').find('.clip'),url=this.href; if(/load|publ|blog|board|forum|stuff|gb|dir|news/i.test(url.toLowerCase())){ $.get(url,{},function(a){ var b=$(a).find('.eMessage img:eq(0)')||$(a).find('.eTitle img:eq(0)')||$(a).find('.posttdMessage img:eq(0)'),src=null; for(var i=0;i<b.length;i++){ if(!/ucoz.net/i.test(b[i].src)){ src=b[i].src;cont.prepend($('<img/>').attr('src',src).addClass('preview'));break; }; }; });};}); </script>
...
2012-03-04 Дата: Воскресенье, 04.03.2012, 16:59 | Сообщение # 50
Лейтенант
Группа: Постоянные
Статус: Offline
likbezz , Привет! Как дела . Спасибо тебя огромное помог , я с твою помощью почти изучал java script . Ты настоящий друг, дай Аллах тебя здоровые. Вот страница результата поиска с фото Я еще по детально написал суд о чем идет, и как где чего ищет! вот здесь
2012-03-04 Дата: Воскресенье, 04.03.2012, 17:30 | Сообщение # 51
Аццкий кодер
Группа: Администраторы
Статус: Unknown
samirmm , Quote (samirmm )
Привет! Как дела .
Добрый) Горе у меня.... Сломалась левая клавиша мыши, а из запасных только допотопные, вот сижу мучаюсь, .... клавиши периодически залипает - просто жуть, ... ... Завтра куплю новую, сейчас уже поздно не попрусь в магазин. ... Quote (samirmm )
я с твою помощью почти изучал java script .
Ага, почти ))) ... Quote (samirmm )
Вот страница результата поиска с фото
Ну что сказать... - работает ) ... Quote (samirmm )
Я еще по детально написал суд о чем идет, и как где чего ищет! вот здесь
Неплохо) Главное, что ты понял - а дальше - у же объяснишь кому угодно) ...
2012-03-06 Дата: Вторник, 06.03.2012, 01:28 | Сообщение # 52
Лейтенант
Группа: Постоянные
Статус: Offline
likbezz , Приветь! Я тут ответил в этой сообщение, Quote (likbezz )
Сообщение # 51
Почему то здесь я не вижу этого ответа. Ты удалял что ли? или у тебя лимит на это !?
2012-03-06 Дата: Вторник, 06.03.2012, 01:39 | Сообщение # 53
Аццкий кодер
Группа: Администраторы
Статус: Unknown
samirmm , Quote (samirmm )
Я тут ответил в этой сообщение,
Тема разделена, так как более не касается вопросам: Оформление результатов поиска картинками-превью ... Ваши сообщения перемещены в новую тему: Ссылки на схожие материалы, оформляем картинками. JavaScript ...
2012-03-08 Дата: Четверг, 08.03.2012, 11:43 | Сообщение # 54
доброе утро! помогите пожалуйста мне с кодом. вот код на страницу поиска а вот код на вид материалов: мне нужно што б в результате поиска выводился скрин. у меня скрины находятся по коду $SCREEN_URL$
2012-03-08 Дата: Четверг, 08.03.2012, 15:48 | Сообщение # 55
Аццкий кодер
Группа: Администраторы
Статус: Unknown
Гость , Quote (Гость )
доброе утро! помогите пожалуйста мне с кодом.
Ссылочку оставляем на сайт - с такой просьбой - это обязательно. Будет ссылка, помогу.
2012-03-08 Дата: Четверг, 08.03.2012, 15:49 | Сообщение # 56
Лейтенант
Группа: Проверенные
Статус: Offline
Quote (likbezz )
Ссылочку оставляем на сайт - с такой просьбой - это обязательно. Будет ссылка, помогу.
http://vipclips.net
2012-03-08 Дата: Четверг, 08.03.2012, 15:55 | Сообщение # 57
Аццкий кодер
Группа: Администраторы
Статус: Unknown
snayper , Quote (snayper )
http://vipclips.net
Шаблон - каталог файлов - «Страница Материала и комментарии к нему » скинь сюда... там у тебя не одного класса привязаться не к чему ) И шаблон Поиск - «Вид материалов » тоже. ...
2012-03-08 Дата: Четверг, 08.03.2012, 15:57 | Сообщение # 58
Лейтенант
Группа: Проверенные
Статус: Offline
страница материалов и комментариев
<html><head> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Скачать клип $ENTRY_TITLE$</title> <?$META_DESCRIPTION$?> <link type="text/css" rel="StyleSheet" href="/_st/my.css"> <script type="text/javascript">function chbg(t,f){if (f==1){t.style.background="url('/.s/t/121/1.gif')";}else {t.style.background="url('/.s/t/121/2.gif')";}}</script> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="15" style="padding:5px;" marginheight="0" marginwidth="0" bgcolor="#FFFFFF"> $ADMIN_BAR$ $GLOBAL_AHEADER$ <div style="padding:3px"></div> <!-- <middle> --> <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"> <tbody><tr> <td valign="top" width="195"> $GLOBAL_CLEFTER$ </td> <td height="100%" valign="top"> <img alt="" src="http://vipclips.net/Skrin1111/07/vverh1.png" height="2" width="640"><br><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td colspan="3" class="topBorder" style="padding:3px;" valign="top"><table style="border-collapse: collapse;" height="44" width="625"><tbody><tr><td style="border-width: 1px; border-style: double; border-color: rgb(169, 169, 169); letter-spacing: 0pt; word-spacing: 0pt; background-color: rgb(247, 247, 247);"><b><span style="font-size: 12pt; color: rgb(105, 105, 105); font-family: Times New Roman;"><span style="font-size: 12pt; color: rgb(105, 105, 105); font-family: Times New Roman;"><span style="font-size: 12pt; color: rgb(105, 105, 105); font-family: Times New Roman;"><span style="font-size: 12pt; color: rgb(105, 105, 105); font-family: Times New Roman;">Скачать $ENTRY_TITLE$ $MODER_PANEL$</span></span></span></span></b></td></tr><tr><td style="vertical-align: top; border-width: 1px; border-style: double; border-color: rgb(169, 169, 169); letter-spacing: 0pt; word-spacing: 0pt;" valign="top"> <table style="border-collapse: collapse;" height="17" width="626"><tbody><tr><td><g:plusone size="small"></g:plusone></td><td><script src="http://odnaknopka.ru/ok2.js" type="text/javascript"></script></td><td><?$WIDGET$('45','187|5|0|1|1|ru|0|1|0|1|0|0|1|0|1|0|0|0|1|0|0|0')?></td></tr></tbody></table></td></tr></tbody></table><table style="border: 1px solid black; background-color: rgb(255, 255, 255); border-collapse: collapse;" height="435" cellpadding="1" cellspacing="0" width="630" align=""><tbody><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247); vertical-align: top;"> Скриншот</td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"> <a title="Нажмите чтобы открыть скриншот" target="_blank" href="$SCREEN_URL$"><img alt="" src="$SCREEN_URL$" height="250" width="350"></a></td></tr><tr><td style="vertical-align: top; background-color: rgb(247, 247, 247); border-width: 1px; border-style: double; border-color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt;" valign="top"><font face="Tahoma"><span style="color: rgb(105, 105, 105);"><b>Информация <span style="font-size: 10pt;"><br></span> о клипе</b></span></font><br></td><td style="vertical-align: top; border-width: 1px; border-style: double; border-color: rgb(169, 169, 169); letter-spacing: 0pt; word-spacing: 0pt;" valign="top"><span style="color: rgb(105, 105, 105);">$MESSAGE$</span><br></td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Рейтинг</td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"><table style="border-collapse:collapse;width:100%;"><tbody><tr><td><?$RSTARS$('12','/.s/img/stars/9/12.png','1','float')?></td><td valign="top"><span style="color: rgb(105, 105, 105);"><b>Оценка:</b> $RATING_NUM$</span></td><td><span style="font-family: Tahoma; color: rgb(105, 105, 105);"><b>Голосов:</b></span> <span style="color: rgb(105, 105, 105);">($RATED$)<br></span></td></tr></tbody></table></td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Просмотров</td><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"> <span style="font-size: 10pt; font-family: Arial;"><span style="font-family: Times New Roman; font-size: 10pt;">$READS$</span></span></td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Дата добавления<br></td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"> $ADD_DATE$, $ADD_WDAY$, $ADD_TIME$<br></td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Добавил <br></td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"> <a href="$PROFILE_URL$"><b>$USER$</b></a> <a title="Репутация $USER$'a автоматически повысится. Многократное нажатие 'Спасибо' запрещено и строго наказывается!" href="javascript://" onclick="openLayerB('Rd',0,'/index/23-$UID$','Change Reputation',380,200,1); return false;"><img alt="" src="http://t1.gstatic.com/images?q=tbn:ANd9GcTsohwtXIfDlffGvPCcHHwu3dqwfyFKnnm1wd4pSQwIRl4_2SeK0w" onclick="repchange('plus','$ID$');" height="17" width="17" align="absmiddle"></a> <a href="$PROFILE_URL$"><br></a></td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Комментариев</td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"> $COMMENTS_NUM$</td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Жалоба<br></td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"><form method="post" name="badlink" id="f6F9kL" style="margin: 0pt;" onsubmit="fun6F9kL();return false;"><input name="f1" size="30" value="snayper19@bigmir.net" maxlength="70" type="hidden"><input name="f2" size="30" value="Нерабочая ссылка!" type="hidden"><input name="f3" size="30" value="0" type="hidden"><input style="display: none;" name="sbm" type="submit"><input name="id" value="2" type="hidden"><input name="a" value="1" type="hidden"><input name="o" value="1" type="hidden"></form><script type="text/javascript"><br>var sblmb2=0;<br>function fun6F9kL(){try {var tr=checksubmit();<br>if(!tr){return false;}}catch(e){}<br>if (sblmb2==1){return false;}<br>sblmb2=1;<br>openLayerB('sendMFe2','f6F9kL','/mail/','Отправка сообщения',350,150,'','','1');};<br>document.badlink.f3.value=document.location.href;<br></script>[ <a href="javascript://" onclick="if (confirm('_______________________________ Вы уверены, что ссылка нерабочая? ________________________________ Если она окажется на самом деле рабочей, вы будете заблокированы Администратором сайта!')){openLayerB('sendMFe2','f6F9kL','/mail/','Отправка сообщения',350,150,'','','1');};document.badlink.f3.value=document.location.href;return false;">Сообщить о нерабочей ссылке</a> ]</td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);" valign="top">Похожые клипы<br></td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);" valign="top"><span style="font-size: 14pt;"><span style="font-family: Arial; font-size: 10pt; color: rgb(169, 169, 169);"><?$RELATED_ENTRIES$(10)?></span></span></td></tr></tbody></table> <!-- Блок#5--><!-- <body> --><div class="eTitle" style="padding-bottom:3px;"><?if($MODER_PANEL$)?><div style="float:right"><br></div><?endif?></div><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr><td height="25" width="60%"><!--<s5183>-->Всего комментариев<!--</s>-->: <b>$COM_NUM_ENTRIES$</b></td><td height="25" align="right">$COM_PAGE_SELECTOR$</td></tr> <tr><td colspan="2">$COM_BODY$</td></tr> <tr><td colspan="2" align="center">$COM_PAGE_SELECTOR1$</td></tr> <tr><td colspan="2" height="10"></td></tr> </tbody></table> <!--ENDIF--> <?if($COM_CAN_ADD$)?> $COM_ADD_FORM$ <?else?> <?if($USER_LOGGED_IN$)?><?else?><div align="center" class="commReg"><!--<s5237>-->Добавлять комментарии могут только зарегистрированные пользователи.<!--</s>--><br />[ <a href="$REGISTER_LINK$"><!--<s3089>-->Регистрация<!--</s>--></a> | <a href="$LOGIN_LINK$"><!--<s3087>-->Вход<!--</s>--></a> ]</div><?endif?> <?endif?> <!--ENDIF--><!-- </body> --> </td> </tr> </tbody></table><img alt="" src="http://vipclips.net/Skrin1111/07/niz1.png" height="2" width="640"> </td><td valign="top">$GLOBAL_DRIGHTER$</td></tr></tbody></table> $GLOBAL_BFOOTER$ </body></html>
Поиск Вид материалов:
Сообщение отредактировал snayper - Четверг, 08.03.2012, 15:59
2012-03-08 Дата: Четверг, 08.03.2012, 16:00 | Сообщение # 59
Аццкий кодер
Группа: Администраторы
Статус: Unknown
Это шаблон Каталог файлов - «Материал и комментарии к нему »
<html><head> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Скачать клип $ENTRY_TITLE$</title> <?$META_DESCRIPTION$?> <link type="text/css" rel="StyleSheet" href="/_st/my.css"> <script type="text/javascript">function chbg(t,f){if (f==1){t.style.background="url('/.s/t/121/1.gif')";}else {t.style.background="url('/.s/t/121/2.gif')";}}</script> </head> <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="15" style="padding:5px;" marginheight="0" marginwidth="0" bgcolor="#FFFFFF"> $ADMIN_BAR$ $GLOBAL_AHEADER$ <div style="padding:3px"></div> <!-- <middle> --> <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"> <tbody><tr> <td valign="top" width="195"> $GLOBAL_CLEFTER$ </td> <td height="100%" valign="top"> <img alt="" src="http://vipclips.net/Skrin1111/07/vverh1.png" height="2" width="640"><br><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr> <td colspan="3" class="topBorder" style="padding:3px;" valign="top"><table style="border-collapse: collapse;" height="44" width="625"><tbody><tr><td style="border-width: 1px; border-style: double; border-color: rgb(169, 169, 169); letter-spacing: 0pt; word-spacing: 0pt; background-color: rgb(247, 247, 247);"><b><span style="font-size: 12pt; color: rgb(105, 105, 105); font-family: Times New Roman;"><span style="font-size: 12pt; color: rgb(105, 105, 105); font-family: Times New Roman;"><span style="font-size: 12pt; color: rgb(105, 105, 105); font-family: Times New Roman;"><span style="font-size: 12pt; color: rgb(105, 105, 105); font-family: Times New Roman;">Скачать $ENTRY_TITLE$ $MODER_PANEL$</span></span></span></span></b></td></tr><tr><td style="vertical-align: top; border-width: 1px; border-style: double; border-color: rgb(169, 169, 169); letter-spacing: 0pt; word-spacing: 0pt;" valign="top"> <table style="border-collapse: collapse;" height="17" width="626"><tbody><tr><td><g:plusone size="small"></g:plusone></td><td><script src="http://odnaknopka.ru/ok2.js" type="text/javascript"></script></td><td><?$WIDGET$('45','187|5|0|1|1|ru|0|1|0|1|0|0|1|0|1|0|0|0|1|0|0|0')?></td></tr></tbody></table></td></tr></tbody></table><table class="eMessage" style="border: 1px solid black; background-color: rgb(255, 255, 255); border-collapse: collapse;" height="435" cellpadding="1" cellspacing="0" width="630" align=""><tbody><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247); vertical-align: top;"> Скриншот</td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"> <a title="Нажмите чтобы открыть скриншот" target="_blank" href="$SCREEN_URL$"><img alt="" src="$SCREEN_URL$" height="250" width="350"></a></td></tr><tr><td style="vertical-align: top; background-color: rgb(247, 247, 247); border-width: 1px; border-style: double; border-color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt;" valign="top"><font face="Tahoma"><span style="color: rgb(105, 105, 105);"><b>Информация <span style="font-size: 10pt;"><br></span> о клипе</b></span></font><br></td><td style="vertical-align: top; border-width: 1px; border-style: double; border-color: rgb(169, 169, 169); letter-spacing: 0pt; word-spacing: 0pt;" valign="top"><span style="color: rgb(105, 105, 105);">$MESSAGE$</span><br></td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Рейтинг</td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"><table style="border-collapse:collapse;width:100%;"><tbody><tr><td><?$RSTARS$('12','/.s/img/stars/9/12.png','1','float')?></td><td valign="top"><span style="color: rgb(105, 105, 105);"><b>Оценка:</b> $RATING_NUM$</span></td><td><span style="font-family: Tahoma; color: rgb(105, 105, 105);"><b>Голосов:</b></span> <span style="color: rgb(105, 105, 105);">($RATED$)<br></span></td></tr></tbody></table></td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Просмотров</td><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"> <span style="font-size: 10pt; font-family: Arial;"><span style="font-family: Times New Roman; font-size: 10pt;">$READS$</span></span></td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Дата добавления<br></td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"> $ADD_DATE$, $ADD_WDAY$, $ADD_TIME$<br></td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Добавил <br></td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"> <a href="$PROFILE_URL$"><b>$USER$</b></a> <a title="Репутация $USER$'a автоматически повысится. Многократное нажатие 'Спасибо' запрещено и строго наказывается!" href="javascript://" onclick="openLayerB('Rd',0,'/index/23-$UID$','Change Reputation',380,200,1); return false;"><img alt="" src="http://t1.gstatic.com/images?q=tbn:ANd9GcTsohwtXIfDlffGvPCcHHwu3dqwfyFKnnm1wd4pSQwIRl4_2SeK0w" onclick="repchange('plus','$ID$');" height="17" width="17" align="absmiddle"></a> <a href="$PROFILE_URL$"><br></a></td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Комментариев</td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"> $COMMENTS_NUM$</td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);"> Жалоба<br></td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);"><form method="post" name="badlink" id="f6F9kL" style="margin: 0pt;" onsubmit="fun6F9kL();return false;"><input name="f1" size="30" value="snayper19@bigmir.net" maxlength="70" type="hidden"><input name="f2" size="30" value="Нерабочая ссылка!" type="hidden"><input name="f3" size="30" value="0" type="hidden"><input style="display: none;" name="sbm" type="submit"><input name="id" value="2" type="hidden"><input name="a" value="1" type="hidden"><input name="o" value="1" type="hidden"></form><script type="text/javascript"><br>var sblmb2=0;<br>function fun6F9kL(){try {var tr=checksubmit();<br>if(!tr){return false;}}catch(e){}<br>if (sblmb2==1){return false;}<br>sblmb2=1;<br>openLayerB('sendMFe2','f6F9kL','/mail/','Отправка сообщения',350,150,'','','1');};<br>document.badlink.f3.value=document.location.href;<br></script>[ <a href="javascript://" onclick="if (confirm('_______________________________ Вы уверены, что ссылка нерабочая? ________________________________ Если она окажется на самом деле рабочей, вы будете заблокированы Администратором сайта!')){openLayerB('sendMFe2','f6F9kL','/mail/','Отправка сообщения',350,150,'','','1');};document.badlink.f3.value=document.location.href;return false;">Сообщить о нерабочей ссылке</a> ]</td></tr><tr><td style="border: 1px double rgb(169, 169, 169); font-style: normal; font-weight: bold; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(247, 247, 247);" valign="top">Похожые клипы<br></td><td style="border: 1px double rgb(169, 169, 169); vertical-align: super; font-style: normal; font-weight: normal; text-decoration: none; color: rgb(105, 105, 105); letter-spacing: 0pt; word-spacing: 0pt; font-family: Times New Roman; font-size: 10pt; background-color: rgb(255, 255, 255);" valign="top"><span style="font-size: 14pt;"><span style="font-family: Arial; font-size: 10pt; color: rgb(169, 169, 169);"><?$RELATED_ENTRIES$(10)?></span></span></td></tr></tbody></table> <!-- Блок#5--><!-- <body> --><div class="eTitle" style="padding-bottom:3px;"><?if($MODER_PANEL$)?><div style="float:right"><br></div><?endif?></div><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr><td height="25" width="60%"><!--<s5183>-->Всего комментариев<!--</s>-->: <b>$COM_NUM_ENTRIES$</b></td><td height="25" align="right">$COM_PAGE_SELECTOR$</td></tr> <tr><td colspan="2">$COM_BODY$</td></tr> <tr><td colspan="2" align="center">$COM_PAGE_SELECTOR1$</td></tr> <tr><td colspan="2" height="10"></td></tr> </tbody></table> <!--ENDIF--> <?if($COM_CAN_ADD$)?> $COM_ADD_FORM$ <?else?> <?if($USER_LOGGED_IN$)?><?else?><div align="center" class="commReg"><!--<s5237>-->Добавлять комментарии могут только зарегистрированные пользователи.<!--</s>--><br />[ <a href="$REGISTER_LINK$"><!--<s3089>-->Регистрация<!--</s>--></a> | <a href="$LOGIN_LINK$"><!--<s3087>-->Вход<!--</s>--></a> ]</div><?endif?> <?endif?> <!--ENDIF--><!-- </body> --> </td> </tr> </tbody></table><img alt="" src="http://vipclips.net/Skrin1111/07/niz1.png" height="2" width="640"> </td><td valign="top">$GLOBAL_DRIGHTER$</td></tr></tbody></table> $GLOBAL_BFOOTER$ </body></html>
Quote (snayper )
Поиск Вид материалов
Сейчас скрипт поправлю. А ты пока замени $BODY$ в шаблоне Поиск - общий вид , на вот это: Code
<div id="searchText">$BODY$</div>
...
2012-03-08 Дата: Четверг, 08.03.2012, 16:14 | Сообщение # 60
Аццкий кодер
Группа: Администраторы
Статус: Unknown
Вот это в шаблон «Поиск - общий вид » сразу после вот этого кода: Code
<div id="searchText">$BODY$</div>
Code
<script type="text/javascript"> $('#searchText td.topBorder a').each(function(){ var c=$(this),cont=c.parents('table.eBlock').find('td.imgTd'),url=this.href; if(/load|news/i.test(url.toLowerCase())){ $.get(url,{},function(a){var b=$(a).find('.eMessage img')||$(a).find('.eText img'),src=null; if(b){ for(var i=0;i<b.length;i++){if(!/ucoz.net/i.test(b[i].src)){ src=b[i].src;cont.prepend($('<img/>').attr('src',src).addClass('preview'));break} } }; });};}); </script>
... Вот это в CSS - в самый низ, в любое место: Code
img.preview{widows:150px;height:100px;border:0;}
... Как сделаешь - напиши - гляну, не напутал ли чего )