Jump to content

LostKobrakai

PW-Moderators
  • Posts

    4,956
  • Joined

  • Last visited

  • Days Won

    100

Everything posted by LostKobrakai

  1. I've used this exact snippet yesterday, I'm just not sure if you're really on localhost, therefore for testing I'd remove the 2 allow … and the deny … lines. Also my experience with blank pages and still a 200 is, that fastcgi_params might not be correct / sufficient.
  2. Debugging php-fpm shouldn't be that hard. Enable the /status page in the www.conf and you can check all the calls made to php-fpm and everything afterwards should be debuggable like any other php installation as well (e.g. xdebug). Everything else is out of the scope of user debugging and the responsibility of the package maintainers imho. About the error. Is that a fresh pw installation? Can you try manually including the missing class right before the error happens, so we can exclude any autoloading issues?
  3. You'll be using a page field. You could use a multi page field on the course and link users to it or you could add a field to the user template to link users to courses. Which one is better depends mostly on your exact use-case.
  4. I'd imagine that these use-cases are actually all trying to prevent local serving of files. Therefore I'd imagine local storage of files not even being that useful. But this would certainly need a custom FilesManager/Pagefiles/…file/…image(s) implementation and maybe custom Fieldtype, but I'm not sure about that as the stored field data can be the same. Maybe I'll find some time in the next weeks to build a implementation around flysystem.It's already quite well equipped with various third party file storage implementations.
  5. Just a minor correction. It's the default template and the default parent page.
  6. Handling images with external file services is probably not easy. I've had a short look this week and there are function calls, which require locally stored images/files, all over the place. I wanted to add in flysystem, which handles lot's of external hosting options, but it seemed like a task, which would need core changes as well or a fully independent implementation.
  7. You could try this one to check it the selector syntax is the issue or something else. $customUserRoles = $roles->find("name^=member-"); $profileTemp = $users->find("roles=$customUserRoles");
  8. And to keep the copy pasting errors to a minimum: http://codepen.io/LostKobrakai/full/xVgooN/
  9. I'd rather take a look into the session fingerprinting configuration for this one.
  10. You can use the php selection for the pagefield and remove all cities. which are already linked.
  11. Yep. It's essentially moving the files folder to a non accessable folder. Everything inside the folder does stay the same.
  12. ProcessWire is a PHP cms. It's inherently backendy and even built to be as decoupled from actual markup as possible. For css / js things you'll probably need to look elsewhere.
  13. I wouldn't use the CSRF token, as it's also preventing any other form loaded before the form submittion to be canceled. At best you'd use a custom token to prevent the double submittion.
  14. To not copy my suggestion again: https://processwire.com/talk/topic/12409-prohibit-view-of-pages-with-certain-template/ I'd really refrain from using $page->render() for rendering partials in favor of wireRenderFile().
  15. $config->urls->root doesn't have anything to do with the pagetree, especially on multi-language setups. It's much rather intended to be used as variable if processwire is installed in the root directory ( /… ) or in a subdirectory ( /mySubdirectory/… ).
  16. The ->url should get you the full – relative to root folder – url to the image.
  17. You could use a linux vm or docker image to run the app in. Not as comfortable as mamp though.
  18. It was actually requested here in the forums iirc.
  19. https://processwire.com/api/user-access/permissions/#user-admin-permissions
  20. Inputfield dependencies work with the html inputfields, which aren't filled for file fields, because of it's long time ajaxy nature. Afaik there's currently no way to archive what you need.
  21. I built a small inline confirm component in @vuejs: https://t.co/Q3ERBn4sw2

  22. Composer is a package manager. If the package is a framework, a library or just a code snippet is not really relevant so much. And here you go about what things to use/do with composer. My goto libraries: Carbon, Nette/Forms, kahlan, faker, any of those when needed; As soon as I've more time to put into CI I'll certainly look into using phpdotenv. Probably every third party service integration like Mail / Calender / Paying Gateway should be managed by composer. Any finally if you ever need to use non-php software on your server like redis or elastic-search or others you can find php libraries to use those as well.
  23. @Ryan I'd suggest you taking a look into flarum. It's fully installable by composer and does also use composer to install plugins into it's own folder structure.
×
×
  • Create New...