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?
Oh boy, I wish I could write my own Vanilla plugins! I wanted to learn how to do it for quite some time now, but never got around it. I had to implement a countdown button in the side panel for our forum just recently, which was when I discovered that I can't just insert PHP code into the default master template file. My… -
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?
I wanted to go through the code and make some annotations. I've told you that your module needs two functions, but gave you a hint that they could be replaced. While I would always stick to the ToString function, I guess it would not be bad to replace AssetTarget. AssetTarget determines where your module should be… -
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…
4 results