Jump to content

bernhard

Members
  • Posts

    6,629
  • Joined

  • Last visited

  • Days Won

    358

Everything posted by bernhard

  1. why do you need that complicated setup? maybe I missed something here but why not just like this? $(document).ready(function() { var text = ProcessWire.config.demo; $("h2.tagline").addClass("color-red"); console.log(text); });
  2. I have a suggestion for an "explanation" for such a client in form of an offer you could send him: Form with honeypot spam-protection: X € Form with recaptcha spam-protection: X + Y € And with the Y € we could fund the implementation of recaptcha into RockForms "Y" has to be totally overpriced, of course
  3. 'recipes' => [ // sample callback as recipe function() { $this->msg('Installing AOS...'); $aos = $this->installModule('AdminOnSteroids', 'https://github.com/rolandtoth/AdminOnSteroids/archive/master.zip'); $this->wire->modules->saveConfig($aos, [ 'enabled' => 1, 'enabledSubmodules' => ['FieldAndTemplateEditLinks'], ]); $tracy = $this->installModule('TracyDebugger', 'https://github.com/adrianbj/TracyDebugger/archive/master.zip'); $this->wire->modules->saveConfig($tracy, [ 'superuserForceDevelopment' => 1, 'editor' => 'vscode://file/%file:%line', ]); }, ], Current version of the kickstartfile: Installs AOS, enables it, enables editlinks. Installs TracyDebugger and sets editor protocoll handler for vscode. 1-click installation of ProcessWire with custom module setup and (in contrary to using site profiles) UP-TO-DATE modules and pw-version! Since january I have not run the default pw installer once...
  4. Thanks @gebeer I took a quick look but have no time (and interest) to implement this at the moment. At least not as long as I don't have any spam issues with the existing honeypot solution. I'm happy to accept pull requests though. I've fixed a small bug and I've added automatic loading of assets while checking your request. V2 is on gitlab
  5. Sparkpost is doing a webinar about how gdpr affects email worldwide. Maybe someone is interested... GDPR Affects Email Worldwide April 26, 2018 1 PM EDT/10 AM PDT register here For the Europeans: In Vienna it starts at 7 PM
      • 1
      • Thanks
  6. I think you could open an issue at GitHub explaining your example and providing the link to the 127 entries related to that error message. Maybe Ryan has an idea how he can add some checks that show more helpful informations and make it easier to track down the issue.
  7. No, hidden is just hidden for find operations, but the page can still be accessed directly. You need to set it to "unpublished" (then a request leads to a 404 error not found). Then you need to add "include=all" to your $pages->find() selector otherwise it will not find your alerts.
  8. that looks totally fine to me just make sure that the alert pages itself are not accessible from the frontend. maybe I'm wrong, but I guess you have some "bootstrap_alert" pages with a related bootstrap_alert.php file in the templates folder? then those pages will be accessible as /whatsoever/youralertpage1 from the frontend and that might not be what you want?
  9. Hi @MikeM and welcome to the forum, your question was well structured and it seems that you put some time into writing your request. And you see that you got multiple helpful answers within a very short time period. That's how it usually works here - so if you decide to start learning pw you'll always find a helping hand here If you choose pw you should definitely take a look at my new module: You can build any form you want very easily. It's the only tool that I know that has frontend and backend validation in one go (making it super easy and fast to setup and highly maintainable) and it also has conditional fields, what you described as a must-have: https://doc.nette.org/en/2.4/form-validation There's also the pro module formbuilder, but I have only bought and never used it so I can't tell you anything about it. PS: If you need any assistance or new features for RockForms I would be happy to implement those features for you.
  10. Great that you found the issue. Would be curious what WordPress would have done on that server ? Do you think it would make sense to improve processwire so that it showed an appropriate error message in such cases? Would that be even possible? If yes maybe someone can make a PR? ☺
  11. hi and welcome, did you see the docs here: https://processwire.com/docs/tutorials/how-to-structure-your-template-files/ ? There's also a lot to read, if you like Old but still good i think. Also, as sergio already mentioned, have a look at the "default" site profile (choose it during installation and see what is different to your setup). You can adopt your setup to use it like the default profile easily (the keywords are append/prependTemplatefile): https://processwire.com/docs/tutorials/how-to-structure-your-template-files/page4
  12. I disagree. I have had no problems at all for some years and on several websites. Also I followed the forum quite intensively and I've never come across any serious problems with that. But maybe I'm misunderstanding what you mean by "black hole". If you are not able to solve this problem on your own, I'm sure there are many experienced developers you can pay for professional support. There is the jobs board in the forum and you could even ask ryan per email to assist. There is also the possibility to contact your hosting provider for backups. Then you can start from the last working version. Finally: It seems to me that the problem you are having is totally NOT related to processwire. The same could have happened with wordpress: When you break the setup of your server, the CMS has no chance to run properly. Another advice would be to start from your last working backup, protocol every step you take and share your information here. Sometimes when you write things down the solution pops up and asking that question isn't even necessary anymore. Good luck, bugfixing sucks - independent from any cms
  13. just wanted to paste a reference to another weather module here: I've asked a question about the differences there. Don't want to double-post, but as this information is related I think it's good to link both topics. If you have any experiences with these two modules and can share them please answer my question in the linked topic, thanks.
  14. hi, there is also this module from 2014: does anybody know the differences and can share their experience? thanks.
  15. And did you clear your cookies? It's always a good idea to test pw in the browser's incognito mode when strange things occur. That has helped me several times already.
  16. NOTE 2022: Better use URL hooks! https://processwire.com/blog/posts/pw-3.0.173/#introducing-url-path-hooks Hidden option ? // site/ready.php $wire->addHookBefore('Page::render', function($event) { $page = $event->object; if($page->template == ...) include(yourcodefile.php); // or any other condition }); // yourcodefile.php <?php namespace ProcessWire; if(!$this->config->ajax) return; // early exit // any other conditions // return json header('Content-Type: application/json'); die(json_encode($yourdata)); @Guy Incognito you might also be interested in this thread:
  17. Thanks for your feedback, I really enjoy the discussion. @mit Aggrid is also mit licensed: https://github.com/ag-grid/ag-grid/blob/master/LICENSE.txt And I don't think it's bad to have paid pro features. Quite on the contrary. I think it can ensure a long life of the software and good quality. We know that principle from somewhere, don't we?! ? @xlsx I have looked at this closely already as it is a must for me to transfer data to excel. Aggrid has the ability to export data as CSV with custom separators. It's perfectly fine to use this for excel export IMHO. It even has custom renderers that only fire when data is accessed for export. Only thing missing at CSV compared to xlsx is fancy styling and formulas etc. Personally I don't need this in any of my projects. Ok, simple links come to my mind. That might be nice to have. But we can still use the API to get data and then use any other JavaScript xlsx library to create our files. Or just pay a little fee to enable that feature. Aggrid looks really well crafted. I'm actually quite happy that I forgot my version of datatables at home over Easter so I was forced to take a pause and take a closer look to aggrid ?
  18. thx @szabesz, haven't seen anything about tabulator so far. It looks quite similar to jquery datatables though and I have not seen anything that would not be possible using aggrid on the first sight. Or did I miss anything? I'm quite far with my implementation of agGrid, so I'm quite sure I will not change the grid library (again) very soon
  19. Just added a check for empty find() result in RockSqlFinder: https://gitlab.com/baumrock/RockSqlFinder/commit/6d24cfd042d29a72a976db810e3d450c9166c531 If you are using it, this might be worth to update!
  20. You can even use it inside the backend: Install Postman Interceptor extension Activate the extension in the browser and in the postman app Go to your desired admin page (eg /page/edit/?id=123) The request will show up in the history and you can modify it to your needs I'm doing a die('test') here in the admin, with tracy installed, of course
  21. This is actually very easy but might be interesting for someone anyhow (and I post it here as a reminder for myself). You can use Postman (https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=de) to send requests to your ProcessWire installation and test request answers. The problem is that $config->ajax will always return FALSE. To make the $config->ajax work properly you just need to add this key-value-pair to your requests: key: X-Requested-With value: XMLHttpRequest Happy AJAXing PS: This also works inside the admin, see post 3
  22. https://www.ag-grid.com/javascript-grid-features/ Everything with (e) is enterprise:
  23. Also take a look at the example of agGrid: https://www.ag-grid.com/javascript-getting-started/ I think it is superior to (and in most cases also easier than) datatables, that's why I'm switching. You just need to grab data via RockSqlFinder (see above) and echo that in your gridOptions definition in the javascript tags.
  24. It is not released yet...
×
×
  • Create New...