Module refers to the part of the CMS "Interactive" and can be installed optionally.
Full administrative part of the module consists of four parts:
The first two – units and categories – define the structure of the forum. Therefore, the administrator should describe them in the beginning, before the start of the forum.
Threads and Posts Forum create users, according to the module settings.
Some users can assign moderators – tab "Permissions for public site" (Users – User group). Moderators get the right to delete, lock and edit threads and posts.
Note: Content Module "Forum" is not divided into sections. This means that the attachment of the module to different pages on the site will completely overlapping blocks, categories, and the forum messages.
Blocks – global division of categories into logical parts. Blocks do not have separate pages in the user's part. They are displayed only on the first page of the module.
When editing for the following field you can set the units.
Categories – a more detailed razedelenie topics. Categories are separate pages in the public part.
When you edit the categories for the following fields can be set.
Topics – this page created by users on the site. Threads share a common direction in the search.
When editing of the following fields can be set.
Messages are created by users on the site in the same topic. Messages can be nested, that is, the same message will be the answer for another. The administrative part of the messages are displayed in a list in the order of adding the new to the old hierarchy (nesting) are not taken into account.
Messages have the following characteristics.
Для работы с модулем «Forum» служат следующие шаблонные теги:
show_block – shows latest topics.
Атрибуты:
— count – number of displayed topics (by default 3);
— block_id – forum blocks. Block identifiers are enumerated comma-separated. You can indicate negative value, then the topics from the indicated blocks will be excluded. По умолчанию блок не учитывается, выводятся темы из всех блоков;
— cat_id – forum categories. Category identifiers are enumerated comma-separated. You can indicate negative value, then the topics from the indicated category will be excluded. По умолчанию категория не учитывается, выводятся темы из всех категорий;
— sort – sorting topics: by default as on the module page, date – by date, rand – randomly, keywords – topics with similar titles for the current page;
— only_module – show the block only on the page to which "Forum" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;
— defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;
— defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;
— template – tag template (file modules/forum/views/forum.view.show_block_template.php; default - file modules/forum/views/forum.view.show_block.php).
Example:
<insert name="show_block_rel" module="forum">
выведет 3 похожие на текущую темы
В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"]
.
show_block_messages – shows messages block.
Атрибуты:
— count – number of displayed messages (by default 3);
— block_id – блоки форума. Идентификаторы блоков перечисляются через запятую. You can indicate negative value, then the messages from the indicated blocks will be excluded. По умолчанию блок не учитывается, выводятся сообщения из всех блоков.;
— cat_id – категории форума. Category identifiers are enumerated comma-separated. You can indicate negative value, then the messages from the indicated category will be excluded. По умолчанию категория не учитывается, выводятся сообщения из всех категорий;
— only_module – show the block only on the page to which "Forum" module is attached: true – show the block only on the module page, by default the block will be shown on all pages;
— defer – deferred load tag template tag: event – load content only at the request of the user when you click "Upload", emergence – load content only when the client window appears in the browser window, async – asynchronous (simultaneous) content loading together with the content of template tags with the same marker, sync – synchronous (sequential) load of content in conjunction with the content of template tags with the same marker, by default, downloading content only at the request of the user;
— defer_title – text string displayed at the point where the loadable content appears with the help of delayed loading of the template tag;
— template – tag template (file modules/forum/views/forum.view.show_block_messages_template.php; default - file modules/forum/views/forum.view.show_block_messages.php).
Example:
<insert name="show_block_messages" module="forum">
В шаблоне тега можно получить значение любого атрибута через переменную $result["attributes"]["название атрибута"]
.
{forum} – Forum topics
{forum_blocks} – From blocks
{forum_category} – Forum categories
{forum_messages} – Forum messages
{forum_messages_parents} – Parents relations of messages
{forum_show} – New messages and topics for users
modules/forum/admin/forum.admin.php – Редактирование тем форума;
modules/forum/admin/forum.admin.blocks.php – Редактирование блоков форума;
modules/forum/admin/forum.admin.category.php – Editing forum categories;
modules/forum/admin/forum.admin.config.php – Module settings;
modules/forum/admin/forum.admin.count.php – Количество неактивных тем и сообщений на форуме для меню административной панели;
modules/forum/admin/forum.admin.messages.php – Редактирование сообщений;
modules/forum/admin/forum.admin.role.php – Права пользователя для пользовательской части, испольуземые модулем;
modules/forum/forum.php – Controller;
modules/forum/forum.action.php – Handling POST-request;
modules/forum/forum.install.php – Module installation;
modules/forum/forum.model.php – Model;
modules/forum/forum.sitemap.php – Map of links for "Site map" module;
modules/forum/img/* – images;
modules/forum/js/forum.js – JS-сценарий модуля;
modules/forum/views/forum.view.author.php – Шаблон вывода информации о пользователе;
modules/forum/views/forum.view.author_message.php – Шаблон вывода информации о пользователе;
modules/forum/views/forum.view.author_message_main.php – Шаблон вывода информации о пользователе;
modules/forum/views/forum.view.edit.php – Шаблон формы редактирования/добавления категории;
modules/forum/views/forum.view.edit_message.php – Шаблон формы редактирования сообщения;
modules/forum/views/forum.view.first_page.php – Шаблон первой страницы модуля;
modules/forum/views/forum.view.form_message.php – Шаблон формы добавления сообщения;
modules/forum/views/forum.view.form_search.php – Шаблон формы поиска по темам и сообщениям;
modules/forum/views/forum.view.get_attachments.php – Шаблон прикрепленных к сообщению файлов;
modules/forum/views/forum.view.id.php – Theme page template;
modules/forum/views/forum.view.id_message.php – Шаблон сообщения;
modules/forum/views/forum.view.id_messages.php – Шаблон сообщения с формой ответа на него и списком ответов;
modules/forum/views/forum.view.list_category.php – List template of forum category;
modules/forum/views/forum.view.list_id.php – Topic template on category page;
modules/forum/views/forum.view.list_messages.php – Шаблон списка сообщений;
modules/forum/views/forum.view.list_new.php – Шаблон страницы новых сообщений;
modules/forum/views/forum.view.list_search.php – Шаблон списка найденных сообщений;
modules/forum/views/forum.view.rows.php – Шаблон списка категорий форума;
modules/forum/views/forum.view.rows_block.php – Шаблон блока тем форума;
modules/forum/views/forum.view.rows_block_messages.php – Шаблон блока сообщений форума;
modules/forum/views/forum.view.rows_new.php – Шаблон страницы новых сообщений;
modules/forum/views/forum.view.rows_search.php – Шаблон элементов в списке найденных сообщений;
modules/forum/views/forum.view.show_block.php – Шаблон блока тем форума;
modules/forum/views/forum.view.show_block_messages.php – Шаблон блока сообщений форума.