craft-timediff icon indicating copy to clipboard operation
craft-timediff copied to clipboard

Craft 3

Open himynameisphil opened this issue 7 years ago • 11 comments

Hey there, this is one of my favourite plugins to use with Craft! Just wondering, are there any plans to update it for use with Craft 3?

Thanks.

himynameisphil avatar Apr 22 '17 14:04 himynameisphil

Thanks for the kind words! Yes, will certainly be updating it prior to Craft 3’s general release.

On Apr 22, 2017, at 10:24 AM, Phil Huggan [email protected] wrote:

Hey there, this is one of my favourite plugins to use with Craft! Just wondering, are there any plans to update it for use with Craft 3?

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

mildlygeeky avatar Apr 22 '17 14:04 mildlygeeky

Hi @mildlygeeky,

the Craft 3 is about to launch, is there any chance of having this awesome plugin updated for it now?

mishellnovosel avatar Apr 04 '18 06:04 mishellnovosel

Any updates here? I'm starting to look into the Craft 3 upgrade now that some other plugins I use are (almost) ready, but this one has no more info.

bstein-clever avatar Oct 25 '18 01:10 bstein-clever

Any updates here? I'm starting to look into the Craft 3 upgrade now that some other plugins I use are (almost) ready, but this one has no more info.

I've ended up creating custom plugin based on logic from this one for Craft3 and importing it to Craft as Dev dependency ( otherwise it needs to be added as Plugin for Craft3 for which I didn't had time to do ).

  • hope this would be helpful. I can share the plugin code and implementation on Git, but not before tomorrow.

mishellnovosel avatar Oct 25 '18 04:10 mishellnovosel

That would be awesome. It saves me having to do the same, and I'm sure others would find it useful., too. :) Thanks!

bstein-clever avatar Oct 25 '18 18:10 bstein-clever

Any updates here, @mishellnovosel?

bstein-clever avatar Oct 30 '18 23:10 bstein-clever

Any updates here, @mishellnovosel?

Hi @bstein-clever, sorry, I was quite busy last few days. Please find the plugin here: https://github.com/mishellnovosel/craft3-timediff

Let me know if you have any issues ( you might want to check https://docs.craftcms.com/v3/extend/plugin-guide.html#loading-your-plugin-into-a-craft-project as well if you get stuck installing plugin on this way).

mishellnovosel avatar Oct 31 '18 05:10 mishellnovosel

Awesome! I've installed it successfully, but I'm in the middle of upgrading another custom plugin, so can't properly test it yet. I'll let you know if I run into anything else.

Thanks again.

bstein-clever avatar Nov 01 '18 19:11 bstein-clever

Testing this again now, I discovered that I couldn't actually use it in my page, the time_diff wasn't recognized. I realized I was missing a step of actually installing it in the control panel (under /admin/settings/plugins), but when I try that, I get an internal server error.

Checking the phperrors.log, I see: PHP Fatal error: Cannot declare class codecacao\time_diff\TimeDiffPlugin, because the name is already in use in <plugin_dir>/timediff/src/TimeDiffPlugin.php on line 0

Any thoughts?

bstein-clever avatar Nov 02 '18 01:11 bstein-clever

Testing this again now, I discovered that I couldn't actually use it in my page, the time_diff wasn't recognized. I realized I was missing a step of actually installing it in the control panel (under /admin/settings/plugins), but when I try that, I get an internal server error.

Checking the phperrors.log, I see: PHP Fatal error: Cannot declare class codecacao\time_diff\TimeDiffPlugin, because the name is already in use in <plugin_dir>/timediff/src/TimeDiffPlugin.php on line 0

Any thoughts?

I've added the update to the plugin. Can you try it now? If it doesn't work, can you report issue on plugin page git? so we move away from this outdated plugin.

mishellnovosel avatar Nov 02 '18 06:11 mishellnovosel

Ha, that would have been the sensible thing, yes. It didn't help. Will move to https://github.com/mishellnovosel/craft3-timediff/issues/1

bstein-clever avatar Nov 02 '18 21:11 bstein-clever