Jump to content

Martijn Geerts

  • Content Count

  • Joined

  • Last visited

  • Days Won


Martijn Geerts last won the day on December 16 2016

Martijn Geerts had the most liked content!

Community Reputation

3,234 Excellent

About Martijn Geerts

  • Rank
    Hero Member
  • Birthday 02/23/1977

Profile Information

  • Gender
  • Location
    The Netherlands

Recent Profile Visitors

23,543 profile views
  1. When you know your I.P. maybe you could check against that. One hook you could use is session::allowLogin
  2. There has been a small update on this module thanks to @Jonathan Lahijani. @Jonathan Lahijani added: PHP files can have a comment called "Description" at the top of the file which will be displayed in the dropdown if it exists. Check this option to disable it.
  3. // Could you test this??? wire()->addHookAfter('Field::getInputfield', function (HookEvent $event) { $event->return->inputfield = 'InputfieldSelect'; });
  4. Updated ACF to make it compatible. (Hope this fixes it.)
  5. Thanks @Macrura, I will update the module to make it backwards compatible with old PHP soon....
  6. Actually I don't understand the error, the only thing I can imagine is that ext is not there... Are you willing to replace the isset line with the code above?
  7. @Macrura What is $ext at that moment? Could you try to replace the isset line with: if ($ext !== 'js' && $ext !== 'css') return false;
  8. Hi Guys, AdminCustomFiles received some well-deserved love. (an update to version 0.9.61) There were several bug fixes and some major changes. I did break compatibility on several aspects of this module but after this update everything should be fine. - You can upgrade from 0.8.7 and below. (we take care of all settings) - The JSON output is now fully customizable. Previously I hooked *ProcessController::execute* and inserted the files to the config->scripts and files but with ProcessWire 3.x these were not the last files. Now we use Page::render to insert the files that should fix it. For the config.AdminCustomFiles javascript object we now have a base class that can be extended easily. When you created the class, you can select the class and save the module configuration. More info in the module configuration and in the example class below. /** * AcfConfigCustom * * Create a file in your AdminCustomFiles folder and start the filename with * ‘AcfConfig’ then ‘a custom name’ and add ‘.php’. * * In this file create a class with the basename of the file without the * extension. This class should extend AcfConfig and implements Module. * * Properties of the subclass * * @var AdminCustomFiles $adminCustomFiles Instance of AdminCustomFiles may you need it. * @var Page|NullPage $editPage In processPageEdit it would be the page you are editting. * @var Template $editTemplate Template from the page above. */ class AcfConfigCustom extends AcfConfig implements Module { /** * Optional ready method * * - Use it or leave out. * - We call ready() before calling jsConfig(). */ public function ready() {} /** * Required jsConfig method * * Return a PHP array ready to be used for $config->js * * @return array */ public function jsConfig() { $process = $this->wire('process'); return array( "activeProcess" => $process->className(), "editPage" => $this->editPage->id, "editTemplate" => $this->editTemplate->name, ); } }
  9. @netcarver Thanks for lookin' into this. I will take a little time this week to update the module. Thanks steve.
  10. Awesome!!!, just what I need today!
  11. I wouldn't use a formula for this I would use a 'pecentage value' and use HSL color. hsl(0, 100%, 50%) is red, hsl(100, 100%, 50%) is green the color traverses over yellow. http://hslpicker.com/#5f0
  12. Thanks @adrian, issue should be fixed right now.
  • Create New...