Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/25/2025 in all areas

  1. Hi, I'm testing your module, thanks for sharing it. 🙂 I'm creating a form to upload a zip file to a temporary directory (wire()->files->tempDir(uniqid())), then I need to open the zip and parse its content, the files will be deleted by PW at the end of the request. There's something I don't understand about file uploading, the file name on server disk is modified so it no longer uses the name given by the form, and it seems it's not using the PW filenames rules. For example: the file name on my disk is "testésim.zip". the form, when using $this->getValue('zipFile') returns "testésim.zip" (the same). but the file on server disk was renamed to "testesim.zip" (no more accent). and the PW sanitizer, wire()->sanitizer->filename($this->getValue('zipFile')), returns "testsim.zip" (totally remove the letter with accent). It looks like FrontendForms is renaming the file with its own rules, and not updating the InputFile field value to reflect the correct name. So what is the way to get the correct file name from FrontendForms? Actually, since the upload is limited to one file, I do a loop on upload directory to find it.
    1 point
  2. @cwsoft you were absolutely right - this was the reason 😛
    1 point
  3. Here is the solution for this scenario: Instead of using only the "from" property, use the "replyTo" property too. 1) Use a sender email address that contains your domain instead of the actual sender address (for example use norply@mydomain.com, where mydomain.com is your site domain. $mail->from('noreply@mydomain.com'); 2) Add the actual sender address (for example john@gmail.com) to the replyTo property $mail->replyTo('john@gmail.com'); This will use the mail address of the actual user if you click on reply instead of "noreply@mydomain.com". I will add this to the module in the next update, so it should work on every host.
    1 point
  4. Hi all! Just wanted to say hi and comment that I truly love the new website, it looks and feels great, both mobile and on desktop. It also has its own unique look instead of general day-to-day trends we so often see. Great work @diogo @jploch and @ryan! While we don't use ProcessWire at my current job, I still maintain few PW sites and I love the experience. Miss the community a lot, stay health and happy everyone!
    1 point
  5. Hi everyone, we’d like to share a small but handy module we developed at frameless Media: TextformatterSmartQuotes. 🧠 The Problem While working on a client project, we needed to replace straight quotes ("...") with typographic quotes (like „...“) — but only in the visible text content, not inside HTML tags or attributes. Using the TextformatterFindReplace module, a case like this: <strong style="font-size: 18px;">Improved "well-being"</strong> would turn into: <strong style=„font-size: 18px;“>Improved „well-being“</strong> which breaks the HTML. We tried solving it with regular expressions, but none proved reliable enough. Every approach either failed to match all valid cases or accidentally modified tag attributes. That’s when we decided to build a dedicated solution. ✅ Our Solution TextformatterSmartQuotes is a Textformatter that replaces quotes only in visible text, leaving HTML markup untouched. It supports the following quote styles: German: „…“ English: “…” French: « … » The quote style can be selected in the module’s settings. 📦 Installation Place the module in /site/modules/TextformatterSmartQuotes/. Install it via the Modules admin interface. Assign it to any text/textarea/CKEditor field under “Text formatters”. Configure your preferred quote style if needed. This module helped us avoid fragile regex workarounds and keeps content formatting clean and reliable. Feel free to use, improve, or contribute to it. You can download it on GitHub or via the Modules Directory We’re happy to hear your feedback! Cheers, Mike
    1 point
  6. Happy new year everyone! New year, new module 🙂 A super simple color picker for the ProcessWire backend that can not only pick colors but also custom HTML (so you can use it for picking gradients, for example). Docs and Download: https://www.baumrock.com/en/processwire/modules/rockcolorpicker/
    1 point
  7. Just pushed v1.1.0 - actually it is not a "color" picker any more ? // custom CSS + HTML example $event->object->setColors('site_bgcolor', [ // custom css 'custom' => [ 'background: rgb(34,0,255); background: linear-gradient(90deg, rgba(34,0,255,1) 0%, rgba(0,0,0,1) 100%);', 'Blue to black gradient' ], // custom html 'custom2' => [ '<div style="width:200px;"> custom html demo ? </div>', 'Custom HTML demo :)' ], ]);
    1 point
×
×
  • Create New...