-
Posts
926 -
Joined
-
Last visited
-
Days Won
1
Everything posted by PWaddict
-
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.
-
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.
-
@Mats Can you please tell me which module version is using Google's Geocoding?
-
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?
-
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".
-
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:
-
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.
-
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???
-
@Mikie Do you know if it's possible to have multiple billing accounts with the same credit card?
-
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?
-
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.
-
I'm getting "The process returned no content." with the error:
-
@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:
-
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.
-
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
-
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 }
-
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.
-
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.
-
What is the "Simple Table" field?
-
I don't know If I can do it but I will try.
-
I have an image field inside repeater along with some text fields. Is it possible to rename the image using 1 of those text fields?
-
A dot must be used between fields to work properly and yes about the php date underscores inside the brackets is the solution: $page->title.[Y_m_d_H_i_s] $page->title.$file->mtime Don't forget to update the module with the proper version you posted above and also add the above examples in Rename Rules description. THANKS A LOT ?
-
[SOLVED] How to set database timezone on Shared Servers?
PWaddict replied to PWaddict's topic in General Support
I asked my hosting company to install the timezone tables and they said it's not possible on shared server and changing manually the offset is bad but then I found about the capital "I" on date format where we can easily detect if the DST changes. So here is the best solution: if (date('I', time())) { $config->dbInitCommand = "SET NAMES '{charset}', time_zone = '+03:00' "; } else { $config->dbInitCommand = "SET NAMES '{charset}', time_zone = '+02:00' "; } -
Query strings are no longer work on Facebook. Page url or filename must be renamed in order for Facebook to fetch the new image.
-
Ok on the Crop Settings of a "Croppable Image 3" field I have "thumbnail,1200,600" so when I upload an image to that field I'm getting the following files inside site/assets/files folder: myimage.jpg (original) myimage.0x260.jpg (original variation) myimage.-thumbnail.jpg (crop) myimage.-thumbnail.0x48n.jpg (crop variation) All I want is the cropped images with the ".-thumbnail" to include a timestamp of their modification time (mtime) so the site/assets/files folder should contain ONLY the following files: myimage.jpg (original) myimage.0x260.jpg (original variation) myimage.-thumbnail-1543078585.jpg (crop) myimage.-thumbnail-1543078585.0x48n.jpg (crop variation) Everytime the crop is modified the timestamp on the filename should renamed with the new one. I hope you understand now.