Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by PWaddict

  1. Hello! If the editor accidentally don't make a whole word as bold and do something like this: "Lorem" and then make the "Lo" letters bold too "Lorem" (<strong>Lo</strong><strong>rem</strong>) on the site using $sanitizer->truncate() for a summary, that word will be displayed as 2 words like this: "Lo rem". Any idea how to fix this?
  2. Hi! What industry category have you selected on Stripe for graphic design and web design/development? The entire list is viewable here. Is the "Other Digital Goods" or "Other Business Services" the proper one?
  3. I found the solution with wireLangReplacements() function. /** * Replace "Missing required value" text ONLY on frontend * */ if($page->template->name != "admin") { wireLangReplacements([ 'Missing required value' => 'My replacement value', ]); }
  4. Hi. I would like to replace the text "Missing required value" ONLY on frontend forms. Any idea how can I achieve that? Thanks in advance!
  5. No, I'm getting just 1 email. I've only changed the 203 and 211 lines and everything seems to properly work. Thanks for the help.
  6. @strandoo The above error text issue is caused by the 245 changed line.
  7. @strandoo I changed the 211 line and now it works but if I try to submit the form without checking the reCAPTCHA I'm getting the error "InputfieldRecaptcha" instead of the "Failed reCAPTCHA input test" as it should be due to the following hook: $wire->addHookBefore('SimpleContactForm::processValidation', function(HookEvent $event) { $form = $event->arguments(0); $recaptcha = $form->get('recaptcha'); // add error if not pass the reCaptcha test if (!$this->input->post->{'g-recaptcha-response'}) { // attach an error to the field $recaptcha->error(__('Failed reCAPTCHA input test')); // it will be displayed along the field } });
  8. @strandoo I replaced $form->getErrors() with $form->getErrorInputfields() on lines 203 and 245 but now I'm always getting SPAM error when I'm trying to fill a form (even without filling the honeypot field) and on the logs I'm getting this: [FAILURE] Number of fields does not match. IP:
  9. Currently I can't try it cause it requires at least PHP 8. I'm still using PHP 7.4 as I don't want to update yet without testing all modules to make sure everything works properly. @strandoo so far we are the only ones that mentioned this issue and I notice that we both use your reCAPTCHA solution. Have you tested the form without the reCAPTCHA?
  10. Yes, only one failed and then 1 second later success! I didn't thought about the PW updates. On January, I've upgraded the one site I'm using this module from 3.0.165 to 3.0.210 but the frequent spam started on April if I remember correctly. No idea what is causing this issue. Don't forget that this is an abandoned module 😞
  11. Problem solved thanks to @matjazp Since I'm using the page referenced field on the user template I had to change the following 2 fields since the user template doesn't have a title field. Fields to query for autocomplete Label field
  12. Lately, I'm getting lot of SPAM. I checked the log and even it detects the SPAM as FAILURE like "Honeypot field was filled" or "Number of fields does not match" then 1 second later there is a SUCCESS. Here is a log of "Honeypot field was filled": 23 hours ago 2023-06-13 07:38:44 [SUCCESS] Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5042.0 Safari/537.36,, myemail@mysite.com 23 hours ago 2023-06-13 07:38:43 [FAILURE] Honeypot field was filled. IP: Here is a log of "Number of fields does not match": 13 minutes ago 2023-06-14 06:24:52 [SUCCESS] Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36,, myemail@mysite.com 13 minutes ago 2023-06-14 06:24:51 [FAILURE] Number of fields does not match. IP: I'm also using reCAPTCHA but it seems that spammers have found a way to pass all these...
  13. @Java I'm using the 1.07 version and the module is working properly. Which version you have installed?
  14. Nice work @bernhard, I'm gonna try RockMigrations soon.
  15. Yes I know about the aliases but I don't prefer that method because: If your recipient uses Outlook or another mail service, they might see something like, "From yourname@gmail.com on behalf of othername@otherdomain.com." Your recipients might also see your original @gmail.com address if you: Set up an out of office reply Create a filter with automated response Have a full mailbox, and your recipient gets notified Info taken from the Google.
  16. I removed the hook as I don't need it anymore but I'm curious why this doesn't work on 3.0.210.
  17. You can use your free Gmail account with the free module WireMailSmtp by @horst First make sure you have enabled 2-Step Verification on your Google account. Then create an App password (you gonna need it for WireMailSmtp). Check the screenshot below: Next on WireMailSmtp settings make sure to add the following: Local Hostname: yourdomain.com SMTP Hostname: smtp.gmail.com SMTP Port: 587 SMTP User: youremail@gmail.com SMTP Password: the app password you created on Google account (NOT your Google password) Use START-TLS: Checked Select a crypto method for TLS: STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT Sender Email Address: youremail@gmail.com Sender Name: Your Name I tested the above few months ago and worked fine with a free Gmail account, then I bought Google Workspace so I can use my custom domain instead of @gmail.com.
  18. Since it wasn't working, I've uninstalled AdminStyleRock and followed the instructions from here. You should mention somewhere on AdminStyleRock module or it's page that specific field to work requires the RockFrontend module to prevent confusion.
  19. Hi @bernhard installed Less module and then AdminStyleRock but when I submit the "Primary Color" field I'm getting the following fatal error: Fatal Error: Uncaught Error: Call to a member function forceRecompile() on null in C:\laragon\www\mysite\site\modules\AdminStyleRock\AdminStyleRock.module.php:168 #0 C:\laragon\www\mysite\site\modules\AdminStyleRock\AdminStyleRock.module.php(123): AdminStyleRock->iframe(Object(InputfieldWrapper)) #1 C:\laragon\www\mysite\wire\core\Modules.php(4112): AdminStyleRock->getModuleConfigInputfields(Object(InputfieldWrapper)) #2 C:\laragon\www\mysite\wire\core\Wire.php(419): Modules->___getModuleConfigInputfields('AdminStyleRock', Object(InputfieldForm)) #3 C:\laragon\www\mysite\wire\core\WireHooks.php(952): Wire->_callMethod('___getModuleCon...', Array) #4 C:\laragon\www\mysite\wire\core\Wire.php(484): WireHooks->runHooks(Object(Modules), 'getModuleConfig...', Array) #5 C:\laragon\www\mysite\wire\modules\Process\ProcessModule\ProcessModule.module(1680): Wire->__call('getModuleConfig.. (line 168 of C:\laragon\www\mysite\site\modules\AdminStyleRock\AdminStyleRock.module.php)
  20. @kixe saving the home page causes this: PHP Notice: Trying to get property 'childNameFormat' of non-object in C:\laragon\www\mysite\site\assets\cache\FileCompiler\site\modules\ProcessSetupPageName\ProcessSetupPageName.module on line 404
  21. Hello and happy new year! Today, I decided to upgrade a site to 3.0.210 from 3.0.165 and so far I noticed one issue. The following hook doesn't work properly (worked fine on 3.0.165). It changes the text but it won't let the non-superuser to delete the page. Pressing the button redirects the page https://mysite.test/admin/page/edit/?id=11293 to https://mysite.test/admin/page/edit/?id=11293&s=1&c=1 /** * Rename "Move to Trash" text on Delete tab's button * */ $wire->addHookBefore('InputfieldButton::render', function(HookEvent $event) { if ($event->object->id != "submit_delete") return; if ($this->wire('user')->isSuperuser() == false) $event->object->value = "Hello World"; });
  22. Thank you for the hint. Here is what I did and it seems it does the job. $wire->addHookBefore('WireMail::send', function(HookEvent $event) { $WireMail = $event->object; if(!$WireMail->bodyHTML && $WireMail->body) { $forcehtml = nl2br($WireMail->body); // nl2br — Inserts HTML line breaks before all newlines in a string $WireMail->bodyHTML($forcehtml); } });
  23. Hi, is it possible to force ProcessWire to send all outgoing emails with HTML instead of Plain Text? Password Reset error email for example is sent as plain text.
  24. Thanks and sorry for not responding sooner but on the last months I've been busy with other stuff. By the time I will I finish those you will probably already have the website, demos etc. ready. Btw, will you brink back the padloper.pw or the new Padloper "website" will be on processwireshop.pw?
  25. Thanks for the reply. You know better how to price your own product but I'm not talking about that. As I'm a Padloper 1 owner it would be really helpful if I knew what Padloper 2 has to offer me that Padloper 1 don't, in order to help me decide if it's worth investing on it since there is no upgrade option with an "attractive discount" as you originally planned (btw, that would probably be an instant upgrade ?) Since we agree to disagree, I will wait for the new Padloper website to check all features, demo videos etc...
  • Create New...