HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: How do I write a Plugin with a Module?
Well, I'm in teaching mode, so here is step2: class.countdownmodule.php A module should do/show something and you have already written some code. Mind sharing it with us? We could implement it in the skeleton I'll construct in this post. Here we go. As I've said above, we need to create our own class and there is a naming… -
Re: How do I write a Plugin with a Module?
We'll do that later on. Let me show you what is "normally" done and then we can tune one or two aspects to your needs. For example I wouldn't go with 31 pictures but either only one picture using css sprites (http://csssprites.com/) or using a nicely styled standard font. By the way: I will not write any "countdown" code -… -
Re: How do I write a Plugin with a Module?
It's so easy, let's do it here together :) And if it is ready, we could ask some mod to split the discussion and move it to the tutorials. I'd split it up into 3 steps which are also the files that you need: 1. Create the plugin: /plugins/Countdown/class.countdown.plugin.php 2. You want to create a module, so let's create… -
Re: How do I write a Plugin with a Module?
CSS sprites only make sense for small graphics, so they wouldn't be the right solution in your case. Look at that short CSS hack: http://codepen.io/anon/pen/wEyLq Colors and size are not what you need, but I think it is a start to use pure CSS for what you are doing right now with a picture. Yes, I've mixed up Date and… -
Re: How do I write a Plugin with a Module?
You've asked for custom setting permissions and that's what we do next. We have started the plugin part of our settings code like that: public function PluginController_Countdown_Create($Sender) { $Sender->Permission('Garden.Settings.Manage'); I've told you that we do a standard permission check. Try to access the setting… -
Re: How do I write a Plugin with a Module?
Wow, you are amazing, @R_J, this will be really a great help not only for me. Right now I really can't start playing around with this (have to work), but in the meantime I can let you know how exactly I have implemented that countdown functionality with my "hacky" style. library/vendors/SmartyPlugins/function.countdown.php… -
Re: How do I write a Plugin with a Module?
Step 3 will be the hardest and longest part. Not because using the configuration is difficult, but because using forms include more steps by itself: 1. design a form 2. insert configuration values when the form is loaded 3. save form values to configuration when a button is hit First let me begin with some general comments…
7 results