Jump to content

horst

PW-Moderators
  • Posts

    4,088
  • Joined

  • Last visited

  • Days Won

    88

Everything posted by horst

  1. Hi Bernhard, Q: .. and when the changelog.md has gone, (by accident of corse)? The modules are PHP, why not using a PHP file and including this? I think with a PHP file, people will be more careful then with a readme, or changelog file. public static function getModuleInfo() { include(__DIR__ . "/version.inc.php"); // the inc.php contains a var $moduleVersionNumRockGrid, which holds the current version return array( 'title' => 'RockGrid', 'author' => 'Bernhard Baumrock, baumrock.com', 'version' => $moduleVersionNumRockGrid, 'summary' => 'RockGrid Main Module', 'requires' => ['RockFinder'], 'installs' => ['InputfieldRockGrid'], 'icon' => 'table', 'autoload' => true, ); } This way, you can style your changelog file to match @netcarver desired formats for programatically read those in. ?
  2. upload_max_filesize & post_max_size have nothing to do with memory_limit! try: php_value memory_limit 256M // or 512M Also, post_max_size has to be 20 or 30 percent greater then upload_max_filesize!
  3. @iNoize, I cannot get the context between your question and this more then six years old thread. (?) If you have posted here by accident, please tell us and I/we can move your post to the right direction.
  4. or if even needed more early, but thats not very common, add it into your site/config.php. ?
  5. Definetly, the quality of DeepL is double, triple or quadruple the quality of g**gle translate. Regarding the API usage, what is a pro or paid feature, I understand it as a monthly price of 20 €, (but only up to 1.000.000 words), what results in a yearly cost of 240 € per user, regardless if you translate 12.000.000 or 0 words.
  6. ? Congrats for the new site! ? ... and, as always, the good write up! --- --- --- I never forgot your first case study here back in 2014. Especially one post a bit down in the thread: --- --- --- There is only one question I have: Why you’re called Pigtail Pundits? ?
  7. Best wishes for the new part @kongondo. It feels like a perfect fit, Padloper and you. ?
  8. This may also be an indication for modules that work well and fulfil a task perfectly, leaving nothing to be desired. ?
  9. Use absolute paths, for example, if your src directory is a sub of templates: $config->paths->templates . "src/components/filename.php";
  10. This is how I understood @Ivan Gretsky but I may be wrong. Regardless of this, it depends on how many devs work on one site. If I'm the only one, I mostly know what I'm doing. ?
  11. What about this: The config setting should not override the fronten selection, but should make the named ones stay visible (unhideable). ? Or is it that what you allready have in mind? Thinking that someone enables per frontend a panel, that is not within the config setting.
  12. Additionally to adrians suggestion to use TracyDebugger, there also is a possible solution to programmatically adjust between different installed WireMail extensions. (Initially I understood your question in a wrong context. I thought you would want to use both directly in production mode. But if you want to use one for debug mode and one for production, you may define / setup something in your config.php and ready.php.) I would define an extra var in site/config.php that, set to true, enables the wiremailsmtp (production) mode. If it is set to something other or completly missing, enable the wiremail debug extension. needed code may look like this: // in site/config.php $config->useProductionMailclass = false; // in site/ready.php $wireMailClassProduction = 'WireMailSmtp'; $wireMailClassDebug = 'WireMailTesting'; $neededWireMailClass = true === $config->$config->useProductionMailclass ? $wireMailClassProduction : $wireMailClassDebug; // now read which version currently is set to use if($mail->className != $neededWireMailClass) { // the wrong class is in use, change it: foreach($modules as $module) { $parents = class_parents("$module"); if(in_array('WireMail', $parents) && $modules->isInstalled("$module")) { if($module->className == $neededWireMailClass) { $mail = wire('modules')->get("$module"); break; } } } } // do a final validation and add an error handling for when the desired module isn't loaded at this step! if($mail->className != $neededWireMailClass) { die('Something weird is gooing on here with WireMail-Classes'); }
  13. You are talking about the admin site, - or Frontend?
  14. That is exactly what cannot override the customers private browser setting for file downloads of type PDF. If you serve a file of type PDF you can tell the browser "your wishes", but every individual browser may have its own preferences that cannot be overridden. I had understand that it should be not downloaded but directly shown as document, what only can be asured if you also provide the app for displaying the doc, as you don't know if a browser has a setting that enables such a behave.
  15. AFAIK, this is a browser specific setting, that you hardly can override if you only serve a download link. But if you use a service like g**gle docs, it should work: https://nogajski.de/autosoftproof/ (the last link in the list)
  16. Hi Ivan, I think you can try to instantiate two parallel vars by calling the extention class names. At least you should give it a quick testing, if that works. I never have done this. $smtp = new WireMailSmtp(); $mgun = new WireMailMailGun(); You need to check if those initiated objects need to be passed any config data to work. EDIT: yep, and leave the predefined instance wire('mail') alone.
  17. A bit OT, but worth a read: https://dev.to/effingkay/4-practices-for-better-code-4nf3
  18. Hhm, so you will have one or multiple webservers with different states of variations, but only the AWS S3 cloud is always containing everything. What's about your own idea, hooking into $page->save(): check if imagefield(s) exist in that edited page if yes, compare all image and variation timestamps and upload those from within the last x minutes. This way, you are completly free to use what ever image tools you like.
  19. What is the primary benefit for hosting images in the S3 cloud? Or the other way round: do you need to save diskspace on your local server?
  20. I think you don't need to hook into this module. You need to hook into Pageimage, doing the following: check if the requested variation is available on your AWS S3 remote storage, and if yes, just link to it, and if no, create a new one, upload it and finally link to it. This is independent from the different ImageRenderingEngines and extra modules. EDIT: Have you seen this:
  21. I don't understand. Please can you clarify, maybe with a short explanation, what you want to do?
  22. Which PW-version are Site A & Site B? I have used fields & templates export & import a lot, but without ex-/importing pages. I don't have had any issues so far with the templates ex-/import feature. Only if there are templates in family-children relation that need both imported together in a new site, it needs multiple import steps, as in the first run, the family settings can not be set because wether parent nor childrens are known in the system.
  23. @bernhard only thing what seems not as good with OSM as it is from g**gle, is the routing planner. At least, it wasn't for a long time. (?) My personal workaround for that is to use OSM with a link to g**gles routing planner. ? For example, on https://wein-coop.de/ I use OSM with Leaflet and a link to the Routingplanner ( https://www.google.de/maps/dir/50.7823,6.0759/@50.7823,6.0759,15z ).
  24. Thanks for the hint, Bernhard. Until now, I haven't had time to look at it. So, will add it to the list of things to explore / try out. ?
×
×
  • Create New...