Jump to content

adrian

PW-Moderators
  • Posts

    11,213
  • Joined

  • Last visited

  • Days Won

    373

Everything posted by adrian

  1. 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?
  2. Nice find! That last comment suggests it's not working completely as expected. Have you tested it? Any issues?
  3. 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.
  4. 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.
  5. https://processwire.com/blog/posts/upgrades-optimizations-pw-3.0.22/#major-enhancements-to-our-password-field
  6. Thanks @bernhard and everyone else who chimed in - I'll see what I can do about implementing this.
  7. I think this is what you are looking for: $input->url(true) https://processwire.com/api/ref/input/url/
  8. 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.
  9. 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.
  10. 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
  11. 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.
  12. 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
  13. 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.
  14. 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?
  15. 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!
  16. 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
  17. 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
  18. 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 !
  19. Compare it to the array of results when you run the Captain Hook panel in Tracy where I am getting 830
  20. haha - I thought you could do a diff on it somehow. Maybe before generating the html you could compare the php array?
  21. I wonder why I am getting 830 on dev vs your 800? Can you figure out which ones are missing?
  22. Right. Looking at the code in that script that is making use of wire - some of it could easily be stripped out for your use case (some of it is to check the existence of the ProcessWireAPI module for directing to API docs on the PW website vs local install) and some modified to not need wire at all (that check for DOTS in the path).
  23. I guess the File Compiler is taking care of that for me. Any reason you can't just namespace once at the top? Anyway, I'll leave it to you if you want to make use of it.
  24. Hi Soma, Just wondering if you would consider implementing the latest code from the Tracy Captain Hook parser. It us returning 830 core hooks compared to the 770 listed on this Captain Hook page. Also, you have this error showing at the bottom of the new version: Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/philippurlich/Documents/projekte/pw2.1/PWCaptainHookCLI/generate-html.php on line 82 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/philippurlich/Documents/projekte/pw2.1/PWCaptainHookCLI/generate-html.php on line 83
  25. Rather than chartjs, can I suggest something that outputs SVG (not canvas) and is potentially based on D3js to make it easy to manipulate beyond the charting library's built-in options. SVG gives more options for exporting the charts for use in vector graphics editors. I admit I haven't done a chart heavy project in a couple of years so I am not fully up to date, but I quite like http://c3js.org/ - they are not the sexiest charts by default, but you can manipulate however you want via CSS and D3js making it incredibly flexible. There might be other good/better options out there now also so definitely worth some research time.
×
×
  • Create New...