• DONATE to NULLED!
    Форуму и его команде можно помочь, мотивировать модераторов разделов.
    Помогите модератору этого раздела killoff лично.

Помощь Помогите с tws gallery 5.1

zloy_admin

Разработчик
Заблокирован
Регистрация
15 Авг 2011
Сообщения
186
Реакции
28
  • Автор темы
  • Заблокирован
  • #1
Подскажите где изменяеться шаблон фотографий в TWS Gallery 5.1, а то вывожу последние фото на главной и выводит вот так:
dfba80db1b0a.jpg
[/spoil]
Вывожу так:
[spoil] {include file="engine/gallery/external/tags.php?action=date&vertical=1&horizontal=4&cache=yes&search=1000"}

Заранее спасибо!
 
скорей всего гдето в шабе есть не закрытый тег или возможно конфликт стилей.
без адреса сайта сложно догадаться
 
  • Автор темы
  • Заблокирован
  • #3
в том то и дело работаю на денвере показать не могу, а сам шаб в галерее отвечающий за вывод как называется?
 
  • Автор темы
  • Заблокирован
  • #5
Вот код:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "Для просмотра ссылки Войди или Зарегистрируйся">
<html>

<head>
<meta name="google-site-verification" content="ctl3cXpy4kw7GMlO4-jSrzeqy9ROKew_mr96uAkw9Lk" />
<meta name='yandex-verification' content='642521dce4f82b73' />
<link rel="stylesheet" type="text/css" href="{THEME}/css/styles.css">
<link rel="stylesheet" type="text/css" href="{THEME}/css/style-4.css">
<link type="text/css" rel="stylesheet" href="{THEME}/css/style-2.css"/>
<link rel="stylesheet" type="text/css" href="{THEME}/css/engine.css" />


<link rel="Shortcut Icon" href="{THEME}/Yugra.png">
{headers}

</head>
<body>
{AJAX}
<!--UdmComment-->
<div id="main">
<div id="header">
<div class="box">
<div class="title">

<b>Информационно-развлекательный портал Югры "Сплетник-ХМАО"</b>
</div>
<div class="logo">
<a href="/">
<img src="{THEME}/images/logo.gif" alt="Новости ХМАО-Югры" title="Новости ХМАО-Югры" width="212" height="57" border="0"></a></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">


<tr>
<td width="98%" height="118" align="right" id="search">
<form method="post" id="searchform" action=''>
<table width="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="17" colspan="2">Поиск по сайту</td>
</tr>
<tr>

<td id="search">
<form method="post" id="searchform" action=''>
<input type="hidden" name="do" value="search" />
<input type="hidden" name="subaction" value="search" />
<input id="story" name="story" type="text" class="search_field" value="Что ищем?..." onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;" />
</td>
<td height="20">
<input name="sa" type="image" class="btn" id="submit2" src="{THEME}/images/search_btn.gif" alt="поиск" />
</td>
</form>

</tr>


</table>
</form>

</td>
{login}
<td width="1%" rowspan="2">
<!-- logo <img src="{THEME}/images/header_img1.jpg" alt="Раздел мобильные и сотовые телефоны" title="Раздел мобильные и сотовые телефоны" width="202" height="185"> logo-->
</td>
</tr>
</table>

<!-- Меню Городов -->
{include file="menu.tpl"}
<!-- Конец меню городов -->

</div>
</div>
<!-- Меню -->
<div id="menu2">
<a href="/">Главная</a>
<a href="/news/">Новости ХМАО</a>
<a href="/politika/">Политика</a>
<a href="/ekonomika/">Экономика</a>
<a href="/obschestvo/">Общество</a>
<a href="/proisshestviya/">Происшествия</a>
<a href="/obschestvo/">Здоровье</a>
<a href="/sport/">Спорт</a>
<a href="/fotoreport/">Фоторепортажи</a>
<a href="/gallery/">Фотогалерея</a>
<a href="/stati/">ЧтиВо</a>
<a href="/forum/">Форум</a>
</div>
<!-- Конец меню -->

