Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/04/2018 in all areas

  1. Here is my first processwire module (beta). https://github.com/theo222/ImagePickerField A lot of "first times". First time Github, Markdown and of course PW Modules. So be gentle please. I hope it works.
    8 points
  2. Version 2.1.0 of VersionControl was just pushed to the 2.0 branch at GitHub. Note that this update changes the field-level UI quite a bit (see screenshot below). Personally I like this UI better anyway, but the main reason for the change was that it would've been a major pain to get the old UI to work with both the (current) default admin theme and AdminThemeUikit – let alone any third party admin themes. The colour theme is currently hardcoded, so it doesn't adapt to whatever changes you might've made to your admin theme. It's also exactly the same for both built-in admin themes. I could make some parts configurable at some point, but for the time being this is better than nothing. Next up: more testing. I'm pretty sure that there are a few bugs here and there that I've managed to miss, and I'd like the core features of this module to be as solid as possible. I'm also contemplating giving the History tab a major facelift, but that's not exactly the first item on my list right now
    7 points
  3. i build a full block using prerendering system for some sites....so the ui could be managed to work closely like the example above. It is much work and not so trivial, but at the end it is a great interface...(i build this 2015....so this is running on some 2.7er installations)
    3 points
  4. Yes, the Process module under Setup > Duplicator is not necessary to run the backups. I guess the only reason that the interface in the that process module is not in the config settings for the main module is so that you can give access permission to use it to non-superusers.
    2 points
  5. I agree that this is a good discussion and needs to be continued somewhere (I'm not the one for moving things, I haven't figured how to do it right yet). I have an upcoming blog project whose sole purpose is to talk about ProcessWire's many features. Once someone has moved this conversation to a new area, I can further elaborate on what I am working towards. With that said, I also agree with what @teppo seems to be saying.
    2 points
  6. @theo: Thank you for the feedback, and I'm glad you like my module I'm going to look into that behavior as soon as I have a little time on my hands.
    2 points
  7. Hey guys, I found something incredible. Look at this new fieldtype from the CMS Statamic: https://statamic.com/blog/statamic-2.8 It is called Bard and combines the Repeater Matrix with an normal textfield. I think this is a really good way to edit long text. It would be awesome if Processwire could get an similar fieldtype. What do you think? Jannis
    1 point
  8. Presentation Originaly developped by Jeff Starr, Blackhole is a security plugin which trap bad bots, crawlers and spiders in a virtual black hole. Once the bots (or any virtual user!) visit the black hole page, they are blocked and denied access for your entire site. This helps to keep nonsense spammers, scrapers, scanners, and other malicious hacking tools away from your site, so you can save precious server resources and bandwith for your good visitors. How It Works You add a rule to your robots.txt that instructs bots to stay away. Good bots will obey the rule, but bad bots will ignore it and follow the link... right into the black hole trap. Once trapped, bad bots are blocked and denied access to your entire site. The main benefits of Blackhole include: Bots have one chance to obey your site’s robots.txt rules. Failure to comply results in immediate banishment. Features Disable Blackhole for logged in users Optionally redirect all logged-in users Send alert email message Customize email message Choose a custom warning message for bad bots Show a WHOIS Lookup informations Choose a custom blocked message for bad bots Choose a custom HTTP Status Code for blocked bots Choose which bots are whitelisted or not Instructions Install the module Create a new page and assign to this page the template "blackhole" Create a new template file "blackhole.php" and call the module $modules->get('Blackhole')->blackhole(); Add the rule to your robot.txt Call the module from your home.php template $modules->get('Blackhole')->blackhole(); Bye bye bad bots! Downloads https://github.com/flydev-fr/Blackhole http://modules.processwire.com/modules/blackhole/ Screen Enjoy
    1 point
  9. Add Image URLs A module for ProcessWire CMS/CMF. Allows images/files to be added to Image/File fields by pasting URLs or using the API. Installation Install the Add Image URLs module. Configuration You can add MIME type > file extension mappings in the module config. These mappings are used when validating URLs to files that do not have file extensions. Usage A "Paste URLs" button will be added to all Image and File fields. Use the button to show a textarea where URLs may be pasted, one per line. Images/files are added when the page is saved. A Pagefiles::addFromUrl method is also added to the API to achieve the same result. The argument of this method is expected to be either: a URL: "https://domain.com/image.jpg" an array of URLs: ["https://domain.com/image1.jpg", "https://domain.com/image2.jpg"] Example: // Get unformatted value of File/Image field to be sure that it's an instance of Pagefiles $page->getUnformatted('file_field')->addFromUrl("https://domain.com/path-to-file.ext"); // No need to call $page->save() as it's already done in the method Should you have an issue using the method, please have a look at the "errors" log to check if something was wrong with your URL(s). WebP conversion The core InputfieldImage does not support images in WebP format. But if you have the WebP To Jpg module installed (v0.2.0 or newer) then any WebP images you add via Add Image URLs will be automatically converted to JPG format. https://github.com/Toutouwai/AddImageUrls https://modules.processwire.com/modules/add-image-urls/
    1 point
  10. Nothing obviously wrong/messy with those panels for me with v4.9.9 on Windows 8.1. Maybe some other factor comes into it. Thanks for the update though!
    1 point
  11. New version just committed that is a must for Windows users - a huge thanks to @matjazp for the report and also local access to his dev machine so I could find and fix all the issues. You Windows guys need to speak up when you see issues - the Console, Snippet Runner, and Captain Hook panels in particular were a mess Please let me know if you see anything I have missed. Other changes include: Add custom register_shutdown_function() for Console and Snippet Runner panels - especially important for PHP 5.x. PHP 7 handles most errors as non-fatal. Fix AJAX panel updating for Console/Snippet Runner when SessionHandlerDB not installed. A few styling fixes.
    1 point
  12. I think they're counting each variation of an icon (solid, light, etc) as a separate icon, but these variations use the same class name. Typical marketing stuff to puff up the numbers. Maybe the brands font should be loaded by default rather than being optional, because if it isn't loaded it leaves unrendered icons in the list which might confuse users about what the problem is.
    1 point
  13. Hi, Download the installer called "installer.php" and put it next to the ZIP package in the site root directory. So they must reside in the same directory. Access installer.php from the browser.
    1 point
  14. Yeah, understood - I changed the names of the settings fields to be more semantically correct. I shouldn't have changed them once I pushed v2.x to master, but what's done is done now I think and it's still early days for this new version so I don't think it will affect too many people.
    1 point
  15. Hi @mikhail, Thanks for the purchase. Sorry for the confusion. We have the following in the docs about setting up here: If you read that but was still unsure how to proceed then we need to tweak it. Please let me know, thanks. Edit I've gone ahead and tweaked the docs a bit. I hope it is clearer now. Thanks for the suggestion.
    1 point
  16. @BitPoet what do you think about implementing http://rvera.github.io/image-picker/ for the file select field? I think this would be really nice to have in case of images. For other files there could be a default placeholder (like a file icon).
    1 point
  17. Hello Adrian, just to clearify: the empty labels problem happens after upgrading to the version with the option of hiding the labels (I think version 2.0.10) not from version 1 to version 2 (major upgrade). Thanks for the fast fix!!
    1 point
  18. New version fixes this notice. Sorry once again for the label issues
    1 point
  19. @Juergen - so sorry about the label translations - totally my fault - I was so used to pushing to the dev branch lately that I didn't think about breaking changes. I don't think it's worth reverting the change that broke those labels given how new this version is, but I'll be sure not to break that again.The undefined offset on line 322 is a different thing - that happens if you don't define the example numbers in a format - note the: | 61,07,45673456,123 at the end of the line. australiaNoCountryAreaCodeLeadingZero | {([phoneAreaCode,0,2])} {[phoneNumber,0,4]} {[phoneNumber,4,4]} {x[phoneExtension]} | 61,07,45673456,123 What I will do though is add default example numbers so you don't get that PHP Notice.
    1 point
  20. Thanks for the Media Library! Great. Just one thing: It took more than an hour to find out what's going on. Having this code: $user->language = $languages->get("en"); foreach ($wire->pages->find("MediaImages.count>0") as $p) { echo '>'.$p->title.'<br>'; } //Returns all pages having MediaImages. OK $user->language = $languages->get("de"); //German user foreach ($wire->pages->find("MediaImages.count>0") as $p) { echo '>'.$p->title.'<br>'; } //Returns nothing. Why? I was really confused. Then I found out, that the Media Libary pages do not automatically set non-default languages active. Normal child pages of "home" do. Not sure if this is a bug, but I had a hard time with this. Thank you.
    1 point
  21. you can put a function somewhere in your code (eg _functions.php): function translate($string) { if($config->lang == 'en') { $translations = [ 'hallo welt' => 'hello world', ... ]; return $translations[$string]; } return $string; } echo translate('hallo welt'); // hallo welt $config->lang = 'en'; echo translate('hallo welt'); // hello world
    1 point
  22. nothing fancy i just drop the extrem use of shadows and converted colors....so it fits a little bit normal in the PW: calendar.css custom_1.css but notice it is just a proof of concept - not browsertested - just some fast playing. Best regard mr-fan
    1 point
  23. latest update fixes brands loading, and works in my limited testing (i am able to see all 992 icons in the icon picker.
    1 point
  24. That statamic UI is seriously GORGEOUS! (is very much like craft cms). The PW repeater matrix field, as cool as it is, looks somewhat dated in comparison IMHO. Totally this. Some parts of my blog posts have a ckeditor field just for three or four words (yeah, I could add another type in there 'Short text' or something but I stupidly didn't): I actually set them to all open now by default because it's awkward and not fun editing specific parts when it's laid out like the above. And this is only half of the items!
    1 point
  25. You can disable the WHOIS lookup in the module's config.
    1 point
×
×
  • Create New...