-
Posts
4,088 -
Joined
-
Last visited
-
Days Won
88
Everything posted by horst
-
You can search like this via google: https://www.google.de/search?source=hp&ei=pdw6XtWCNbD4qwGGpYrQDA&q=site%3Aprocesswire.com+mp3&oq=site%3Aprocesswire.com+mp3&gs_l=mobile-gws-wiz-hp.3...3099.24029..29059...0.0..0.133.2617.5j19......0....1.......0..46i131i275j0i131j0j46i131j46.4qJhHOpUkyQ#sbfbu=1&pi=site:processwire.com mp3 Then you will get a list, possibly with a link to an inputfield, but definetly to some useful information.
-
Some infos may help. How are the dimensions of the images (orig images and the watermark image) How much is the dedicated memory for PHP on your server / account?
-
Hhm, this is a very old one, from 2013. Which version of PW do you use?
-
... more links, to newer code snippets:
- 2 replies
-
- imagesizer
- image size
- (and 4 more)
-
... and, if you want to do something that AOS doesn't support, one should use HOOKS instead of rewriting core modules, to avoid the version update hassle. ? TLDR; Following some example code from 2014/2015, (written before AOS was released).
-
Suggestion: add a new category "e-Commerce" to modules directory
horst replied to Gadgetto's topic in Wishlist & Roadmap
PING: @Pete- 1 reply
-
- 2
-
-
For me, uploading a file/image from URL works by simply copy paste the URL into the upload inputtextfield. The browser / OS does all necessary then.
-
You should check via phpinfo if there are more disabled functions or more restrictions on that hosting account. If yes, I would overthink to upgrade or switch to another.
-
That is correct. Additionally you can send the language files to the maintainers of language packs. I think that editors don‘t get the core backend untranslated, but need a single module translated. (What also can be done with one additional step, if the language files are distributed together with the module) For me it doesn‘t look that bad as described by @dragan.
-
Many thanks for the suggestions, @Robin S I think the main check / exception must be in the getExif method. A check during install will be useless when deploying a site folder from local to stage or live. But it is no harm to have it too. ?
-
What do you think would be the best way? Returning false or throwing an exception?
-
@Arctic This may help you going:
-
There is no argument to the method page::getFields() https://processwire.com/api/ref/page/get-fields/ https://github.com/processwire/processwire/blob/3bf29d050b7f542f04628fc69c2448466e167acd/wire/core/Page.php#L1274-L1299
-
You can mimic a basic authentication in the file "site/templates/admin.php" Therefor you have to handle a set of valid usernames and passwords in that file too, like in the following example: <?php namespace ProcessWire; $validUsers = [ 'user1' => 'pass1', 'user2' => 'pass2', 'user3' => 'pass3' ]; $validAdminUser = false; if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) { if(isset($validUsers[$_SERVER['PHP_AUTH_USER']])) { if($validUsers[$_SERVER['PHP_AUTH_USER']] == $_SERVER['PHP_AUTH_PW']) { $validAdminUser = true; } } } if(!$validAdminUser) { header('WWW-Authenticate: Basic realm="Adminsection"'); header('HTTP/1.0 401 Unauthorized'); echo '401 Unauthorized! Accessing this page needs a valid useraccount!'; exit(); } require($config->paths->adminTemplates . 'controller.php');
-
choose language of login and password forgot pages?
horst replied to gerritvanaaken's topic in Multi-Language Support
Does it all also not work when executed in the ready.php? -
Kids are, - hmm, well, - mysterious. Many, many years back, when I bought my first pelican case, you could read something in the warranty description like: :-)
-
Yep, I think the most tips above linking to the blog are only valid for greater pw versions. (Dev-Branch)
- 11 replies
-
- 1
-
-
- bootstrapping
- paths
-
(and 1 more)
Tagged with:
-
Which pw version are you running?
- 11 replies
-
- bootstrapping
- paths
-
(and 1 more)
Tagged with:
-
Hi @alanxptm, this is already there in the edit screen for roles. See the screenshot. You need to tip the checkbox and are done.
- 1 reply
-
- 5
-
-
-
Instead of that, you can delete the imagefile. Then the frontend page and the admin page will load again. To prevent this in the future, you may configure a setting for max filesize in those imagefields for uploads. (NOTE: not max dimensions, but max filesize and set it do be handled on clientside, not serverside) I think there is a module available for this max-filesize-setting, but can't remember it's name. (ping: @Robin S do you have created one with this feature?)
-
a) Please tell a bit more accurate about what you have installed / enabled. (PW version, which gif extension and version. b) How big is the original anim-gif in filesize? c) How much memory usage is available for PHP?
-
On mobile here, but you can do something like that with a Textformatter Module. I remember one that restrict images, it is available in the modules directory. The author is @Martijn Geerts , maybe you can take this as a starting point or just „borough“ some code from it. Edit: the link to the module: https://modules.processwire.com/modules/textformatter-image-interceptor/
-
Hi @Joss, long time no see. Nice to see you're still making the seas unsafe, Mr. Pirate. :-)