Jump to content

horst

PW-Moderators
  • Posts

    4,077
  • Joined

  • Last visited

  • Days Won

    87

Everything posted by horst

  1. It is in Croppable Image 3 >> https://processwire.com/talk/topic/14090-croppable-image-3/
  2. Hi all, I'm searching for a better solution on a problem with permanent monitoring positions of page elements when scrolling. I have a table with table header, where a copy of it in a fixed header should popup when the original header is out of the viewport. That works very nice with one table and one fixed header. But there are also pages with multiple of those objects, and I don't want to check for each table, if it is currently within the viewport, but its header out of it. A much better aprouch would be, if I could check which object is currently at top of the viewport. But I haven't found any examples on the web. Maybe I used the wrong keywords for searching, but everytime I found something, it only was checking the scrolltop position of an object. I want to check at vertical position 0 or 100 of the viewport what object is there currently positioned. All my tables have IDs. Does anybody has a hint or tip for me?
  3. You would need a NAS that can run a webserver with PHP and MySQL. Or a Raspberry PI 3B.
  4. in regard to the public / private part, what @blynx mentioned, especially the by PW default "private fields" simply needs to be covered via accessrights on fieldlevel, set by the dev who wants to use this module. There is no need for public/private endpoints in the module. Or I'm wrong? If you build a site without that module, you are done by simply use display logic in your templatefiles to control output of fields. If you want to use the module, you additionally have to mimik the accessrights via PW fields access settings. Thats how I understand it by just reading this really valuable thread. @Nurguly Ashyrov
  5. Can't reproduce that. All is working as expected with 3.0.52 (fresh install from scratch) How have you updated the version? Have you tried to clear / recreate other caches too? (Modules-Cache, FileCompilercache, etc.)
  6. Sure! Only important thing is to do it! -- before you continue If $id is 0 and the first thing you do is: if(0 == $id) continue; nothing ever will happen.
  7. @Harmen you must ensure that you count up the $id before continue. $id = -1; // set it -1, as we first count it up +1, (it will be 0 on its first check then!) foreach($sections as $item) { $id++; // count up +1 if($id == 0) continue; // skip the first child if($id == 1) { echo "<li class='yourclassforfirstitem'><a href='#section-$id'>$item->title</a></li>"; } else { echo "<li><a href='#section-$id'>$item->title</a></li>"; } }
  8. yes this is possible. The link to a page can be retrieved by: $page->httpurl() here you need the full http url, not the internal $page->url (!) Emailsending is simple via wiremail
  9. I have 20+ site-copies with the same authsalt. (Mostly dev and stage copies). It works. I haven't looked into it, but I believe it is generated by the installer script. (So for security it would be better to have more unique authsalts, but for temporary dev or stage copies, it is ok for me) You also may modify it in a way you like, but it should match the string-length and the allowed characters. Once you modified it in your site/config.php, you are not able to login with the existing accounts. But you can use the trick with resetting the password for the admin with a temporary codesnippet from within a template file. After that you can login as admin again, but maybe you have to resave / reassign passwords to the other user accounts, if any.
  10. Yes. It is called Croppable Image 3! Instead of defining the imagecrops in a function.php file, you define it per imagefield. With this, you may need only one imagefield per site, as you can define as many settings you like. Also you can stick settings to specific templates, or you apply them to all.
  11. Yep, as @teppo said, you can use Croppable Image 3. After you have defined your cropsettings, it crops uploaded images to those dimensions. But it also let you manually select individual sections after that.
  12. try other settings for "sharpening is strong". try: none, soft, medium add a custom name part (suffix) to the different sharpening variations: foreach(array('none', 'soft', 'medium', 'strong') as $sharpening) { echo "<img src='" . $child->post_image->first()->size(200, 0, [ 'upscaling' => false, 'quality' => 90, 'suffix' => $sharpening ])->url . "' title='{$sharpening}' />"; } With PW Version 3+, try to install / use the IMagick Image-Engine under: modules > core > (image) IMagick Image Sizer
  13. If I understand you right, the only convention is to use CamelCaseClassnames and use the same name for the File- & optional Foldername: site/modules/ValanCustomModule site/modules/ValanCustomModule/ValanCustomModule.module The first part is used for grouping modules in the table view of modules list, so you may want to use something meaningful for that part (?)
  14. Hi @holmescreek I see you are working with mp3 files. One of my first (learning)-projects with PW was a local Music-DB with importfunctions of ID3-tags into page fields. If this is of interest for you, here you can find some examples and libs: (function to retrieve infos from a mp3 file) https://github.com/horst-n/LocalAudioFiles/blob/master/LocalAudioFilesImportShellScript.php#L108 (the libs that are used in the importer class) https://github.com/horst-n/LocalAudioFiles/tree/master/site-default/modules/LocalAudioFiles (the old project page here in forum) https://processwire.com/talk/topic/3604-release-localaudiofiles-mp3-db/ (a online demo, where you can log in as "myusername" with the buttons top-right, and inspect the Admin, - how pages and sections are sorted with the auto-importer) http://pwlaf.biriba.de/dbinfo/
  15. This is an old PW version. Repeaterfields have gotten a complete overworking and additional features since then. Does the new version (PW 3.0.45+) behave the same?
  16. Hhm? Weird. All three modules are set to Version 0.9.17 since weeks/month now. I have updated the directory entry manually now.
  17. For simple cropping I use Pia. No need to invoke Pim. Pia has the advantage that she lets you very simple define what you need and she uses all the available ImagerenderingEngines. She isn't bound to GD-lib only, as she only delegates your wishes to the core image engine.
  18. Merry christmas to all. If someone is missing some snowflakes, here you can create some: http://codepen.io/ToasterCo/full/gLBLrg/ <3
  19. You will need to put every thing of your tree pages under access control, what may not be very hard, as you can select / use the inheritance from parents to children. (Starting at HOME, you have to set it only once for the homepage in the simplest setup) Then you can create a role and user that has edit rights, but is not included in your given access control settings.
  20. it uses GD-lib by default, but you also can enable the module for IMagick. We inspect the images at first and when using GD-lib, we use different ways for modifying the images. Per default, we want to use all functions that are needed to produce the best possible quality. But for those known image formats, like png8 with transparency, we ommit some steps. (Those that would include GD-lib methods that are known to produce that black background instead keeping the transparency)
  21. Ah, ok, 8bit transparent pngs are not handled correctly by the GD-library! There is no chance. Only solution is to use 24bit PNGs with transparency.
  22. More infos please! which transparent regions? what source format? which outputformat? how do you have defined the background?
  23. Hi @AndZyk it is not only that the Quality is affected, it results in higher filesizes too, sometimes. Im on mobile now. I May post a link later on, where you can see a comparison.
  24. Please do you a favour, (and all potentially additonal users of that said module): don't "optimize" the original image! Those image optimization tools are useful to optimize all final variations, what means: optimize images that are only used to be displayed on the web. Don't "optimize" images that you will need as source for variation creation.
×
×
  • Create New...