Jump to content

horst

PW-Moderators
  • Posts

    4,088
  • Joined

  • Last visited

  • Days Won

    88

Everything posted by horst

  1. I have read it. - Is a special but also very interesting solution. Thanks for sharing.
  2. @PWaddict: just to clarify: There are two things here: The modules version is recognized and the module gets correctly updated via the individual update function in the modules config screen! The module is not recognized by the third party updater module. This is an issue of that updater module! What I have tried / described above, is to find a way / workaround without needing to contact the author of the third party module "updater" and ask him if he can debug and change the module to recognize modules that are organized like CI3 too. One way I found out to get recognized by the updater, is to use a wrapper module in the root directory of the module. This will work, AFTER everyone has updated to that version. But with the current situation, before everyone has updated to that version, there may be danger to break systems when silently changing the modules hirarchy and dependencies.
  3. what issue? that it is not recognized by the upgrader? this is expected, as i haven't changed anythig than the version number from string "0.9.17" to number 100.
  4. Uhm, thats sort of a Problem! I think I cannot simply update it this way, as it may break systems. There are also the check for updates right in the config screen of the module itself, what currently works well. Needs more testing before. It would be helpful to get some minds / thoughts about this from the veterans. manually update needs to copy all new files over the existing ones (optionally ?) flush the modules cash Install the new wrapper module I can push it to a test-branch for those who are reading this. But this is not of help for those who want / need updates via PW (individual in module config or via updater module) ??
  5. No, this is not possible, because if the original update could be with different dimensions than the previous version. If so, there is big potential to crash the image manipulation script with crop settings out of bound of the new original image.
  6. on a local test I added a fake module in the root of the modules directory hirarchy and changed the dependencies hirarchy to make it the main module that installs the three others: /site/modules/CroppableImage3/ /site/modules/CroppableImage3/CroppableImage3.module ** /site/modules/CroppableImage3/FieldtypeCroppableImage3/FieldtypeCroppableImage3.module /site/modules/CroppableImage3/InputfieldCroppableImage3/InputfieldCroppableImage3.module /site/modules/CroppableImage3/ProcessCroppableImage3/ProcessCroppableImage3.module ** @adrian: This way it get recognized by the upgrade module. It seems, it has nothing to do with the version is a number or a string.
  7. normally, the version compare function (should) work correct with strings like "0.9.17". But I can temporary change it, if this would help. (?) I have updated the repo and changed the version from string '0.9.17' to number 100. Does that change anything?
  8. On one server it is running after upgrading to 3.0.52, on another one not! This is not really a pattern, or is it one? @Macrura, can you give me access to that one where it is returning null? I use it on my installs and it works all as expected.
  9. @Nurguly Ashyrov I really like what you do here! So much fun to see this. Unfortunately I have no time ATM to start playing / using it. (buhuhh, - schnüff)
  10. It is in Croppable Image 3 >> https://processwire.com/talk/topic/14090-croppable-image-3/
  11. 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?
  12. You would need a NAS that can run a webserver with PHP and MySQL. Or a Raspberry PI 3B.
  13. 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
  14. 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.)
  15. 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.
  16. @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>"; } }
  17. 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
  18. 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.
  19. 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.
  20. 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.
  21. 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
  22. 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 (?)
  23. 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/
  24. 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?
×
×
  • Create New...