Forum

Module refers to the part of the CMS "Interactive" and can be installed optionally.

Full administrative part of the module consists of four parts:

  • blocks
  • categories
  • topics
  • messages

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" (UsersUser 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

List of blocks

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.

Edit of block

When editing for the following field you can set the units.

Categories

Categories – a more detailed razedelenie topics. Categories are separate pages in the public part.

List of categories

When you edit the categories for the following fields can be set.

Edit of categoriy

Topics

List of topics

Topics – this page created by users on the site. Threads share a common direction in the search.

Edit of topic

When editing of the following fields can be set.

Messages

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.

List of messages

Messages have the following characteristics.

Edit of message

Settings

Settings

Template tags

Для работы с модулем «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"]["название атрибута"].

Database

{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

Files

  1. modules/forum/admin/forum.admin.php – Редактирование тем форума;

  2. modules/forum/admin/forum.admin.blocks.php – Редактирование блоков форума;

  3. modules/forum/admin/forum.admin.category.php – Editing forum categories;

  4. modules/forum/admin/forum.admin.config.php – Module settings;

  5. modules/forum/admin/forum.admin.count.php – Количество неактивных тем и сообщений на форуме для меню административной панели;

  6. modules/forum/admin/forum.admin.messages.php – Редактирование сообщений;

  7. modules/forum/admin/forum.admin.role.php – Права пользователя для пользовательской части, испольуземые модулем;

  8. modules/forum/forum.php – Controller;

  9. modules/forum/forum.action.php – Handling POST-request;

  10. modules/forum/forum.install.php – Module installation;

  11. modules/forum/forum.model.php – Model;

  12. modules/forum/forum.sitemap.php – Map of links for "Site map" module;

  13. modules/forum/img/* – images;

  14. modules/forum/js/forum.js – JS-сценарий модуля;

  15. modules/forum/views/forum.view.author.php – Шаблон вывода информации о пользователе;

  16. modules/forum/views/forum.view.author_message.php – Шаблон вывода информации о пользователе;

  17. modules/forum/views/forum.view.author_message_main.php – Шаблон вывода информации о пользователе;

  18. modules/forum/views/forum.view.edit.php – Шаблон формы редактирования/добавления категории;

  19. modules/forum/views/forum.view.edit_message.php – Шаблон формы редактирования сообщения;

  20. modules/forum/views/forum.view.first_page.php – Шаблон первой страницы модуля;

  21. modules/forum/views/forum.view.form_message.php – Шаблон формы добавления сообщения;

  22. modules/forum/views/forum.view.form_search.php – Шаблон формы поиска по темам и сообщениям;

  23. modules/forum/views/forum.view.get_attachments.php – Шаблон прикрепленных к сообщению файлов;

  24. modules/forum/views/forum.view.id.php – Theme page template;

  25. modules/forum/views/forum.view.id_message.php – Шаблон сообщения;

  26. modules/forum/views/forum.view.id_messages.php – Шаблон сообщения с формой ответа на него и списком ответов;

  27. modules/forum/views/forum.view.list_category.php – List template of forum category;

  28. modules/forum/views/forum.view.list_id.php – Topic template on category page;

  29. modules/forum/views/forum.view.list_messages.php – Шаблон списка сообщений;

  30. modules/forum/views/forum.view.list_new.php – Шаблон страницы новых сообщений;

  31. modules/forum/views/forum.view.list_search.php – Шаблон списка найденных сообщений;

  32. modules/forum/views/forum.view.rows.php – Шаблон списка категорий форума;

  33. modules/forum/views/forum.view.rows_block.php – Шаблон блока тем форума;

  34. modules/forum/views/forum.view.rows_block_messages.php – Шаблон блока сообщений форума;

  35. modules/forum/views/forum.view.rows_new.php – Шаблон страницы новых сообщений;

  36. modules/forum/views/forum.view.rows_search.php – Шаблон элементов в списке найденных сообщений;

  37. modules/forum/views/forum.view.show_block.php – Шаблон блока тем форума;

  38. modules/forum/views/forum.view.show_block_messages.php – Шаблон блока сообщений форума.