-
Posts
4,088 -
Joined
-
Last visited
-
Days Won
88
Everything posted by horst
-
Ah, ok. Seems that I have to clarify a bit: with the age of 10, he started with a desktop pc i5 and 16gb ram. From that on, he is more and more interested in retro machines. I'm not totally sure, but I think currently he owns 4-5 (old) Laptops of different decades, an old IMac, 5 mobiles, 3 tablets and 1 C64. The C64 is the most beloved for him, and he works on different hardware parts. Also he has built different audio adapters for DOS Laptops. Unfortunately the Sound Chip of the C64 seems to be broken. Don't ask me! - he told me something that not all 8 channels are working but only 2, and that it is not possible to detect the concrete issue of it with his limited equipment. So, he is more interested in modifying the hardware then in sitting in front of a screen. From time to time I pray, that the C64 is the stop in his retro interest, not that I someday has to look out for a Z4. ?
-
... for my son. Does anybody has one and want to sell it to me? ? PS: and if you only has a Datasette or only a SID-Audio-Chip for the C64, I'm interested as well.
-
What we really will need is to detect if a browser supports it. If someone knows about workarounds, polyfills or others, please drop links here.
-
Ah, a quick test showed that I can use this already with my local dev environment: $cai3 = $page->croppable_images->first()->getCrop('thumb100'); // WebP with GD-lib bundled with PHP 7 $im = imagecreatefromjpeg($cai3->filename); imagewebp($im, str_replace('.jpg', '.webp', $cai3->filename)); imagedestroy($im); ?
-
Some thoughts / infos in no special order: it has to be a module because all our image engines are modules. As long as the GD library does not support webp, it cannot be a core fileformat. I haven't tested anything in regard of webp til now. If imagick supports it as outputformat, I can start testing it as a image engine module that extends the core imagick module to provide something like a options variable to return the final variation image as webp. Earliest start can be around christmas time 2018.
-
completly OT, but are you sure that this concept, a repeater in a repaeter in a repeater, is a good way to go? At least the (starting ?) times could be handled by page references, I think. Not knowing anything of your data, but A day can have max 24 hours and each a max of 60 minutes, results in 2 pagereference fields or two option fields. And maybe if you can work with a more limited amount of (starting ?) times, you only need one field with a list of fix / predefined times. And to your question: Debug your code by inspecting why your page 0 has no parent page, starting by inspecting what template it is assigned to. This way you will find where your logic is not practicable and need to be changed.
-
Page import/export with images (or any other files)
horst replied to simonsays's topic in General Support
Have you tried to export as ZIP with a current pw version? 3.0.119 ? -
@PWaddict I may seem a little impatient now, but I still don't understand what you want after all your posts. Please just write down 2 or three variation names where I can see what is and what should be. Otherwise I cannot deal with it any further. (I have three deadlines this week!)
-
Hi @Gadgetto, if you don't have edit links in your posts, it may be a limitation for new forum users, that will go away after a number of posts. Not really sure so. If I will find out more, I come back here or PM you.
-
@Peter Knight, thanks for testing. With php 5.x versions it works using isset(). With php 7.x versions it doesn't work anymore. About the pixelation, it also may have to do with the scaling factor. Also, if possible, you may compare gd and imagick engines.
-
Croppableimage does not use own suffixes. It uses pw cores default image variation suffixes. Can you not simply add the timestamp via the options array? Or what is the part that I do not understand? Maybe you can give me a variation name as example, show what custom upload names do with it, and what cai3 does. Also please tell me when the modules affect the variation names, in which order.
-
Sorry @PWaddict, I only can support standard-conform variation names. But I'm wondering why you need to hack the code. I don't know what the custom upload names module does, but if it does something like striping complete variation names including suffixes, I have no option to help.
-
@Peter Knight, please can you try the following fix manually on your side? In the file site/modules/CroppableImage3/ProcessCroppableImage3/ProcessCroppableImage3.module on the lines 234 & 235 you must remove the wrapping isset(...) on each first checked param per line! This 233 // get quality & sharpening from post, sanitize and validate it 234 $quality = isset($this->input->post->quality) && is_numeric($this->input->post->quality) && 0<intval($this->input->post->quality) && 101>intval($this->input->post->quality) ? intval($this->input->post->quality) : $options['quality']; 235 $sharpening = isset($this->input->post->sharpening) && ImageSizer::sharpeningValueStr($this->input->post->sharpening)==$this->input->post->sharpening ? $this->input->post->sharpening : $options['sharpening']; should become this: 233 // get quality & sharpening from post, sanitize and validate it 234 $quality = $this->input->post->quality && is_numeric($this->input->post->quality) && 0 < intval($this->input->post->quality) && 101 > intval($this->input->post->quality) ? intval($this->input->post->quality) : $options['quality']; 235 $sharpening = $this->input->post->sharpening && ImageSizer::sharpeningValueStr($this->input->post->sharpening)==$this->input->post->sharpening ? $this->input->post->sharpening : $options['sharpening']; If it fixes it on your side too, I will release a new version of the module.
-
@Peter Knight why do you cannot sort the pages manually, or let the client sort them manually?
-
How do the page statuses "draft" and "versions" work?
horst replied to MoritzLost's topic in General Support
I think this is a question for @ryan (?) -
How do the page statuses "draft" and "versions" work?
horst replied to MoritzLost's topic in General Support
Hi Moritz, not totally sure, but I think for your textformatter, you only need to know the equivalent of $page->viewable(). Im on mobile, so no further links here. -
Hey, I want to hook into the 404 handling of PW at the most earliest stage. Pleas can anybody point me to the hook or file that suits this best?
- 4 replies
-
- 404
- pagenotfound
-
(and 1 more)
Tagged with:
-
You can enable / disable it in the page editor on the settings tab. There is a checkbox for each additional language near the inputfield for the language page name: If you want to check / debug this in your template file(s) for some roles or users, you may add a code snippet like the following: $languageWarning = ''; if(($user->isSuperuser() || $user->hasRole('NAME_OF_YOUR_EDITOR_ROLE')) && '1' != $page->status1063) { // active checkbox is not ticked! // italien language is disabled !! $languageWarning = "<div style='text-align:center; margin:0; padding:0; min-height:30px; background-color:#EEFFEE; color:red;'> !! WARNING: Content for Italian Language is disabled !! <br /> Go to the settings tab in the editpage and check the box to activate it, if this is by mistake. </div>\n"; } // change the number from status1063 to that from your language id, or you may derive it programatically from the languages object In the page markup I output the content of $languageWarning, what only can have content for certain roles or users. Thus the output can stay in markup of production site templates with no harm.
-
Questions and Answers forum desperately needed. AKA mark as solved.
horst replied to dotnetic's topic in Wishlist & Roadmap
When reading all the facts and ideas in the posts above, I think it would be a good idea to let the forum software as is with only following additions: 1) add one or more voting or tagging categories to the posts 2) provide a link to every thread that opens a popup with a hirarchical list or lists for the voting / tagging categories (number of votes followed by the link to the post) (This link should be reachable from every thread page) 3) a button to prefix the topic's title with either [open], [solved], [closed], etc... @Pete what do you think? Handling those votes with an own script and own db / db-table(s), reduces the changes to the forums software to only inject the new voting / tagging buttons with ajax action to the external script, plus injecting a link to popup the rendered hirarchical jump list. This way, the additional functionality would be save on changes of the forums software. -
Questions and Answers forum desperately needed. AKA mark as solved.
horst replied to dotnetic's topic in Wishlist & Roadmap
I don't think that the existing threads and posts all can be updated to Q & A forums. For example all the modules support threads contain multiple questions and therefore multiple answers. Starting to vote posts as best answers in those threads seems to make not much sense. I'm not sure if it would be of great benefit for any existing forum. So, it will be useful when starting new subforums or boards. -
wireshell - an extendable ProcessWire command line interface
horst replied to marcus's topic in API & Templates
Bump! @marcus, any chance to get an alias for upgrading to the latest dev?