Проверяйте правки шаблонов, особенно шаблонаЛена писал(а):при нажатии на какую-нибудь тему вылазит ошибка " Parse error: syntax error, unexpected '}' /www/домен/cache/tpl_RedSilver_viewforum_body.html.php on line 137 "
Avatar of poster on Index and Viewforum phpbb3
Модераторы: Vl@d1m1r, Lorem Ipsum, Atlas
Правила форума
----
----
- DeaDRoMeO
- Старожил Форума
- Сообщения: 16763
- Стаж: 13 лет 1 месяц
- Откуда: Витебск
- Контактная информация:
Avatar of poster on Index and Viewforum phpbb3
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
Avatar of poster on Index and Viewforum phpbb3
Ну ребенка уложу на ночь спать и попробую все заново поставить . А вот если я правлю свой стиль, мне prosilver точно не трогать? Или в нем тоже надо правки делать?
- DeaDRoMeO
- Старожил Форума
- Сообщения: 16763
- Стаж: 13 лет 1 месяц
- Откуда: Витебск
- Контактная информация:
Avatar of poster on Index and Viewforum phpbb3
Правки делать надо в том стиле, который используете))
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
Avatar of poster on Index and Viewforum phpbb3
Поставил этот мод, хотя и не с первой попытки
- DeaDRoMeO
- Старожил Форума
- Сообщения: 16763
- Стаж: 13 лет 1 месяц
- Откуда: Витебск
- Контактная информация:
Avatar of poster on Index and Viewforum phpbb3
Ну у народа он тяжело устанавливается, там много мест где надо быть очень внимательным при установке))
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
Avatar of poster on Index and Viewforum phpbb3
Я его устанавливал часов так 5, там точно надо быть очень внимательным, думал уже кидать когда не получилось, но потом собрался силами и сделал
Картинки прилипил к левому краб, так вроде ровнее.
Сейчас буду думать как сделать в блоке последних сообщений на субсильвере.
Сделал правки в инклюдес, а вот в темплейте не осилил. Сергей, подскажи, пожалуйста как сделать.
Картинки прилипил к левому краб, так вроде ровнее.
Сейчас буду думать как сделать в блоке последних сообщений на субсильвере.
Сделал правки в инклюдес, а вот в темплейте не осилил. Сергей, подскажи, пожалуйста как сделать.
- DeaDRoMeO
- Старожил Форума
- Сообщения: 16763
- Стаж: 13 лет 1 месяц
- Откуда: Витебск
- Контактная информация:
Avatar of poster on Index and Viewforum phpbb3
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
Avatar of poster on Index and Viewforum phpbb3
Я уже скачал этот аддон, только не пойму какие правки надо сделать в recent_topics_body.html в субсильвере
- DeaDRoMeO
- Старожил Форума
- Сообщения: 16763
- Стаж: 13 лет 1 месяц
- Откуда: Витебск
- Контактная информация:
Avatar of poster on Index and Viewforum phpbb3
Сложно обьяснить, вот код моего шаблона, поглядите как в нем прописано условие для аватар
Само условие показа аватар
Код: Выделить всё
<table class="tablebg" width="100%" cellspacing="0">
<tr>
<th colspan="2"> {L_TOPICS} </th>
<th> {L_REPLIES} </th>
<th> {L_VIEWS} </th>
<th > {L_LAST_POST} </th>
</tr>
<!-- BEGIN recent_topics -->
<tr>
<!-- IF recent_topics.TOPIC_AUTHOR_AVATAR --><td class="row7" width="40px">{recent_topics.TOPIC_AUTHOR_AVATAR}</td><!-- ENDIF -->
<td class="row7">
<!-- IF recent_topics.S_UNREAD_TOPIC --><a href="{recent_topics.U_NEWEST_POST}">{NEWEST_POST_IMG}</a><!-- ENDIF -->
{recent_topics.ATTACH_ICON_IMG} <!-- IF recent_topics.S_HAS_POLL or recent_topics.S_TOPIC_MOVED --><b>{recent_topics.TOPIC_TYPE}</b> <!-- ENDIF --><a title="{L_POSTED}: {recent_topics.FIRST_POST_TIME}" href="{recent_topics.U_VIEW_TOPIC}" class="topictitle">{recent_topics.TOPIC_TITLE}</a> <!-- IF recent_topics.SEO_DESC_TOPIC --><br/><i><strong>{recent_topics.SEO_DESC_TOPIC}</strong></i><!-- ENDIF -->
<!-- IF recent_topics.S_TOPIC_UNAPPROVED or recent_topics.S_POSTS_UNAPPROVED -->
<a href="{recent_topics.U_MCP_QUEUE}">{recent_topics.UNAPPROVED_IMG}</a>
<!-- ENDIF -->
<!-- IF recent_topics.S_TOPIC_REPORTED -->
<a href="{recent_topics.U_MCP_REPORT}">{recent_topics.REPORTED_IMG}</a>
<!-- ENDIF -->
<!-- IF recent_topics.PAGINATION -->
<br/>
<div class="pagination">
<a class=" genmed" href="#" onclick="jumpto(); return false;" title="{L_JUMP_TO_PAGE}">{PAGE_NUMBER}</a> <span>{recent_topics.PAGINATION}</span>
</div>
<!-- ENDIF -->
<p class="gensmall">{L_POST_BY_AUTHOR} {recent_topics.TOPIC_AUTHOR_FULL}
<!-- IF recent_topics.U_VIEW_FORUM and recent_topics.FORUM_NAME -->
»{L_IN} <!-- BEGIN parent_forums --><a href="{recent_topics.parent_forums.U_VIEW_FORUM}" style="font-weight: bold;">{recent_topics.parent_forums.FORUM_NAME}</a> » <!-- END parent_forums --><a href="{recent_topics.U_VIEW_FORUM}" style="font-weight: bold;">{recent_topics.FORUM_NAME}</a>
<!-- ENDIF -->
</p>
</td>
<td class="row7" width="50" align="center"><p class="topicdetails">{recent_topics.REPLIES}</p></td>
<td class="row7" width="50" align="center"><p class="topicdetails">{recent_topics.VIEWS}</p></td>
<td class="row7" width="140" align="center">
<table width="100%">
<tr>
<!-- IF recent_topics.LAST_POST_AUTHOR_AVATAR --><td class="row7" width="{recent_topics.AVATAR_WIDTH}">{recent_topics.LAST_POST_AUTHOR_AVATAR}</td><!-- ENDIF -->
<td>
<p class="topicdetails" style="white-space: nowrap;">{recent_topics.LAST_POST_TIME}</p>
<p class="topicdetails">{recent_topics.LAST_POST_AUTHOR_FULL}
<a href="{recent_topics.U_LAST_POST}">{LAST_POST_IMG}</a>
</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- BEGINELSE -->
<tr>
<!-- IF S_TOPIC_ICONS -->
<td class="row7" colspan="7" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
<!-- ELSE -->
<td class="row7" colspan="6" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
<!-- ENDIF -->
</tr>
<!-- END recent_topics -->
</table>
Код: Выделить всё
<!-- IF recent_topics.TOPIC_AUTHOR_AVATAR --><td class="row7" width="40px">{recent_topics.TOPIC_AUTHOR_AVATAR}</td><!-- ENDIF -->
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
Avatar of poster on Index and Viewforum phpbb3
ничего не получается, вот мой код, куда надо вставить код? Спасибо за терпение!
Код: Выделить всё
<!-- $Id: recent_topics_body.html 68 2008-01-06 01:03:56Z nickvergessen $ -->
<div id="pagecontent">
<!-- IF PAGINATION -->
<table width="100%" cellspacing="1">
<tr>
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
</tr>
</table>
<!-- ENDIF -->
<table class="tablebg" width="100%" cellspacing="1">
<tr class="nav">
<td class="cat" colspan="<!-- IF S_TOPIC_ICONS -->6<!-- ELSE -->5<!-- ENDIF -->" valign="middle" align="center">{L_RECENT_TOPICS}</td>
</tr>
<tr>
<!-- IF S_TOPIC_ICONS -->
<th colspan="3"> {L_TOPICS} </th>
<!-- ELSE -->
<th colspan="2"> {L_TOPICS} </th>
<!-- ENDIF -->
<th> {L_REPLIES} </th>
<th> {L_VIEWS} </th>
<th> {L_LAST_POST} </th>
</tr>
<!-- BEGIN recenttopicrow -->
<!-- IF recenttopicrow.S_TOPIC_TYPE_SWITCH eq 1 -->
<tr>
<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_ANNOUNCEMENTS}</b></td>
</tr>
<!-- ELSEIF recenttopicrow.S_TOPIC_TYPE_SWITCH eq 0 -->
<tr>
<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_TOPICS}</b></td>
</tr>
<!-- ENDIF -->
<tr>
<td class="row1" width="25" align="center">{recenttopicrow.TOPIC_FOLDER_IMG}</td>
<!-- IF S_TOPIC_ICONS -->
<td class="row1" width="25" align="center"><!-- IF recenttopicrow.TOPIC_ICON_IMG --><img src="{T_ICONS_PATH}{recenttopicrow.TOPIC_ICON_IMG}" width="{recenttopicrow.TOPIC_ICON_IMG_WIDTH}" height="{recenttopicrow.TOPIC_ICON_IMG_HEIGHT}" alt="" title="" /><!-- ENDIF --></td>
<!-- ENDIF -->
<td class="row1">
<!-- IF recenttopicrow.S_UNREAD_TOPIC --><a href="{recenttopicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a><!-- ENDIF -->
{recenttopicrow.ATTACH_ICON_IMG} <!-- IF recenttopicrow.S_HAS_POLL or recenttopicrow.S_TOPIC_MOVED --><b>{recenttopicrow.TOPIC_TYPE}</b> <!-- ENDIF --><a title="{L_POSTED}: {recenttopicrow.FIRST_POST_TIME}" href="{recenttopicrow.U_VIEW_TOPIC}" class="topictitle">{recenttopicrow.TOPIC_TITLE}</a>
<!-- IF recenttopicrow.S_TOPIC_UNAPPROVED or recenttopicrow.S_POSTS_UNAPPROVED -->
<a href="{recenttopicrow.U_MCP_QUEUE}">{recenttopicrow.UNAPPROVED_IMG}</a>
<!-- ENDIF -->
<!-- IF recenttopicrow.S_TOPIC_REPORTED -->
<a href="{recenttopicrow.U_MCP_REPORT}">{REPORTED_IMG}</a>
<!-- ENDIF -->
<!-- IF recenttopicrow.PAGINATION -->
<p class="gensmall"> [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {recenttopicrow.PAGINATION} ] </p>
<!-- ENDIF -->
<p class="gensmall">{L_POST_BY_AUTHOR} {recenttopicrow.LAST_POST_AUTHOR_FULL}
{L_POSTED_ON_DATE} {recenttopicrow.LAST_POST_TIME}
<!-- IF recenttopicrow.U_VIEW_FORUM and recenttopicrow.FORUM_NAME -->
{L_IN} <a href="{recenttopicrow.U_VIEW_FORUM}" style="font-weight: bold;">{recenttopicrow.FORUM_NAME}</a>
<!-- ENDIF -->
</p>
</td>
<td class="row1" width="50" align="center"><p class="topicdetails">{recenttopicrow.REPLIES}</p></td>
<td class="row2" width="50" align="center"><p class="topicdetails">{recenttopicrow.VIEWS}</p></td>
<td class="row1" width="140" align="center">
<p class="topicdetails" style="white-space: nowrap;">{recenttopicrow.LAST_POST_TIME}</p>
<p class="topicdetails">{recenttopicrow.LAST_POST_AUTHOR_FULL}
<a href="{recenttopicrow.U_LAST_POST}">{LAST_POST_IMG}</a>
</p>
</td>
</tr>
<!-- BEGINELSE -->
<tr>
<!-- IF S_TOPIC_ICONS -->
<td class="row1" colspan="7" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
<!-- ELSE -->
<td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
<!-- ENDIF -->
</tr>
<!-- END recenttopicrow -->
</table>
</div>
<br clear="all" />
Avatar of poster on Index and Viewforum phpbb3
Беда. При попытке создания новой категории, или нового форума выдаёт:
Общая ошибка
SQL ERROR [ mysqli ]
Field 'forum_last_poster_avatar' doesn't have a default value [1364]
SQL
INSERT INTO phpbb_forums (parent_id, forum_type, forum_status, forum_parents, forum_name, forum_link, forum_desc, forum_desc_uid, forum_desc_options, forum_desc_bitfield, forum_seo_key, forum_seo_desc, forum_seo_bottom, forum_rules, forum_rules_uid, forum_rules_options, forum_rules_bitfield, forum_rules_link, forum_image, forum_style, display_subforum_list, forum_subforumslist_type, display_on_index, forum_topics_per_page, forum_recent_topics, enable_indexing, enable_icons, enable_prune, prune_days, prune_viewed, prune_freq, forum_pertopic, forum_perpost, forum_peredit, forum_costs, default_display, forum_options, forum_flags, left_id, right_id) VALUES (1, 1, 0, '', 'Basa', '', '', '', 7, '', '', '', '', '', '', 7, '', '', '', 0, 1, 0, 0, 0, 1, 1, 0, 0, 7, 7, 1, 0, 0, 0, 0, 1, 0, 48, '26', 27)
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()
FILE: [ROOT]/includes/db/mysqli.php
LINE: 182
CALL: dbal->sql_error()
FILE: [ROOT]/includes/acp/acp_forums.php
LINE: 1063
CALL: dbal_mysqli->sql_query()
FILE: [ROOT]/includes/acp/acp_forums.php
LINE: 201
CALL: acp_forums->update_forum_data()
FILE: [ROOT]/includes/functions_module.php
LINE: 507
CALL: acp_forums->main()
FILE: [ROOT]/adm/index.php
LINE: 74
CALL: p_master->load_active()
Avatar of poster on Index and Viewforum phpbb3
После деинсталяции мода заработало
- DeaDRoMeO
- Старожил Форума
- Сообщения: 16763
- Стаж: 13 лет 1 месяц
- Откуда: Витебск
- Контактная информация:
Avatar of poster on Index and Viewforum phpbb3
jasiuk, может так
Prowhman, указанное поле не имеет значения по умолчанию, скрипты-инсталляторы после установки запускали ???
Код: Выделить всё
<!-- $Id: recent_topics_body.html 68 2008-01-06 01:03:56Z nickvergessen $ -->
<div id="pagecontent">
<!-- IF PAGINATION -->
<table width="100%" cellspacing="1">
<tr>
<td class="nav" valign="middle" nowrap="nowrap"> {PAGE_NUMBER}<br /></td>
<td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
</tr>
</table>
<!-- ENDIF -->
<table class="tablebg" width="100%" cellspacing="1">
<tr class="nav">
<td class="cat" colspan="<!-- IF S_TOPIC_ICONS -->6<!-- ELSE -->5<!-- ENDIF -->" valign="middle" align="center">{L_RECENT_TOPICS}</td>
</tr>
<tr>
<!-- IF S_TOPIC_ICONS -->
<th colspan="4"> {L_TOPICS} </th>
<!-- ELSE -->
<th colspan="3"> {L_TOPICS} </th>
<!-- ENDIF -->
<th> {L_REPLIES} </th>
<th> {L_VIEWS} </th>
<th> {L_LAST_POST} </th>
</tr>
<!-- BEGIN recenttopicrow -->
<!-- IF recenttopicrow.S_TOPIC_TYPE_SWITCH eq 1 -->
<tr>
<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->8<!-- ELSE -->7<!-- ENDIF -->"><b class="gensmall">{L_ANNOUNCEMENTS}</b></td>
</tr>
<!-- ELSEIF recenttopicrow.S_TOPIC_TYPE_SWITCH eq 0 -->
<tr>
<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->8<!-- ELSE -->7<!-- ENDIF -->"><b class="gensmall">{L_TOPICS}</b></td>
</tr>
<!-- ENDIF -->
<tr>
<!-- IF recent_topics.TOPIC_AUTHOR_AVATAR --><td class="row7" width="40px">{recent_topics.TOPIC_AUTHOR_AVATAR}</td><!-- ENDIF -->
<td class="row1" width="25" align="center">{recenttopicrow.TOPIC_FOLDER_IMG}</td>
<!-- IF S_TOPIC_ICONS -->
<td class="row1" width="25" align="center"><!-- IF recenttopicrow.TOPIC_ICON_IMG --><img src="{T_ICONS_PATH}{recenttopicrow.TOPIC_ICON_IMG}" width="{recenttopicrow.TOPIC_ICON_IMG_WIDTH}" height="{recenttopicrow.TOPIC_ICON_IMG_HEIGHT}" alt="" title="" /><!-- ENDIF --></td>
<!-- ENDIF -->
<td class="row1">
<!-- IF recenttopicrow.S_UNREAD_TOPIC --><a href="{recenttopicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a><!-- ENDIF -->
{recenttopicrow.ATTACH_ICON_IMG} <!-- IF recenttopicrow.S_HAS_POLL or recenttopicrow.S_TOPIC_MOVED --><b>{recenttopicrow.TOPIC_TYPE}</b> <!-- ENDIF --><a title="{L_POSTED}: {recenttopicrow.FIRST_POST_TIME}" href="{recenttopicrow.U_VIEW_TOPIC}" class="topictitle">{recenttopicrow.TOPIC_TITLE}</a>
<!-- IF recenttopicrow.S_TOPIC_UNAPPROVED or recenttopicrow.S_POSTS_UNAPPROVED -->
<a href="{recenttopicrow.U_MCP_QUEUE}">{recenttopicrow.UNAPPROVED_IMG}</a>
<!-- ENDIF -->
<!-- IF recenttopicrow.S_TOPIC_REPORTED -->
<a href="{recenttopicrow.U_MCP_REPORT}">{REPORTED_IMG}</a>
<!-- ENDIF -->
<!-- IF recenttopicrow.PAGINATION -->
<p class="gensmall"> [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {recenttopicrow.PAGINATION} ] </p>
<!-- ENDIF -->
<p class="gensmall">{L_POST_BY_AUTHOR} {recenttopicrow.LAST_POST_AUTHOR_FULL}
{L_POSTED_ON_DATE} {recenttopicrow.LAST_POST_TIME}
<!-- IF recenttopicrow.U_VIEW_FORUM and recenttopicrow.FORUM_NAME -->
{L_IN} <a href="{recenttopicrow.U_VIEW_FORUM}" style="font-weight: bold;">{recenttopicrow.FORUM_NAME}</a>
<!-- ENDIF -->
</p>
</td>
<td class="row1" width="50" align="center"><p class="topicdetails">{recenttopicrow.REPLIES}</p></td>
<td class="row2" width="50" align="center"><p class="topicdetails">{recenttopicrow.VIEWS}</p></td>
<td class="row1" width="140" align="center">
<p class="topicdetails" style="white-space: nowrap;">{recenttopicrow.LAST_POST_TIME}</p>
<p class="topicdetails">{recenttopicrow.LAST_POST_AUTHOR_FULL}
<a href="{recenttopicrow.U_LAST_POST}">{LAST_POST_IMG}</a>
</p>
</td>
</tr>
<!-- BEGINELSE -->
<tr>
<!-- IF S_TOPIC_ICONS -->
<td class="row1" colspan="7" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
<!-- ELSE -->
<td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
<!-- ENDIF -->
</tr>
<!-- END recenttopicrow -->
</table>
</div>
<br clear="all" />
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
Avatar of poster on Index and Viewforum phpbb3
Запускал и мод прекрасно работал, только категории не создавались
- DeaDRoMeO
- Старожил Форума
- Сообщения: 16763
- Стаж: 13 лет 1 месяц
- Откуда: Витебск
- Контактная информация:
Avatar of poster on Index and Viewforum phpbb3
А 2 скрипта запускали ?? Сейчас все нормально ? Мод работает ?
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
Avatar of poster on Index and Viewforum phpbb3
Я запустил скрипт, чтобы деинсталировать модуль и всё заработало. Сейчас опять запустил два установочных скрипты - db_130_update и db_update - модуль установился, но категории снова не создаются о_О
Avatar of poster on Index and Viewforum phpbb3
Сергей, ыот что получилось после изменения файла
- DeaDRoMeO
- Старожил Форума
- Сообщения: 16763
- Стаж: 13 лет 1 месяц
- Откуда: Витебск
- Контактная информация:
Avatar of poster on Index and Viewforum phpbb3
Тогда откатите правки и найдите
Заменить на
Prowhman, значит деинсталируйте опять, раз таким образом у вас работает
Код: Выделить всё
<td class="row1" width="25" align="center">{recenttopicrow.TOPIC_FOLDER_IMG}</td>
Код: Выделить всё
<!-- IF recent_topics.TOPIC_AUTHOR_AVATAR --><td class="row7" width="40px">{recent_topics.TOPIC_AUTHOR_AVATAR}</td><!-- ENDIF -->
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!
Avatar of poster on Index and Viewforum phpbb3
Тогда модуль не будет работать) Значит, надо деинсталировать, добавить все нужные разделы и потом опять установить и не париться)
- DeaDRoMeO
- Старожил Форума
- Сообщения: 16763
- Стаж: 13 лет 1 месяц
- Откуда: Витебск
- Контактная информация:
Avatar of poster on Index and Viewforum phpbb3
Странно вообщем то, с БД работать умеете ?? Может вручную задать значение по умолчанию для этого поля ??
На вопросы, связанные с phpBB, по ЛС не отвечаю !!!