Jump to content

horst

PW-Moderators
  • Posts

    4,077
  • Joined

  • Last visited

  • Days Won

    87

Everything posted by horst

  1. I encountered this issue too. Maybe one can call it a bug? I only used this functionality once, so I added a quick workaround in my template file. If the fields content is empty, I injected some chars " ... ", so the field is clickable. (The spacers are added to the $page->fieldnames in memory, it does not get saved into the DB.) Following the dirty copy/paste of my used code
  2. Hhm, sorry, I was very busy and disabled all notifications for the last 7 hours, to get not distracted. On the topic: We can hide it, or we can keep it. It is not (only) my decision. (?) @kongondo has locked it, maybe that is enough in this case? (So everybody can read what happened, but we avoid further discussions into the wrong directions.)
  3. Thanks @szabesz! @bernhard should I hide / delete that thread?
  4. Is there a slack channel already?
  5. @psy thanks for the link and info. As I use(d) (un)serialize a lot, I never encountered that problem myself. Maybe I simply had luck that the processed data mainly were key/value pairs and no long strings or texts. But I don't get the context with JSON in the title? Only thing that directly comes to my mind is to use json_encode and json_decode instead of the (un)serialize functions. JSON_encode/_decode seems to be free of workarounds with extra steps of base64 encoding or others. (And I don't think base64-encoding is a plus in regard of privacy/security.) Until now, I mainly preferred the (un)serialze functions. But now, with this information, I will switch to only use json_encode / _decode. So, thanks again for sharing! ?
  6. Look / debug what you get from ->images->getRandom(), maybe via die(var_dump($randomImage)); Then you will know what to do, or you come back with the new information and ask how to proceed further.
  7. Hey @teppo, the user 8-bit-guy is one of my sons favourites. My 12 years old son loves to work and hack retro hardware, like commodore 64 and a whole bunch of gaming handhelds or consoles, (besides others). Every third or second time, when he get something to work, and I ask him how he got it to work, he answers: "I found some useful information from the 8-bit-guy." ?
  8. Yep, it then definetly removes all variations. ? But in some cases it may become handy to use a scalpell instead of a hammer. For example, if you use the same images in different locations, as with centralized image pages, you may have a total of 100 variations but only 7 do belong to your current template. Just a thought: Maybe a programmatically created suffix, based on the (page | template | imagefield), can be embedded into the variation names? This way, you only need a delete-function that gets passed that suffix, to remove only variations containing it in their names.
  9. Yep, I know. My comment was addressed to Bernhard and his main question in this thread. Sorry for being unclear.
  10. This will not work well together with a centralized (and included) version number. There are multiple possibilities to mix wrong files together. My personal conclusion is to keep the version number hard written in each class file, ( the old schooled way). ?
  11. You need wireHTTP to send a GET or HEAD request to get back the status code. ?
  12. What about a proxy script on site B that gets invoked via htaccess for all images coming from site A. This script determines which variation is desired and redirect to it on site B. If the desired variations are yet not pre created, the script from site B must talk to a script on site A that is possible to create a variation before finally redirecting to it.
  13. Hi, thank you for the write up. ? For me it looks you found the right balance for beginners and experienced users. A following second part would be very nice and useful. Additionally to that, if you don't mind, I would be interested in a third part too. This one should cover how the function(s) recognize or act upon changes of a focus point or zoom value, if used. Does it recognize it, and recreate all variations? Do you also include / provide or already use a function to remove exactly the previously created variations? Maybe useful during developing a site, when my first used sizes need to be adjusted. (Otherwise I would have a lot unused variations). If you don't use this already, I think it could be done very easy by using a suffix for the variations.
  14. 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. ?
  15. 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!
  16. @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.
  17. or if even needed more early, but thats not very common, add it into your site/config.php. ?
  18. 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.
  19. ? 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? ?
  20. Best wishes for the new part @kongondo. It feels like a perfect fit, Padloper and you. ?
  21. This may also be an indication for modules that work well and fulfil a task perfectly, leaving nothing to be desired. ?
  22. Use absolute paths, for example, if your src directory is a sub of templates: $config->paths->templates . "src/components/filename.php";
×
×
  • Create New...