Jump to content

Jonathan Lahijani

Members
  • Posts

    790
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Jonathan Lahijani

  1. This is great life advice!
  2. Going here causes internal server error: https://processwire.com/blog/posts/
  3. How about a new favicon of the ProcessWire logo instead of being lost in the clouds? I attached two 512x512 PNG files (PNGs can be used for Favicons by the way and all browsers support it; worth ditching .ico).
  4. I'm not a Mac user, but for Windows, Xyplorer is freaking amazing. It's like the ProcessWire of file managers. ?
  5. Working on this, which I hope to finish off at some point in a couple weeks after the main site launch: It will be 2 minutes and 11 seconds long, which is the length of the audio (full audio here). I will try to make it show off the power of ProcessWire as much as possible (tree, fields, matrix, front-end editing, api, docs, formbuilder, procache, github activity). I may need to extend the music a bit for it all to fit. Anyway, this is happening!
  6. When scrolling down the home page, the animations of the 8 callouts cause a horizontal scrollbar to temporarily appear while they animate in. Adding the 'uk-overflow-hidden' class to the #content-container div should fix that.
  7. The offcanvas toggle icon is using the slightly older approach (the markup got updated at some point during UIkit 3's development): Replace: <a id=offcanvas-toggle class=uk-hidden@m href=#offcanvas-nav uk-toggle> <span uk-icon='icon: menu; ratio: 1.3'></span></a> With: <a id='offcanvas-toggle' class="uk-navbar-toggle uk-hidden@m" uk-navbar-toggle-icon href="#offcanvas-nav" uk-toggle></a>
  8. Tampermonkey will let you modify the code of a page: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en You could create your own CSS file, and then establish a setting in TM to load that file (other's would have to do it on their browsers as well however).
  9. One nitpick about the server in general. You can access it (the home page for example) without https. Ideally http should redirect to https.
  10. Never used Craft professionally... just tried the demo a couple years ago.
  11. I put this feature request in a couple months ago which relates to this conversation about migrating structural changes: https://github.com/processwire/processwire-requests/issues/230
  12. If you run multiple PW under the same hostname, then setting $config->sessionName to something unique is recommended as well as it prevents one installations logged in state from clashing with another (and other weird admin caching things). I usually set its value to $config->dbName since that's easily unique enough. $config->sessionName = $config->dbName; $config->sessionFingerprint = 2;
  13. Note: whether I use Page(template=mytemplate)::added or Pages(template=mytemplate)::added does not make a difference.
  14. In 2015, Ryan introduced conditional hooks: https://processwire.com/blog/posts/new-ajax-driven-inputs-conditional-hooks-template-family-settings-and-more/ I have the following hook which works properly: $wire->addHookAfter('Pages::added', function($event) { $page = $event->arguments[0]; if($page->template=='mytemplate') { // ... } }); Now if I want to take advantage of conditional hooks, I should be able to do this: $wire->addHookAfter('Pages(template=mytemplate)::added', function($event) { // ... }); however the hook doesn't get hooked. Any ideas?
  15. User-specific timezones is on Ryan's todo list: https://github.com/processwire/processwire-issues/issues/270
  16. That video got me hooked as well. I'd love to help out with making a new marketing video. I can do the screen recording, video editing and voice-over. If someone can concept out a script/storyboard, I can take care of the rest. Maybe it can be featured on the new PW homepage hero section to hook more people.
  17. Try Adminer instead: https://www.adminer.org/ It's only one file. phpmyadmin feels bloated compared to it.
  18. That would depend on the nature of what one needs. But perhaps if you wanted to name it the name of the page (assuming it's an existing page) you could do: $p->your_single_image_field->first->rename("{$p->name}.png"); // need 'first' here
  19. Let's say you want to add an image using the PW API from an outside service that doesn't provide a clean filename like my-cool-image.jpg (such as from dummyimage.com, urlbox.io, etc). Doing it this way will add the image successfully, but the filename will be problematic and have an invalid extension (bad): $p = $pages->get(1); $p->your_single_image_field = "https://dummyimage.com/600x400/000/fff"; $p->save(); Instead, you need to rename the file right before save (good): $p = $pages->get(1); $p->your_single_image_field = "https://dummyimage.com/600x400/000/fff"; $p->your_single_image_field->first->rename("better.png"); // need 'first' here $p->save();
  20. UIkit3 is a bit more of a utility class oriented CSS framework. The benefits of utility based CSS are excellently summarized in this article, which I side with given my own evolution with CSS: https://adamwathan.me/css-utility-classes-and-separation-of-concerns/ Gridlex is just a grid system from what I can tell. If you need all the usual components (accordions, tabs, etc.), UIkit3 has it covered extremely well, especially compared to the other big CSS frameworks. Many great options. I rarely pull in other libraries since UIkit has it covered, and since it's all under one roof, it's very consistent and doesn't lead to conflicts.
  21. Does this work with FormBuilder?
  22. Feature request Can there be an option to redirect the user to another page if they land on a protected page (rather than showing them the login form)? Additionally, if there could be a field by which an admin can enter a custom message (or error) to $session->message("the message"); or $session->error("the message"); that would be really great.
  23. Great module @adrian. For the Custom PHP Code option, can you make it also have access to the $pages variable (in addition to just the $user variable)? I have a use case for it and it would be helpful. I modified the module to include it and it worked fine for me.
  24. What version of PW are you on? Newer the better? Also, recently one thing that was driving me nuts was a bug related to ListerPro pages taking forever to load (you might not be able to view the link since it's in the private ListerPro forum): The temporary work-around for that was to remove all the filters in my ListerPro. For some reason, my ListerPro was loading all 2000 pages on my site on each page load causing a slowdown. Is the site still slow when there's only a handful of people using it, as opposed to over 100+? If so, that may indicate something. Have you enabled debug mode in PW? Anything stand out?
  25. Actually what I think you're asking is for the Hanna Code Dialog module. Check it out.
×
×
  • Create New...