Jump to content

gornycreative

Members
  • Posts

    385
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by gornycreative

  1. I have been using $page->sort settings to try to migrate consistent page arrangements and all has gone well except I can't seem to alter the sort arrangement of the error page. I know it is a reserved page. I can alter the sort order between the various reserved pages but I cannot get it to appear higher. The strange thing is that I can set the sort number and if I try to find all pages off of the root page and and sort them by sort: $list = $this->wire->pages->find("parent=1,sort=sort",["include"=>"all"]); and then db($list) the error page does appear properly sorted in the array that results: But in the Pages menu, it remains lower: Are reserved status pages special in this regard?
  2. If you want - I'm not sure if others just haven't ticked the box and gotten the errors, but if its more internal use for you I won't bother with it. Thanks.
  3. Regarding the "include version in admin footer from package.json if it exists" feature - I'm a little confused about what this is for. The code points to the package.json in the site root, not the module root. https://github.com/baumrock/RockMigrations/blob/d957caeb5e4607d0b0afbb00ef18cdcb52895d83/RockMigrations.module.php#L923 But I don't think Ryan stores the processwire version there - which version number is this supposed to show? RockMigrations? My site root package.json looks like: { "dependencies": { "htmx.org": "^1.8.6", "jquery-typeahead": "^2.11.1" } } I started looking into this because I was getting a stdClass::$version warning.
  4. Thank you for addressing this so quickly!
  5. Changing line 40 in TextformatterTypographer.module.php from: public function getModuleInfo() { return json_decode(file_get_contents(__DIR__ . '/TextformatterTypographer.info.json'), true); } to: public static function getModuleInfo() { return json_decode(file_get_contents(__DIR__ . '/TextformatterTypographer.info.json'), true); } resolved the installation issue.
  6. Hi @Mike Rockett I just tried installing this on a dev version of pw 3.0.220 and it seems the new module overhaul might have picked up strange behavior: I mentioned this in a thread of Ryan's also as I'm not sure where the incompatability lies. I also noted that php-typographer has advanced to v6.7.0 which includes some php 8.1 deprecation resolutions.
  7. Had an unusual experience trying to get TextformatterTypographer to install. Looks like it is just essentially a wrapper around a composer library install but for some reason the InstallModule process choked on it with v 3.0.220 If this is a plugin problem I can address it there. The plugin needed to declare the getModuleInfo() function as a static function. Once I added the static attribute the installation went as normal. public static function getModuleInfo() { return json_decode(file_get_contents(__DIR__ . '/TextformatterTypographer.info.json'), true); } I've added the fix request in the plugin thread. I'll leave this here in case there are other older modules that have similar issues.
  8. Yes that's the feature. If you have a large music collection it could take some time to process all of it, and the sonic adventure features do not work until the scanning process is not active - but once you have turned it on it adds material as you go. For around 1200 albums it took my media machine about 4 days to process. I haven't used the ChatGPT connected feature Sonic Sage, but i've heard some folks like it. Track Radio is also a great understated feature. I don't use spotify and I haven't tried connecting Youtube Music. I do know Tidal is not supported - I think it needs to access your files because it doesn't phone home - it literally uses whatever audio files are on your plex server, meaning really obscure stuff you have will get included in the analysis and mixes that may not be available through normal channels.
  9. Also, if you are interested in great international mixes and DJs, this channel has some great guests with intriguing taste:
  10. I have to say that in general, having PlexPass and using their sonic analysis has been the biggest boon to my background programming music setup - the sonic adventure and automated DJ features are phenomenal. When all that matters is consistency of tone and mood, the sonic analysis that the Plex server does on my collection makes it so I don't even have to think about what I want to listen to next - the mood just flows regardless of who it picks. The cool thing is it often pulls a bunch of b-sides or obscure artists songs that I never would think of linking together in a playlist, but the songs mesh like magic.
  11. This seems to through namespace related errors in the latest dev version (3.0.219) Perhaps something related to the modules rework?
  12. Yes, the input value with or without alpha is important in different contexts, but when I am trying to read the value from the fieldtype I can't directly pass the value to the wikimedia LESS parser as it isn't caught up to the JS version and so if I send a raw 32bit integer to get included in the admin.less process it throws and error as an unacceptable format. The strPos( $color, 3) solution works fine - I add a # and the LESS parser is happy. I didn't know if any of the output formatting methods from the fieldtype were exposed on the admin side. Not a big deal either way. For my purposes I've got it working.
  13. Yes I copied from elsewhere in this thread but realized after I posted that it wasn't an actual solution. I was under the impression the field always stored values in the db as a 32-bit hex regardless of the output method?
  14. I'm using this as a module configuration inputfield in this case, not as a site facing Fieldtype. An admin theming module. So the LESS is being applied on the admin side.
  15. Hi, I'm using this in a module config and want to call the value up and pass it through to LESS within the module, but the default format doesn't comply with LESS formatting so - since I don't need alpha for my application is the best method to do as suggested above: $color_out = '#' . ltrim( $color_in, '#ff' ); Or is there a more elegant way to handle this? EDIT Okay obviously not that exactly but pulling the rightmost 6 chars and prefixing a #.
  16. A humorous stackexchange question page that has collected many answers over the years on stacking ternary operators is here: https://stackoverflow.com/questions/5235632/stacking-multiple-ternary-operators-in-php I agree this may be a good candidate for switch, but it's funny to see how many ways this cat got skinned over the years.
  17. I have been digging into the oembed fields/essence and this as well. First exposure to this feature and so cool to see where it is used. If you run Plex, for example, and you use youtube-dl to grab audio from a music video, the comment on the exported audio file includes the youtube URL and when you load the music file into Plex, Plex pulls the oembed data and shows you the video description for the song! I don't know if this is still being worked on, but I like this implementation for youtube so I will fork and add lite-vimeo-embed support if necessary.
  18. Just curious if this module is still active/stable? It doesn't appear in the modules directory - I only found it through searching the forum. Thanks, J
  19. I will be using this hopefully going forward instead of the typical import/export process for my baseline profile, which takes into account workflows that are more familiar to desktop publishers and allows for traditional task delegation - photo, content, layout, section editors, etc. If there is interest in this, I will provide at least the basic core structure and page classes - might be a good advanced example of how things can be done for publishing projects. I don't have an exact ETA, I'm still working on AdminStyleChroma which is my admin theme color manager and I'm also working on a Color Thief image field implementation - both of which will have official threads and releases and when they are ready.
  20. I think his fork is still being run through - the last issue he was addressing was nested repeater matrices and including the RTE fields in repeaters - which I believe was resolved. I haven't run into any issues with his fork in my testing.
  21. Cool, yes adding the empty parameter was ?
  22. Small thing, I was getting an error without any custom options defined. As is, the line where you set up the arguments: public function ___addFootnotes($str, $options = [], $field = "") { This results in an error if you do not pass an additional options array - e.g. just a $str and $field. An error on line 83 array_merge results - second argument is not an array. I didn't pull the repo via git so I can't do a PR handily, but reversing the parameter order resolves it. public function ___addFootnotes($str, $field = "", $options = []) {
  23. Yes I just noticed it also - the columns are correct and Tracy picks up the entries, but when I click a log page name I get the error message. Can confirm all files exist. PW 3.0.214 PHP 8.1
  24. Can I throw another log onto this fire? Today I installed a local instance of oobabooga and vicuna. It looks like text-generation-webui has an API mode that can be set to listen for JSON prompt requests! It would be great to either fork PromptGPT or develop an option to select alternative API endpoints, etc. I used this tutorial to guide the install - with the exception I also needed to install NVIDIA CUDA toolkit to get access to CUDA cores from pytorch.
  25. This is what I remember you saying in the 'adding RM to existing products' video but I know as this is a work in progress things could have changed. I'm in the middle of applying gebeer's Repeater Matrix migration methods to something I am working on but when I am done I will take a look at the dev branch and try some things.
×
×
  • Create New...