Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Куратор/модератор темы

Опубликовано:

Имя файла: Куратор/модератор темы

Владелец файла: andaril

Файл размещен: 14 май 2007

Файл обновлен: 14 фев 2011

Категория файла: Mods/Моды

 

Эта модификация позволяет добавить куратора для темы.

 

+---------------------------------------------------------------------

| Invision Power Board v2.1.x

| =================================================================

| При поддержке ipbskins.ru

| =================================================================

+---------------------------------------------------------------------

|

| > Мод "Куратор/Модератор одной темы"

| > Автор fr0z3n aka andar!l

|

| > Автор оригинального мода для версий 2.0.х Пухыч

| > Версия: 1.0

| > Дата: 19.02.2007

|

+---------------------------------------------------------------------

|

| > Эта модификация позволяет добавить куратора для темы.

| > Куратор может удалять, и редактировать сообщения в пределах одной

| > темы. Добавлять куратора может супермодератор

|

+---------------------------------------------------------------------

|

| > Автор не несет ответственности за проблемы в связи с

| > использованием этой модификации

| > Используйте мод на свой страх и риск.

|

| > Author is not responsible for any consequences of using this

| > forum modification, including those caused by this module

| > Use at your own risk

|

+---------------------------------------------------------------------

 

Нажмите сюда, чтобы скачать этот файл

Изменено пользователем andaril

Рекомендованные сообщения

Опубликовано:

Решил проблему:

######################################################################
./sources/action_public/forums.php
======================================================================
НАЙТИ
----------------------------------------------------------------------
if ($this->pinned_print == 0)
		{
			// we've a pinned topic, but we've not printed the pinned
			// starter row, so..

			$show    = $this->announce_out ? 1 : 0;
			$p_start = $this->ipsclass->compiled_templates['skin_forum']->render_pinned_start( $show );

			$this->pinned_print = 1;
		}

		return $p_start . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1 );
----------------------------------------------------------------------
ЗАМЕНИТЬ
----------------------------------------------------------------------
return $p_start . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1 );
----------------------------------------------------------------------
НА
----------------------------------------------------------------------
    //curator
           $list = unserialize(stripslashes($topic['curator_id']));
           if ($list['id'])
           {
           $curator='<strong><span style="color: green">Куратор темы:</span> <a href="./index.php?showuser='.$list['id'].'">'.$list['name'].'</a></strong>';
           }
           return $p_start . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1, $curator);
           //curator
----------------------------------------------------------------------
НАЙТИ
----------------------------------------------------------------------
if ($this->pinned_print == 1)
		{
			//-----------------------------------------
			// Nope, so..
			//-----------------------------------------

			$p_end = $this->ipsclass->compiled_templates['skin_forum']->render_pinned_end();

			$this->pinned_print = 0;
		}

		return $p_end . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1 );
----------------------------------------------------------------------
ЗАМЕНИТЬ
----------------------------------------------------------------------
return $p_end . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1 );
----------------------------------------------------------------------
НА
----------------------------------------------------------------------
    //curator
           $list = unserialize(stripslashes($topic['curator_id']));
           if ($list['id'])
           {
           $curator='<strong><span style="color: green">Куратор темы:</span> <a href="./index.php?showuser='.$list['id'].'">'.$list['name'].'</a></strong>';
           }
           return $p_end . $this->ipsclass->compiled_templates['skin_forum']->render_forum_row( $topic, $class1, $class2, $classposts, 1, $curator);
           //curator
======================================================================

######################################################################
Заходим в админку 
ACP Home > Skin Manager Home > Edit Template HTML
Выбираем там группу фрагментов Forum Index в ней выбираем фрагмент render_forum_row
======================================================================
Добавляем новые входные данные
Add new incoming Data Variables
,$curator=""
----------------------------------------------------------------------
Ищем в фрагменте 
----------------------------------------------------------------------
</span> {$data[PAGES]}
		<div class="desc"><span onclick='return span_desc_to_input("{$data['tid']}");' id='tid-desc-{$data['tid']}'>{$data['description']}</span>
----------------------------------------------------------------------
Вставляем после этого 
----------------------------------------------------------------------
<i>{$curator}</i>

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.