<!-- Дополнительное меню -->
{include file="dop_menu.tpl"}
<!-- Конец дополнительного меню -->

<table width="100%" border="0" cellspacing="0" cellpadding="0">
[not-aviable=forum|main]

<tr style="height:1%" height="1%">
<td colspan="2">
<!-- br>&nbsp;<br -->
</td><br/>
<td width="2%" rowspan="3" class="left_column"><div class="left_column">
<div class="box">

<div id="last_opinions">
<h2 class="news_head1" > Популярные новости</h2>
<div class="box">
{sblocks_popular_categor}
</div>
</div>

<div class="sep1">&nbsp;</div>


<div id="last_opinions"><div class="box">
Место рекламы
</div></div>
</div>
</div><!--/left_column--> </td>

</tr>
[/not-aviable]
[not-aviable=main]
<tr>
<td width="100%"><div id="articles">
<li class="article">

{info}
{content}
[/not-aviable]


[category=9][not-aviable=showfull]
{custom category="2,9,11,19,27,35,43,51,59,67,75,83,91,99,107,115" template="shortstory" aviable="global" from="0" limit="5" cache="no"}
[/not-aviable] [/category]



[category=122][not-aviable=showfull]
{custom category="3,12,20,28,36,44,52,60,68,76,84,92,100,108,116,122" template="shortstory" aviable="global" from="0" limit="5" cache="no"}
[/not-aviable] [/category]



[category=123][not-aviable=showfull]
{custom category="4,13,21,29,37,45,53,61,69,77,85,93,101,109,117,123" template="shortstory" aviable="global" from="0" limit="5" cache="no"}
[/not-aviable] [/category]



[category=124][not-aviable=showfull]
{custom category="5,14,22,30,38,46,54,62,70,78,86,94,102,110,118,124" template="shortstory" aviable="global" from="0" limit="5" cache="no"}
[/not-aviable] [/category]



[category=125][not-aviable=showfull]
{custom category="6,15,23,31,39,47,55,63,71,79,87,95,103,111,119,125" template="shortstory" aviable="global" from="0" limit="5" cache="no"}
[/not-aviable] [/category]



[category=126][not-aviable=showfull]
{custom category="7,16,24,32,40,48,56,64,72,80,88,96,104,112,120,126" template="shortstory" aviable="global" from="0" limit="5" cache="no"}
[/not-aviable] [/category]



[category=127][not-aviable=showfull]
{custom category="8,17,25,33,41,49,57,65,73,81,89,97,105,113,121,127" template="shortstory" aviable="global" from="0" limit="5" cache="no"}
[/not-aviable] [/category]


</li>

</div>

</td>

</tr>
</table>

<br />
[aviable=main]
{include file="news.tpl"}
[/aviable]

<br />
<div id="tags" style="line-height: 40px">
Ключевые теги: {tags}
</div>
<br />
<div id="footer">

<div class="links"><span class="links">
<a
href="/forum/">Форум</a> |
<a href="/sitemap.html">Карта портала</a>
| <a
href="/mobilesites/">Сайты</a> | <a
href="/oproekte.html">О
проекте</a> | <a
href="/reklama.html">Реклама</a>
| <a
href="/zhurnal.html">Архив
журнала</a></span>
"Сплетник ХМАО" © 2010&#8212;2012 Все права защищены.
При использовании материалов <a
href="Для просмотра ссылки Войди или Зарегистрируйся">гиперссылка</a><br>
на источник обязательна.</div>

<div class="banners">{banner_statistic}{banner_tic}{banner_uralweb}</div>
</div>
</div>
</body>
</html>
 
Я здесь не вижу {include file="engine/gallery/external/tags.php?action=date&vertical=1&horizontal=4&cache=yes&search=1000"}
А где вы подключили? Дайте шаблон где подключили галерею
 
  • Автор темы
  • Заблокирован
  • #7
