Adriano Faria Posted November 26, 2017 Share Posted November 26, 2017 (edited) About This File This plugin will add a notice in topics that has more than X days of its last post. This is to avoid replies in old topics. You can also prohibit users from posting in the topic. Settings: Number of days Allow posting Groups Forums Message Type Message Edited November 26, 2017 by Adriano Faria Leovaldo 1 Link to comment Share on other sites More sharing options...
LemonZ Posted December 10, 2017 Share Posted December 10, 2017 No message are displayed. Link to comment Share on other sites More sharing options...
Adriano Faria Posted December 10, 2017 Author Share Posted December 10, 2017 Make sure you have selected proper forums and groups and have added the message and a number of days that meets the start date of the topic. Link to comment Share on other sites More sharing options...
Thomas P Posted January 15, 2018 Share Posted January 15, 2018 Hi Adriano, another great plugin from you. I imported the plugin to our 4.2. testbed and have a problem with it: The Banner with the dead topic protection text is shown next to the reply button, not below... What is going wrong here? Thanks, Thomas Link to comment Share on other sites More sharing options...
Adriano Faria Posted January 15, 2018 Author Share Posted January 15, 2018 Probably your theme is out of the pattern. I mean, when designer change things place this happen. Please, test in default theme and let me know. Link to comment Share on other sites More sharing options...
Thomas P Posted January 15, 2018 Share Posted January 15, 2018 Yes, you were right. On default it is where it should be as in your screenshot. How can I change that on my theme... is there a place in the theme next to the button to change the hook line wrap...? Thanks for your efforts Link to comment Share on other sites More sharing options...
Adriano Faria Posted January 15, 2018 Author Share Posted January 15, 2018 It’s not a thing you can do. You should contact your designer and request “fix” in that area. Link to comment Share on other sites More sharing options...
Thomas P Posted January 17, 2018 Share Posted January 17, 2018 Thanks, fair enough. I now edited your plugin to remove the top notice, so it just shows the bottom notice next to the quick reply dialog. I am aware that this is a quick fix and I have to look into this issue at a later time... Adriano Faria 1 Link to comment Share on other sites More sharing options...
Robert Angle Posted March 18, 2018 Share Posted March 18, 2018 It seems I cannot select certain forums for this to work on, while exempting other forums. It's all or nothing. Link to comment Share on other sites More sharing options...
Adriano Faria Posted March 18, 2018 Author Share Posted March 18, 2018 10 hours ago, Robert Angle said: It seems I cannot select certain forums for this to work on, while exempting other forums. It's all or nothing. What's New in Version 1.0.1: Fix error when selecting forums Link to comment Share on other sites More sharing options...
LemonZ Posted April 9, 2018 Share Posted April 9, 2018 Notification is shown for all forum sections, even if one section is selected in the plugin settings. Link to comment Share on other sites More sharing options...
Adriano Faria Posted April 9, 2018 Author Share Posted April 9, 2018 Notification? Link to comment Share on other sites More sharing options...
LemonZ Posted April 13, 2018 Share Posted April 13, 2018 On 4/9/2018 at 6:34 PM, Adriano Faria said: Notification? Banner with the dead topic protection text Link to comment Share on other sites More sharing options...
Adriano Faria Posted April 13, 2018 Author Share Posted April 13, 2018 Banner?!? It doesn't has banner or notification. Please, post a screenshot. You mean this? Link to comment Share on other sites More sharing options...
LemonZ Posted April 15, 2018 Share Posted April 15, 2018 On 4/13/2018 at 7:41 PM, Adriano Faria said: Баннер?!? У него нет баннера или уведомления. Пожалуйста, разместите снимок экрана. Вы имеете в виду это? Yes it. Link to comment Share on other sites More sharing options...
Adriano Faria Posted April 15, 2018 Author Share Posted April 15, 2018 Are you using the Default or 4.2 theme? If you’re in Default, switch to 4.2 and test it. Link to comment Share on other sites More sharing options...
Millipede Posted September 27, 2018 Share Posted September 27, 2018 Is it possible to remove the top message (whilst keeping the bottom one)? If so, how, please? Link to comment Share on other sites More sharing options...
Adriano Faria Posted September 27, 2018 Author Share Posted September 27, 2018 3 minutes ago, Millipede said: Is it possible to remove the top message (whilst keeping the bottom one)? If so, how, please? This one? Link to comment Share on other sites More sharing options...
Adriano Faria Posted September 27, 2018 Author Share Posted September 27, 2018 Just checked and you can't, unless you have FTP access, then I'll show you how to edit the hook file, rebuild cache and then it will show only above reply form. Link to comment Share on other sites More sharing options...
Millipede Posted September 27, 2018 Share Posted September 27, 2018 Yes, that one. I have FTP access, that would be great, thanks! Would editing the hook file mean redoing it after updates? Link to comment Share on other sites More sharing options...
Adriano Faria Posted September 27, 2018 Author Share Posted September 27, 2018 Just now, Millipede said: Would editing the hook file mean redoing it after updates? Yes. But this hasn't been update in a while, no bug, etc. So it's safe to make the edit. Link to comment Share on other sites More sharing options...
Millipede Posted September 27, 2018 Share Posted September 27, 2018 Super, thanks! Link to comment Share on other sites More sharing options...
Adriano Faria Posted September 27, 2018 Author Share Posted September 27, 2018 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 */ Uploade the file. 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: Millipede 1 Link to comment Share on other sites More sharing options...
Millipede Posted September 27, 2018 Share Posted September 27, 2018 Brilliant, that works a treat, thanks so much! Adriano Faria 1 Link to comment Share on other sites More sharing options...
newbie LAC Posted September 28, 2018 Share Posted September 28, 2018 (edited) Each message has a css class deadTopicProtection So you can hide top message using css .ipsToolList + .deadTopicProtection { display: none; } Edited September 28, 2018 by newbie LAC Adriano Faria 1 Link to comment Share on other sites More sharing options...
Recommended Posts