-
Posts
4,956 -
Joined
-
Last visited
-
Days Won
100
Everything posted by LostKobrakai
-
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.
-
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?
-
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.
-
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.
-
regarding Multiple templates or parents for users
LostKobrakai replied to adrianmak's topic in General Support
Just a minor correction. It's the default template and the default parent page. -
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.
-
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");
-
PW 3.0.12: Support for extended (UTF8) page names/URLs
LostKobrakai replied to ryan's topic in News & Announcements
And to keep the copy pasting errors to a minimum: http://codepen.io/LostKobrakai/full/xVgooN/ -
I'd rather take a look into the session fingerprinting configuration for this one.
-
Use each page field values just one time in the admin
LostKobrakai replied to icietla's topic in General Support
You can use the php selection for the pagefield and remove all cities. which are already linked. -
Yep. It's essentially moving the files folder to a non accessable folder. Everything inside the folder does stay the same.
-
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.
-
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.
-
Prevent pages used as partials from being viewed directly
LostKobrakai replied to Robin S's topic in General Support
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(). -
Return to home page is always to English (default) language
LostKobrakai replied to hansv's topic in Multi-Language Support
$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/… ). -
Return to home page is always to English (default) language
LostKobrakai replied to hansv's topic in Multi-Language Support
Did this solve your question? -
Return to home page is always to English (default) language
LostKobrakai replied to hansv's topic in Multi-Language Support
Is $pages->get('/')->url not returning the correct url? -
The ->url should get you the full – relative to root folder – url to the image.
-
You could use a linux vm or docker image to run the app in. Not as comfortable as mamp though.
-
It was actually requested here in the forums iirc.
-
https://processwire.com/api/user-access/permissions/#user-admin-permissions
-
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.
-
PW 3.0.11: Composer, Google, Calendars and More
LostKobrakai replied to ryan's topic in News & Announcements
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. -
PW 3.0.11: Composer, Google, Calendars and More
LostKobrakai replied to ryan's topic in News & Announcements
@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.