
6257
- 8
Хак - Highslide JS - модные превьюшки
1) На своем сайте в папке engine создайте папку hacks.
2) Скачайте архив из аттача и распакуйте его в только что созданную папку hacks.
У вас должен получиться результирующий путь
Код:
http://site.ru/engine/hacks/highslide/highslide.js
3) Откройте файл main.tpl используемого вами шаблона (например, /templates/default/main.tpl) и сразу после htmlvars добавьте:
Код:
<style type="text/css" media="all">
@import url(http://site.ru/engine/hacks/highslide/highslide.css);
</style>
<!-- highslide start -->
<script type="text/javascript" src="http://site.ru/engine/hacks/highslide/highslide.js"></script>
<script type="text/javascript">
hs.graphicsDir = 'http://site.ru/engine/hacks/highslide/graphics/';
</script>
<!-- highslide end -->
заменяя site.ru на имя вашего сайта.
4) Откройте файл engine/lang/russian/admin/images.ini и замените строки:
Код:
insert_thumb = "<img="{thumb_url}" border="0" align="">{file_name}</img>"
insert_file = "<img="{file_url}" border="0" width="{image_width}" height="{image_height}" align="">{file_name} ({fsize})</img>"
Код:
insert_thumb = "<url="{file_url}" onclick="return hs.expand (this)" class="highslide"><img="{thumb_url}" class="nimg" border="0" align="">{file_name} ({fsize})</img></url>"
insert_file = "<img="{file_url}" border="0" width="{image_width}" height="{image_height}" align="">{file_name} ({fsize})</img>"
5) 5) Откройте файл engine/includes/classes/parse.class.php, найдите в нем строки (!!!!! Для моей версии именно эти строки в районе -+ 366, дело в том что в файле parse.class.php похожие строки есть еще в районе -+255 и часто ставят после них что и есть роковая ошибкой)):
Код:
case 'title':
$v = str_replace(array("\"", ord(0), ord(9), ord(10), ord(13), ":", '<', '>', '&'),array("'",''),$kv);
$outkeys [] = $kn.'="'.$v.'"';
break;
Код:
case 'onclick':
$v = str_replace(array(ord(0), ord(9), ord(10), ord(13), "'", "\"", ";", ":", '<', '>', '&'),'',$kv);
$outkeys [] = $kn.'="'.$v.'"';
break;
Вы не можете скачивать файлы с нашего сайта ,рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Можешь почитать и вот эту статейку " Создание Android Dock с использованием JQuery и CSS3"
Это тоже интересно
- 06.04.17Какое время жизни вашего сайта
читать полностью
[/comment_full] [answer]--------------------
Ответ от{name}
{answer}[/answer] [quote]
irbees2008');" style="cursor: pointer;">ответить[/quote]
читать полностью
[/comment_full] [answer]--------------------
Ответ от{name}
{answer}[/answer] [quote]
irbees2008');" style="cursor: pointer;">ответить[/quote]
читать полностью
[/comment_full] [answer]--------------------
Ответ от{name}
{answer}[/answer] [quote]
irbees2008');" style="cursor: pointer;">ответить[/quote]
читать полностью
[/comment_full] [answer]--------------------
Ответ от{name}
{answer}[/answer] [quote]
irbees2008');" style="cursor: pointer;">ответить[/quote]
читать полностью
[/comment_full] [answer]--------------------
Ответ от{name}
{answer}[/answer] [quote]
irbees2008');" style="cursor: pointer;">ответить[/quote]
читать полностью
[/comment_full] [answer]--------------------
Ответ от{name}
{answer}[/answer] [quote]
irbees2008');" style="cursor: pointer;">ответить[/quote]
читать полностью
[/comment_full] [answer]--------------------
Ответ от{name}
{answer}[/answer] [quote]
irbees2008');" style="cursor: pointer;">ответить[/quote]
читать полностью
[/comment_full] [answer]--------------------
Ответ от{name}
{answer}[/answer] [quote]
irbees2008');" style="cursor: pointer;">ответить[/quote]