Вот в маин.пхп подключаю так {include file="news.tpl"}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr style="height:1%" height="1%">
<td colspan="2">
<!-- br>&nbsp;<br -->
</td>
<td width="2%" rowspan="3" class="left_column"><div class="left_column">
<div class="box">

<div id="last_opinions">
<h2 class="news_head1">
Самое читаемое</h2>
<div class="box">
{sblocks_popular}
</div>
</div>

</div>
</div><!--/left_column--> </td>

</tr>

<tr>
<td width="100%"><div id="articles">
<h2 class="news_head1">
Последние новости ХМАО</h2>
<div class="article">
{custom category="2,9,11,19,27,35,43,51,59,67,75,83,91,99,107,115" template="shortstory_2" aviable="main" from="0" limit="5" cache="no"}
</div>

</div>


<div id="content1" style="padding: 0px 16px 7px 13px">
<div class="newsblock3">
<div>
<b style="float: right" class="sss">
<a href=/news/><b>еще новости</b></a></b>
</div>
</div>
</div>
</td>

</tr>
</table>



<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr style="height:1%" height="1%">
<td colspan="2">
<!-- br>&nbsp;<br -->
</td>
<td width="2%" rowspan="3" class="left_column"><div class="left_column">
<div class="box">
<div id="articles">

<form method="post" action="/vote/7.html">
<h2 class="news_head1">Фоторепортажи</h2>
<div class="article1"><br />
<center>{sblocks_photo}</center>
</div>

</form></div>
<!--/left_column--> </td>

</tr>

<tr>
<b colspan="2"><div id="main_news">
</div>
</b>
<td width="49%"><div id="articles">
<h2 class="news_head1">Политика</h2>
<div class="article">
{custom category="3,12,20,28,36,44,52,60,68,76,84,92,100,108,116,122" template="shortstory_2" aviable="main" from="0" limit="5" cache="no"}
</div>
</div>

<div id="content1" style="padding: 0px 16px 7px 13px">
<div class="newsblock3">
<div>
<b style="float: right" class="sss">
<a href=/politika/><b>еще новости</b></b>
</div>
</div>
</div>
</td>

<td width="49%" class="center_column">
<div id="device_news">
<h2 class="news_head1">Экономика</a></h2>
<div class="news1">
{custom category="4,13,21,29,37,45,53,61,69,77,85,93,101,109,117,123" template="shortstory_2" aviable="main" from="0" limit="5" cache="no"}
</div>
</div>

<div id="content1" style="padding: 0px 16px 7px 13px">
<div class="newsblock3">
<div>
<b style="float: right" class="sss">
<a href=/ekonomika/><b>еще новости</b></b>
</div>
</div>
</div>

</td>
</tr>
</table>



<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr style="height:1%" height="1%">
<td colspan="2">
<!-- br>&nbsp;<br -->
</td>
<td width="2%" rowspan="3" class="left_column"><div class="left_column">
<div class="box">
<div id="articles">

<form method="post" action="/vote/7.html">
<h2 class="news_head1">Фотогалерея</h3>
<div class="article"><br/>
<center>.
{include file="engine/gallery/external/tags.php?action=date&vertical=1&horizontal=4&cache=yes&search=1000"}
</center>
</div>

</form></div>

</div>
</div><!--/left_column--> </td>

</tr>

<tr>
<b colspan="2"><div id="main_news">
</div>
</b>
<td width="49%"><div id="articles">
<h2 class="news_head1">Общество</h2>
<div class="article">
{custom category="5,14,22,30,38,46,54,62,70,78,86,94,102,110,118,124" template="shortstory_2" aviable="main" from="0" limit="5" cache="no"}
</div>
</div>


<div id="content1" style="padding: 0px 16px 7px 13px">
<div class="newsblock3">
<div>
<b style="float: right" class="sss">
<a href=/obschestvo/><b>еще новости</b></b>
</div>
</div>
</div>
</td>

