Jump to content

All Activity

This stream auto-updates

  1. Yesterday
  2. All we need now is a community library of tweaks and macros. Perhaps it could be called "The Rock Pool" :)
  3. @Jonathan Lahijani I'm not surprised, but still shocked. I have heard of people not adopting Gutenberg but couldn't tell if it was just a preference to not adopt. This is some critical stuff. The amount of CSS that WP stores in the database has always been problematic. I was asked to make some adjustments on a site, so logically I went to the theme CSS, nope. Then went to the page builder plugin because you can bump around a lot of values for CSS properties in different units- struck out again. Then went to the in-admin theme editor where I found a bunch of styles in a text box, most of them had '!important' to overcome the styles in the other two places. The fact that this got even worse, is feature incomplete, breaking, and seemingly underengineered is just wow. Everyone get in the time machine... <!--include /text/header.html--> <!--getenv HTTP_USER_AGENT--> <!--ifsubstr $exec_result Mozilla--> Hey, you are using Netscape!<p> <!--endif--> <!--sql database select * from table where user='$username'--> <!--ifless $numentries 1--> Sorry, that record does not exist<p> <!--endif exit--> Welcome <!--$user-->!<p> You have <!--$index:0--> credits left in your account.<p> <!--include /text/footer.html--> That's PHP 1.0 WordPress has adopted the syntax of PHP 1.0 I, for one, am truly inspired.
  4. Yes, that's right. I use maybe 5 or so features from AoS and figured porting those over would be a good way to learn both how AoS does it, and how your tweaks work. I'll add as PRs, with attribution to tpr, as I go. Updated to add: First four tweaks from AoS done and in as a pull request. Show extra actions by default. Show template name as a link to the template edit page. "Bypass trash" adds the Delete button to the page action list and also allows permanent deletion from the delete tab when editing pages. Prev/Next page edit links.
  5. Hi @bernhard I just tried adding the following tweak to the tweaks/ directory, and am getting an error from RockMigrations when the admin reloads. If I remove my attempted tweak, everything works again. I think this is in RM, rather than the tweak file. Thanks for the module, BTW. PageListShowExtras.php
  6. @FireWire Pssh. All these issues you speak of are the "old" WordPress from the late 2000s and early 2010s. You are not using the fantastically re-envisioned NEW WordPress which totally solves all these problems by bringing in React to build Gutenberg out of the carcass of classic WP. It is NOT a s***-show. Here, just read this new glowing review: https://dbushell.com/2024/05/07/modern-wordpress-themes-yikes/ HN Discussion: https://news.ycombinator.com/item?id=40296534
  7. Totally untested but how does this perform in your setup? $image->size(400,0)->url
  8. Hey there, I've got a site with a weird performance issue. Requesting ~20 pages and displaying them with $image->width(400)->url can take up to 2-3 seconds. The resized images are already generated. If I replace that line with $image->url the request is almost instantaneous, as it should be. So it seems like the width() function is struggling for whatever reason. Could it be something with permissions on the files under /assets/files that is causing this? An example of the file with ls -lah looks like this: -rw-r--r-- 1 www-data www-data 510K May 8 10:32 20_10_xxx_web.800x0.png The original (is fast) looks like this -rwxrwx--- 1 joe www-data 1.3M Mar 16 16:36 20_10_xxx_web.png* I should probably restrict the permission a bit, but first I'm looking to understand this slow down.
  9. I'm using git revert + rockshell db:restore for that πŸ™‚ But on large dbs a snapshot might be faster, so I keep that in mind, thx!
  10. What @dotneticsaid. And when trying out things. Snapshot - add fields/templates/dummy pages etc. Like it -> keep it. Don't like it -> rollback to last snapshot.
  11. Last week
  12. Why don't you look into the code of those modules or ask the module authors how they did it?
  13. The endpoints don't have a $page, because they are not a page πŸ™‚ It's just an url hook behind the scenes. You can add the page url in a hidden field of the form.
  14. That was likely a conscious decision with their htaccess rules to prevent numerically traversing an entire forum (and instead requires parsing HTML to identify internal hyperlinks, so more processing power on the part of bad bots). Good find though! I much prefer shorter links. πŸ™‚
  15. @bernhard I have a question about the AJAX/HTMX Endpoints feature: Is it possible to get access to the $page API variable inside my endpoint file to "see" from which page the request was sent? When submitting a form I want to include the title of the page form where the form was submitted into the E-Mail subject line. The only way I see right now is to add the page ID as a parameter to the endpoint URL.
  16. * Oh, yeah... I'm using these for things like moving a photo from the left side of a block to a right side, adding padding of various amounts, etc.
  17. Might also be worth mentioning, it looks like you are trying to set the crop point of an image. Do you know about focus points on images with newer versions of ProcessWire? There would be no need for a dropdown then.
  18. Okay, never underestimate the power of anxiety... this seems to work: {$page->fieldName->value}
  19. For options you can define the id, a value and a title (aka label): 123=value|title So you could create these options: 1=left|Left aligned image 2=right|Right aligned image In your code you can then access either one of those three. See https://processwire.com/docs/fields/select-options-fieldtype/ Would that match your needs?
  20. I use the Fieldtype: Select (AKA Drop Down) a lot. And I'd be happy to switch to the Fieldtypeoptions, but I need something that allows me to create a variable, and show a human name to the user ... Something like this: left:=left right:=right The FieldtypeOptions creates this: 1:left 2:right I use them for a variety of things like choosing image effects on photos... uk-background-blend-color-dodge:=Color Dodge uk-background-blend-color-burn:=Color Burn uk-background-blend-hard-light:=Hard Light where I can add to the code: {$item->imagefx} on an image. What is the workaround for this?
  21. Hi @Solution Innovators Unfortunately i didn't have time to work on it any further. I have now added the relevant files to GitHub. If anyone wants to play around or even finalize it i would be really happy! πŸ™‚ As mentioned it's far away from being perfect and currently needs bootstrap 5, twig template and a few manual steps to work (but wouldn't be a huge amount of work to make it function without). Let me know if there are any questions! πŸ˜‰ https://github.com/Laksone/ProcessWireAppointmentCalendar
  22. For example I have a website with a shop. And now I am developing a redesigned version which also has new fields and features. With snapshots I can go back and forth between the actual site (for example for bug fixing) and the relaunch site in seconds (or a minute). An import of the MySQL database would take hours because it is fairly large and has many thousands of inserts. I am aware, that there might be other options like git worktree (or other techniques) and using a separate database for this kind of work.
  23. Hi @Laksone - This module looks great! Is it available on GitHub at this point? I'm interested in using it on a project if it's working.
  24. How do you use it? I've never used it myself πŸ™‚ Glad it is helpful @FireWire πŸ™‚
  1. Load more activity
Γ—
Γ—
  • Create New...