Jump to content

adrian

PW-Moderators
  • Posts

    10,902
  • Joined

  • Last visited

  • Days Won

    349

Everything posted by adrian

  1. Is there some reason you can't hook into: ProcessPageClone::process and execute your additional code there?
  2. I don't really think it's one or the other. jquery is more a library and Vue a framework. I know it can be a fine line between the two, but something to be aware of. jQuery is still everywhere and very useful for simple DOM manipulation tasks. Mind you I would also suggest that you should learn plain javascript first - having that foundation will serve you well and make it easier to pick up the next trendy JS framework. Also, why load up jQuery for one simple thing that could easily be achieved in plain JS? Obviously Vue is becoming a popular framework, but a couple of years ago it was all Angular, and before that it was .... well you get my point. I do think that Vue is a good choice for a full blown framework right now though.
  3. I think your best option would actually be to put: print_r($stmt); on the line before: $database->execute($stmt); You can post the output here, but you can also test it yourself (maybe in PHPMyAdmin) to see how the raw query goes. It might give us some idea of why it's failing.
  4. What version of PW, PHP, and MySQL are you running? Are you using MyISAM or INNODB tables? Can you debug a few lines above where that error is being reported and let us know the content of $query
  5. They all work here. You can see they all return 95 users:
  6. http://cheatsheet.processwire.com/selectors/selector-operators/
  7. That looks awesome. I'll have to give it a go. If it's working as expected in all/most IDEs I don't think I'll worry about building this into Tracy unless you guys can think of a reason why it would be a better fit there - it's nice to have less modules to install I guess, so maybe that's enough of a reason?
  8. Nice find! That last comment suggests it's not working completely as expected. Have you tested it? Any issues?
  9. No the showing of the debug bar has never been linked to PW's debug mode. I am hoping to start work on redoing the docs in the new year and I will try to better explain how the modes work (local dev vs live) and superuser vs other allowed users. I realize it's not super clear at the moment. The good thing is that it's super conservative about who gets access where.
  10. Hi @rick - I would start with clearing your browser cache / cookies (at least any related to Tracy), or at least try in a private / incognito window to rule out something along those lines. Next would be to check that Tracy is actually being loaded - the PW admin Debug Mode Tools > Modules Loaded is probably the easiest place to start. Also curious about what settings to you - what mode, is superuser force dev turned on, etc.
  11. https://processwire.com/blog/posts/upgrades-optimizations-pw-3.0.22/#major-enhancements-to-our-password-field
  12. Thanks @bernhard and everyone else who chimed in - I'll see what I can do about implementing this.
  13. I think this is what you are looking for: $input->url(true) https://processwire.com/api/ref/input/url/
  14. I have tested with 2.7 and it works fine. Not sure about anything lower than that, but if there are any problems, I expect they would be restricted to more obscure functionality rather than the module as a whole not working.
  15. I agree with @horst about creating a new homepage - I don't think it will be possible and certainly confusing if it was. For testing code, I am going to shamelessly promote TracyDebugger. You can use the Console panel to run any code, or if you want to test changes to the code of a particular template, use the Template editor panel which lets you "Test" the changes without actually affecting the code that is being served up to all other visitors. As for the Pages > Add New and only seeing bookmarks, that is due to your template setup - you need to read up on how to get that add new option working. The main/default way to add a new page is from the "New" action button when you mouseover the parent page in the page tree.
  16. Thanks @Soma - that helps. Looks like we are actually getting the same results - a miscount on my part - sorry about that! The reason of course for the extra one (now 801) is because Ryan added a new hook this morning: https://github.com/processwire/processwire/commit/87dc586c8c5d3435db8badcfbec7e9779e2b7f55#diff-bf4ce11deee917bffc99d4efcc9f72f1R2291
  17. I thought we were working together to try to improve your Captain Hook sheet here. I guess the difference is that you can easily install Tracy, whereas I can't replicate exactly what you have at your end. That said, if you could send me a json_encode()'d version of $hooks, I can do a diff on the output you have vs what Tracy outputs. Maybe it's a bug in my script and I would like to improve it for everyone's benefit. Thanks.
  18. I know my way around, but "expert" might be a stretch depending on what you want to do. Are you looking for Linus' clone or someone who knows how to compile source code, or somewhere in between
  19. On the search front, I don't forget that Tracy has a built-in search that lets you choose what part of the site you want to search. It's a shortcut to that Google site search, but modified to the area you choose.
  20. Steve, what do you think of including "beta" in a version number, eg: '1.2.0 beta' I am wondering about this for both new modules and also those that have received a new feature or some other changes that you think take it from it's listed "stable" status back to "beta". I am thinking this might be good as a warning to users not update on a live site without thoroughly testing their use case. So do you think this is a good idea in general, and do you think it would be worth having this module highlight version numbers with a new beta designation?
  21. Hey @bernhard - I'd be happy to implement this in Tracy. But first, I think I need to better understand exactly what you want to see in the output. Have you looked at the "Hooks Triggered" section of the Debug Mode panel? That is called on each page request. What additional information would want to see. Sorry, I feel like I am not quite fully getting it yet. Thanks!
  22. I agree with @kongondo that D3 isn't really that hard - I think it comes down the how much flexibility you need. I think you have to take the approach that best fits the task - as always. PS - this was my original D3 type approach to generating SVG and PNG diagrams/charts programmatically: https://pear.php.net/package/Image_Canvas It was very cool back in the day
  23. It really is supercool - so incredibly flexible. I think it's initial look might put some people off, but you have so much control over what is output which is what makes it so powerful - sounds like something else we all love around here
  24. Hi everyone, @bbeer has kindly sponsored support for CSV import creation of multilanguage content in child pages. You can "Add" new pages in your default language, and then use "Update" mode to add the content for other languages - this is done with separate CSV files for each language. This feature should be considered an early beta version at the moment, so please backup your database first and test carefully on a dev version before deploying live. Let me know if you come across any issues. Thanks again to @bbeer !
  25. Compare it to the array of results when you run the Captain Hook panel in Tracy where I am getting 830
×
×
  • Create New...