Jump to content

Dead Topic Protection


Recommended Posts

  • 2 weeks later...
  • 1 month later...
  • 2 months later...
  • 4 weeks later...
On 4/13/2018 at 7:41 PM, Adriano Faria said:

Баннер?!? У него нет баннера или уведомления.

Пожалуйста, разместите снимок экрана.

Вы имеете в виду это?

weZORQF.png

Yes it.

Link to comment
  • 5 months later...

Here it goes, in case you want to do it.

Download and open \plugins\deadtopicprotection\hooks\dtpTopicView.php and find:

/* !Hook Data - DO NOT REMOVE */
public static function hookData() {
 return array_merge_recursive( array (
  'topic' => 
  array (
    0 => 
    array (
      'selector' => '#elClubContainer > div.ipsClearfix > ul.ipsToolList.ipsToolList_horizontal.ipsClearfix.ipsSpacer_both',
      'type' => 'add_after',
      'content' => '{{if $topic->deadTopicProtection()}}
	{template="deadtopicprotection" group="plugins" app="core" location="global" params="$topic"}
{{endif}}',
    ),
    1 => 
    array (
      'selector' => '#replyForm',
      'type' => 'add_before',
      'content' => '{{if $topic->deadTopicProtection()}}
	{template="deadtopicprotection" group="plugins" app="core" location="global" params="$topic"}
{{endif}}',
    ),
  ),
), parent::hookData() );
}
/* End Hook Data */

Change it to:

/* !Hook Data - DO NOT REMOVE */
public static function hookData() {
 return array_merge_recursive( array (
  'topic' => 
  array (
    0 => 
    array (
      'selector' => '#replyForm',
      'type' => 'add_before',
      'content' => '{{if $topic->deadTopicProtection()}}
	{template="deadtopicprotection" group="plugins" app="core" location="global" params="$topic"}
{{endif}}',
    ),
  ),
), parent::hookData() );
}
/* End Hook Data */
  1. Uploade the file.
  2. Go to ACP -> System -> Support -> Something isn't working correctly, click in the button to continue.

You'll get the message only above the editor:

7ymlyM7.png

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...