Jump to content

szabesz

Members
  • Posts

    3,011
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by szabesz

  1. Thank you Ivan, I do appreciate it. I will have time on the weekend to implement my version. I might even turn it into a module, who knows? (I certainly don't ).
  2. https://processwire.com/talk/topic/17707-php-in-2017-rasmus-lerdorf-wearedevelopers-conference-2017/ +1 Progress can be great, fiddling with new stuff is fun but acquiring new skill takes time – for me a lot of time – so I try to stick to well tested and proven tech. For example, when I was young and bold I used to upgrade Mac OS as soon as the new version came out. These days I wait at least for six months before I do it, in order to watch and learn. There are enough beta testers out there, I'm no longer one of them.
  3. Well, he is even more controversial than Jobs. Einstein, the Plagiarist: https://www.bibliotecapleyades.net/esp_einstein.htm I do agree that they do not seem to be the best fathers ever Back to Steve(s). Once I was lucky enough to meet Steve Wozniak in person. Well, he would be a better choice if you had to pick a father...
  4. Morning, To tell the truth I'm still interested If I can also do it quickly it makes sense to convince the client. So if you have the time, please share it. Thanks in advance!
  5. Ah, never mind Ivan! Things change quickly, we decided to use email+password instead Cheers!
  6. @Ivan Gretsky Hi Ivan, Did you implement it? I will probably need it too, so if you could boost my thinking with an example code snippet that would be appreciated.
  7. Yes it does
  8. Have you seen these? https://processwire.com/talk/topic/11451-change-default-language-revisited/ or: https://processwire.com/talk/topic/12743-using-an-empty-language-pack-as-the-default-front-end-language/?do=findComment&comment=116016
  9. I'm not a fan of docs as part of modules. Maybe its just me but I like to keep the codebase as light as possible. Also, we've been asking for "changelog" support in ProcessWire so it is hard to see why docs support would get priority but one never knows I understand this but if that tool can export in a format which makes it possible to migrate the whole stuff – just in case – then why not give it a try? I'm not pushing penflip.com as I have only read its homepage, I just like tools which are designed for a specific need. As long as they work well, of course...
  10. we
  11. +1 I'm not fond of unsupported "hacky" solutions but it is just me Maybe a dedicated tool instead? I just googled a bit: https://www.penflip.com/ There could be alternatives, of course.
  12. I do not know what makes a genius but Steve Jobs was a rather controversial character. Sometimes he was more like maniac. He was rather good at expressing his thoughts, sure. http://fortune.com/2008/03/05/the-trouble-with-steve-jobs/ "Jobs’ personal abuses are also legend: He parks his Mercedes in handicapped spaces, periodically reduces subordinates to tears, and fires employees in angry tantrums. Yet many of his top deputies at Apple have worked with him for years, and even some of those who have departed say that although it’s often brutal and Jobs hogs the credit, they’ve never done better work." In my point of view, a "true genius" has no moral issues to begin with. After all she/he is supposed to be a "genius", right?
  13. @adrian Hi, I scanned the "docs" and could not find this tip of yours: https://github.com/processwire/processwire-issues/issues/429#issuecomment-342976462 sounds like an important one. Could you please consider adding it? Also, AJAX instructions are mostly in the Getting Started section which is fine but probably a dedicated "Debugging AJAX" or maybe "Working with AJAX" section with links to other related tips found on the page and additional tips like the one above would be nice to have.
  14. Thanks for clarifying!
  15. Nice work, thanks for the showcase. Are you aware of "Lorem ipsum..." still being used on stellardebating.nicegrp.com pages?
  16. Hi, https://processwire.com/api/include/ These two are equivalent, so what syntax you prefer to use is up to you: $mypage = $wire->pages->get("/about/contact/"); $mypage = wire('pages')->get("/about/contact/"); wire('pages') As far as I know, only this should work, so they are not really "equivalent" in this context. See for example: https://processwire.com/talk/topic/13977-custom-php-code-selector/?tab=comments#comment-125688 Am I mistaken?
  17. And start your timer. You have only: Sorry for this, I could not resist
  18. Thanks for sharing! This module can be quite useful
  19. Do you have any idea where it can be looked up? I mean, where we can check what is probably(?) supported by most modern OSes/browsers these days? It would be interesting to know. I guess the "cross-platform" typefaces are more or less the same as they have ever been but those font files seem to keep growing by added characters as the OSes evolve.
  20. That reminds me of this tool I've somewhat forgotten about: http://fontello.com/ More efficient? Hard to tell... Maybe a custom set? Thanks in advance!
  21. Hi, A related good to read post: https://processwire.com/talk/topic/13977-custom-php-code-selector/?tab=comments#comment-125688
  22. Line-only versions are harder to do right because of its nature and limitations but I was thinking about going crazy with optimization regarding how much is injected into the page. By removing the probably not needed <title>turn-off</title> from my version (it was just exported too, as the name of the file was "turn-off") we have only 300 characters. Probably this is not the one where we can gain a lot but more complex ones like logos and such. I would be happy to do it. It is probably not worth forcing us to use line-only svg when more complex icons are needed but some of then (like this turn on/off icon called EnableButton) looks doable. Others might just need SVGO treatment I focused on EnableButton because I would like to see less in the source code of a frontend page when Tracy is disabled. So something like this (removing some line breaks) would be nice too: <style>div#TracyEnableButton{bottom:10px!important;right:10px!important;z-index:99999!important;position:fixed!important;width:16px!important;height:16px!important;margin:0px!important;padding:0px!important;cursor:pointer!important;}div#TracyEnableButtonsvg{width:16px!important;height:16px!important;}</style> I often use the Chrome extension called Quick source viewer which displays the actual rendered output in a different way then the inspector. For the styles I get the line breaks but if you could remove them we would get a more compact version injected.
  23. @adrian This morning I quickly crafted my own version of the "TracyEnableButton" in order to see if a smaller version can be made. The idea is that – in such small sizes the icons are used – using only lines should be enough to get very similar results. Of course, when an icon like this is enlarged its line only characteristics become prominent but I do not think it is an issue in our case. So here it comes: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 54.48 57.24"><defs><style>.a{fill:none;stroke:#CD1818;stroke-miterlimit:10;stroke-width:8px;}</style></defs><title>turn-off</title><path class="a" d="M24,10.17a23.24,23.24,0,1,0,16,0" transform="translate(-4.76 -2)"/><line class="a" x1="27.24" x2="27.24" y2="21"/></svg> Only 323 characters versus 1101 (current icon). What do you think? Is it usable, and if so worth the effort? I could produce all the others if you think it is a good idea.
  24. As long as you do not have security concerns regarding those files there is nothing to worry about. As an added precaution you might want to use htmlspecialchars() or better yet $sanitizer->entities() like this: $comments = $sanitizer->entities($sanitizer->textarea($input->post->comments)); $message .= 'Comments: ' . $comments; This is because $sanitizer->textarea() is for input – BTW, in your code you use $sanitizer->text() which is for single line only, so you might want to change it – while $sanitizer->entities() is for output which in this case will be performed at the email client's end. See this discussion for example (last comment at the bottom): https://stackoverflow.com/questions/17115426/do-i-need-to-sanitize-user-inputted-data-before-sending-it-in-an-email Sometimes it happens but I have not yet figured out when. Other times I get emails in "almost no time".
  25. Hello, Are you talking about this perhaps: https://processwire.com/blog/posts/prodrafts-now-available-in-pre-release/#prodrafts-also-provides-automatic-save-capability ? Without the ProDrafts module, there is no automatic save capability
×
×
  • Create New...