Re: [ADDON] Double Post Stopper Reply #15 – November 04, 2017, 02:37:00 am i want to report a problem.when opening any topic as guest there will be an error:Code: [Select]min(): Array must contain at least one elementthe content is not displayed.using elkarte 1.1.0.
Re: [ADDON] Double Post Stopper Reply #16 – April 15, 2018, 04:37:24 pm Hi @live627 , do you have any plans to update this for elkarte 1.1?
Re: [ADDON] Double Post Stopper Reply #17 – May 05, 2018, 05:31:19 pm You should open an issue on github and see if he has plans to update this
Re: [ADDON] Double Post Stopper Reply #18 – November 08, 2018, 10:42:57 am I did that @Spuds but no answer from @live627 is there anyone interested on this add-on who can update it for elkarte 1.1?https://github.com/live627/elk-dpsThe add-on installs on elkarte 1.1, after install if I try to save the settings of this add-on I get an error:str_split() expects parameter 1 to be string, array givenIn elkarte error log i have:Code: [Select]Type of error: GeneralWarning: str_split() expects parameter 1 to be string, array given/index.php?action=admin;area=addonsettings;save;sa=generalFile: /sources/database/Db-mysql.class.phpLine: 299If I try to add a consecutive post I get :Code: [Select]Type of error: Not specifiedException: Call to undefined function fatal_lang_error()/index.php?action=post;topic=948.75;last_msg=198652File: /sources/subs/DoublePostStopper.phpLine: 122
Re: [ADDON] Double Post Stopper Reply #19 – November 08, 2018, 08:03:05 pm I'm getting close the second error can be solved by replacing the line:Code: [Select] fatal_lang_error('double_post_attempt', false); // You naughty, naughty person!with:Code: [Select] \Errors::instance()->fatal_lang_error('double_post_attempt', false);
Re: [ADDON] Double Post Stopper Reply #20 – November 18, 2018, 09:47:27 pm I think I figured it out. The changes made to the settings form parser are to blame. It does not play nicely with mods that do things differently than expected. The hook for saving the settings does not pass any objects to integrations.To remedy this, I need to create my own $settingsForm object to save the data that way.Also, I'm going to merge changes made by @radu81
Re: [ADDON] Double Post Stopper Reply #21 – November 18, 2018, 10:13:31 pm Relevant changes in https://github.com/live627/elk-dps/commit/c45b467a686c013633920cf9122d941b99118d3c
Re: [ADDON] Double Post Stopper Reply #22 – November 27, 2018, 08:21:59 am Sorry for the delay amd thanks for keeping updated this add-on. It works fine now with Elkarte 1.1