-
Posts
4,077 -
Joined
-
Last visited
-
Days Won
87
Everything posted by horst
-
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? -
Yep, another me too here. On the first day getting contact to PW, I saw this video and it put me on fire to try it out and to understand it. And some time later, after finding this "PW-spirit" in the community, to contribute to the image handling. (Thanks @Ivan Gretsky, for reminding on it. ?)
-
Yep, using an own admin module is possible since at least PW 2.0, if I remember right. ?
-
@cstevensjr, @LostKobrakai, Thanks! ? I've already downloaded MusicBrainz Picard, as it is OpenSource (Python), and I also already found a plugin source code that fetches covers via a fanart.tv, where one can register for a API-key. That seems to be pretty fine and I will test this out. And if it doesn't work out as expected, I will use the MusicBrainz Picard GUI-App.
-
Hey there. I'm (re-)ripping my 1k+ CDs in a better quality than I've done in the '90s, where 192k was good, because HD-space wasn't that cheap like today. ? Does someone has knowledge or a idea how to programatically find CD-Album-Covers by Interpret and/or Albumname? Primarily I'm searching for a web source that has cover images.
-
Not while programming, but when doing image manipulations and administrative tasks like site transitions (dev > stage > public) etc: HipHop in german language, from a young women living in cologne (germany), Leila Akinyi. For those who do not understand the text, it also is worth to listen the music and view the videos. ? My favourite is this one: And my second favourite:
-
Whats about your own styles for CKE, maybe with one or two "!important"? (Via CKE-Custom-Styles, or via AOS or via Admin Custom Files)
-
site-profile Yet Another Blog Profile: Editorial
horst replied to BitPoet's topic in Themes and Profiles
It both depends on how a server environment is setup. Especially if the PHP running user has write access to these files and directories. So, if you already know that the PHP user has no write access, you can do this before you start the installation process. If you don't know this, you can run the installation process and PW will tell you about the situation and guide you through the manually needed tasks. (Namly: select your drsired site profile or rename it to "site", delete the unused profiles, and also delete the install.php file after finished the process". -
Good point @Robin S. When searching the class name StreetAdress in one word, it is the first result. But it has to be it also when searched in two words!
-
You need to enable the use of the Functios API in your site/config.php: $config->useFunctionsAPI = true; // pages()->find(), sanitizer()->pageName(), region('content', $markup),