<td width="49%" class="center_column">
<div id="device_news">
<h2 class="news_head1">Происшествия</h2>
<div class="news1">
{custom category="6,15,23,31,39,47,55,63,71,79,87,95,103,111,119,125" template="shortstory_2" aviable="main" from="0" limit="5" cache="no"}
</div>
</div>

<div id="content1" style="padding: 0px 16px 7px 13px">
<div class="newsblock3">
<div>
<b style="float: right" class="sss">
<a href=/proisshestviya/><b>еще новости</b></b>
</div>
</div>
</div>

</td>
</tr>
</table>




<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr style="height:1%" height="1%">
<td colspan="2">
<!-- br>&nbsp;<br -->
</td>
<td width="2%" rowspan="3" class="left_column"><div class="left_column">
<div class="box">
<div id="articles">

<form method="post" action="/vote/7.html">
<h2 class="news_head1">ЧтиВо</h2>
<div class="article">
{sblocks_stati}
</div>

</form></div>


</div>
</div><!--/left_column--> </td>

</tr>

<tr>
<b colspan="2"><div id="main_news">
</div>
</b>
<td width="49%"><div id="articles">
<h2 class="news_head1">Здоровье</h2>
<div class="article">
{custom category="7,16,24,32,40,48,56,64,72,80,88,96,104,112,120,126" template="shortstory_2" aviable="main" from="0" limit="5" cache="no"}
</div>

</div>


<div id="content1" style="padding: 0px 16px 7px 13px">
<div class="newsblock3">
<div>
<b style="float: right" class="sss">
<a href=/zdorove/><b>еще новости</b></a></b>
</div>
</div>
</div>
</td>

<td width="49%" class="center_column">
<div id="device_news">
<h2 class="news_head1">Спорт</h2>
<div class="news1">
{custom category="8,17,25,33,41,49,57,65,73,81,89,97,105,113,121,127" template="shortstory_2" aviable="main" from="0" limit="5" cache="no"}
</div>
</div>

<div id="content1" style="padding: 0px 16px 7px 13px">
<div class="newsblock3">
<div>
<b style="float: right" class="sss">
<a href=/zdorove/><b>еще новости</b></b>
</div>
</div>
</div>

</td>


</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr style="height:1%" height="1%">
<td colspan="2">
<!-- br>&nbsp;<br -->
</td>
<td width="2%" rowspan="3" class="left_column"><div class="left_column">
<div class="box">

<div id="last_opinions">
<h2 class="news_head1">Опрос на портале</h2>
<br />
<div valign="top" width="100%">
<div class="most_reading">
{vote}
<!--{include file="engine/gallery/external/tags.php?action=date&vertical=1&horizontal=4&cache=yes&search=1000"}--></div>
<br/>
</div>

</div>
</div>
</div><!--/left_column--> </td>

</tr>

<tr>
<td width="100%"><div id="articles">
<h2 class="news_head1">Общение на портале</h2>
<div class="article">


<table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<br />
<td width="65%"><div>
<h2><b><center>Новое на форуме</center></b></h2>
<div class="article"><br>
{forum}

</br>
</div>

</div>



</td>

<td width="34%" class="center_column">
<div id="device_news">
<h2 class=""><b><center>Коментарии</center></b></h2>
<div class="news1">
{include file="engine/modules/iComm/show.php"}
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
</td>

</tr>
</table>
<br />
<div class="sep1">&nbsp;</div>
 
1. <form method="post" action="/vote/7.html"> - не нужно вообще
 
64-строка: добавьте в начало до комментарии </div></div>
122-строка: замените на <h2 class="news_head1">Фотогалерея</h2>
И если удалите <form method...> (не знаю для чего они) удалите и все </form>
Проверьте теперь... Если ещё найду ошибки добавлю

Нууу, это все ошибки, если в стилях всё в порядке то должен работать правильно
 
Назад
Сверху