Jump to content

PWaddict

Members
  • Posts

    908
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by PWaddict

  1. Can you completely remove the HTML entities? For example if on the text field I write: "Test" then the file will be renamed to: quot-test-quot.jpg instead of test.jpg.
  2. The hosting company excluded the rule #340147 from ModSecurity and the problem is gone.
  3. Yes it works. Btw I've just entered the <iframe> tag on another textarea and it gets saved! I will check tomorrow why is this happening.
  4. It isn't possible cause the map url & iframe link has some encoded values such as the unique place id which isn't possible to get without an API key.
  5. I've tested this and It isn't accurate at all. For a proper map with 100% accurate results and without an API key the embed one is the ONLY option.
  6. I don't know cause I'm using the analytics.js. Btw I tested a youtube iframe embed code and still same problem. I've even tested adding just this: <iframe> and still same problem. ModSecurity doesn't like the iframe tag when you post a form.
  7. If I add html code (iframe) from Google Maps in a textarea field and try to save the page I will get a 403 error and the page will not get saved. Once I disabled Mod Security from cPanel and waited few minutes then I could save the iframe on pages without problems. Is there another way to solve this without disabling Mod Security?
  8. I started working on a module that will use exclusively the Esri Geocoding. Since you're using the Leaflet Control Geocoder on your module that supports various geocoders, you should update it to let the user select which one they want to use by supplying their API key if the selected geocoder requires it. EDIT: Unfortunately Esri isn't free.
  9. I installed the version 3.0.3 (PW3) and tested the geocoding and It can't find many places and even street numbers. Please correct me if I'm wrong but Google Geocoding can't work without an API key and the module doesn't ask for a key so it's probably using Leaflet's default geocoding cause when I search for example "Terra Vibe Park" I'm getting Nothing found but if I go on this sample that uses Leaflet with Esri Geocoding and search for "Terra Vibe Park" it will find it. Shouldn't be better to update the module to use Esri Geocoding? According to that sample code it doesn't seem to require any API key.
  10. @Mats Can you please tell me which module version is using Google's Geocoding?
  11. I test it on a new page and getting the same problem. Having "Rename on Save" unchecked everything seems to be ok. Are you sure that it's working for you with multiple repeater items and with "Rename on Save" checked?
  12. All these days I was testing only with already uploaded images. I will test from scratch and will let you know. I thought that this could the problem but it isn't. On the filename format I tried even with just the word "test" and when I was saving the page only some of them were renamed and when I saved again and again more and more images were getting renamed to "test".
  13. None of the above is the problem. It seems that the module doesn't work well with repeaters. I tried to add new item on the repeater that is supposed to be working properly and it messed up that too. When I upload the image on the repeater item and saved the page the image gets renamed but I get just a broken blank image. In the files folder I'm getting the following images: test_1544143931.-thumbnail.0x48n.jpg (Broken / blank) test_1544143931.-thumbnail.300x0n.jpg (Broken / blank) This shouldn't be even there yet as I'm generating this variation via API and I didn't visit the frontend page during the test. test_1544143934.260x0.jpg test_1544143934.jpg test_1544143934.-thumbnail.0x48n.jpg test_1544143934.-thumbnail.jpg Also if I try to delete that broken image from the image field that is inside the repeater item I'm getting this:
  14. I have a repeater field with 12 repeater items and each item has an image field too. I've added the related rename rule on the module but when I save the page it only renames the top 3 items. I'm using the latest version (1.1.5). EDIT: On another repeater with 5 repeater items everything is working properly. The only difference between those 2 repeaters is that the one with the 12 items is on a hidden page without a template file and it has svg images.
  15. I'm thinking to switch from Google Maps to Leaflet Maps to avoid adding payment details on Google but on the readme of this module says: So I'm confused! Does this module needs a Google Geocoding API key in order to work or not???
  16. @Mikie Do you know if it's possible to have multiple billing accounts with the same credit card?
  17. My question is for users with enabled billing on Google Maps API. Is the $200 Free Monthly Credit applied on each project or just the whole account?
  18. Since there is no module for it then I guess it's not possible. WordPress, Joomla, Drupal and others have a free module for LiteSpeed Cache. Damn, that's the first disadvantage for using ProcessWire.
  19. I'm getting "The process returned no content." with the error:
  20. @horst problem solved on renaming images by using "Custom Upload Names" module which does really good job with timestamps and also giving automatically better names in general. Now about "Croppable Image 3" module today I noticed a "hidden" error on the cropping page if you have debug mode on and the image is inside repeater: Here is the screenshot with the "hidden" error:
  21. I've updated the module from 1.0.0 to 1.0.1 and it doesn't grab the youtube / vimeo thumbnail anymore. I switched it back to 1.0.0 where it properly works.
  22. It needs a simple fix to properly work. You're using cache busting on js & css files by using the module version. You have to replace module's version to 111 otherwise we get this: ProcessCustomUploadNames.js?v=1 instead of ProcessCustomUploadNames.js?v=111
  23. Let's say that you have an image called myimage.jpg and it's accessible via http://localhost/mysite/site/assets/files/1020/myimage.jpg. If you rename or delete that image and users keep visiting that link they will obviously view a 404 error page. Instead of displaying the 404 error page you can redirect them to the file's belonging page by adding the below code on top of your 404.php template: $url = $_SERVER["REQUEST_URI"]; $pattern = "@site/assets/files/(\d+)/@"; if (preg_match($pattern, $url, $pageid)) { $fp = $pages->get($pageid[1]); // get the page id from the file path if($fp instanceof RepeaterPage) $fp = $fp->getForPage(); // if the file is inside repeater item get the page where the repeater belongs if($fp->viewable()) $session->redirect($fp->url, false); // redirect only if the page is viewable // false = 302 temporary redirect - true = 301 permanent redirect }
  24. Yep. It works perfect. Thanks again. Btw in case you don't know if re-order the rules and then press submit the re-order doesn't saved.
  25. Unfortunately I haven't figured it out yet. This could take me days to fully understand your module and currently can't spend more time on it as I need to finish 2 projects.
×
×
  • Create New...