Adriano Faria Posted November 26, 2017 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
Adriano Faria Posted December 10, 2017 Author 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.
Thomas P Posted January 15, 2018 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
Adriano Faria Posted January 15, 2018 Author 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.
Thomas P Posted January 15, 2018 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
Adriano Faria Posted January 15, 2018 Author Posted January 15, 2018 It’s not a thing you can do. You should contact your designer and request “fix” in that area.
Thomas P Posted January 17, 2018 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
Robert Angle Posted March 18, 2018 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.
Adriano Faria Posted March 18, 2018 Author 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
LemonZ Posted April 9, 2018 Posted April 9, 2018 Notification is shown for all forum sections, even if one section is selected in the plugin settings.
LemonZ Posted April 13, 2018 Posted April 13, 2018 On 4/9/2018 at 6:34 PM, Adriano Faria said: Notification? Banner with the dead topic protection text
Adriano Faria Posted April 13, 2018 Author Posted April 13, 2018 Banner?!? It doesn't has banner or notification. Please, post a screenshot. You mean this?
LemonZ Posted April 15, 2018 Posted April 15, 2018 On 4/13/2018 at 7:41 PM, Adriano Faria said: Баннер?!? У него нет баннера или уведомления. Пожалуйста, разместите снимок экрана. Вы имеете в виду это? Yes it.
Adriano Faria Posted April 15, 2018 Author 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.
Millipede Posted September 27, 2018 Posted September 27, 2018 Is it possible to remove the top message (whilst keeping the bottom one)? If so, how, please?
Adriano Faria Posted September 27, 2018 Author 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?
Adriano Faria Posted September 27, 2018 Author 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.
Millipede Posted September 27, 2018 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?
Adriano Faria Posted September 27, 2018 Author 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.
Adriano Faria Posted September 27, 2018 Author 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
Millipede Posted September 27, 2018 Posted September 27, 2018 Brilliant, that works a treat, thanks so much! Adriano Faria 1
newbie LAC Posted September 28, 2018 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
Recommended Posts