Jump to content

netcarver

PW-Moderators
  • Posts

    2,129
  • Joined

  • Last visited

  • Days Won

    42

Everything posted by netcarver

  1. Just to add a caveat to blocking vendor/ - this sometimes leads to unservable asset issues (such as JS/fonts/images/styles) if the composer package includes such things. YMMV with this approach, but the inspector in the browser can help tracking these down.
  2. Hi @HakeshDigital Does it work if you remove, or comment out, the indicated line from your .htaccess file... RewriteCond %{REQUEST_URI} ^(.*)/([a-z]{2})$ RewriteRule ^(.*/)(es|en|it|pt)$ $1$2/ [R=301,L] RewriteRule ^(.*/)es$ ^(.*/)es/ [R=301] ## <<< Remove this line, or comment out with # at the start. RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.+(?:es|en|it|pt))$ /$1/ [L,R=301] RewriteCond %{REQUEST_URI} ^/([a-z]{2})/ RewriteRule ^ - [E=LANG:%1] RewriteCond %{ENV:LANG} !^$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ /$1/ [L,R=301] ...?
  3. $d = strtotime('next monday +7 days'); echo date('Y-m-d', $d); Seems to work for me.
  4. Thank you for this @TomPich always good to see people giving back to the community, much appreciated!
  5. I've not tried this one, but perhaps @bernhard's RockSkinUiKit module can do it?
  6. Interesting concept. I'm with Bernhard when he suggested making the help text fixed in the middle. Half of the time the instructions are upside down (being in the bottom half of the screen) and moving - so hard to read unless you wait for it to make it back up. Could also do with some more contrast for those of us with slightly compromised sight. Thanks for sharing though.
  7. @cwsoft How's this? https://github.com/processwire/processwire/blob/3cc76cc886a49313b4bfb9a1a904bd88d11b7cb7/wire/core/Password.php#L115
  8. I'm not sure of the context of your call to truncate(), but perhaps you could run the sanitizer on the output of strip_tags()?
  9. Would there be any merit in submitting your changes as a PR against the original, maybe with some suitable config settings to allow control of target templates/roles etc?
  10. @LloydGrimes No need to ask permission to post your question - I'm sure @gornycreative can handle it :)
  11. Hi @Greg Lumley That's correct - you need to use "db" as the DBHost in the site/config.php file for ddev because MySQL/Maria is running in a separate container called "db" in the ddev stack. Both the webserver container and database container are attached to a dedicated virtual network when you bring up your stack. Docker's DNS resolver automatically makes the internal network IP of the database server available to other containers on the same virtual network using the container name - hence the need for "db" in the config file. In docker stacks where both the webserver and MySQL/Maria DB were running in the same container then you could use "127.0.0.1" or "localhost" as the DBHost - but that's not the case for ddev.
  12. @SIERRA How are you processing the admin page submission in order to populate your SMS template and send it? Presumably you are using hooks, right? Take a look at AdminCustomFiles for inserting custom JS into admin pages.
  13. @hintraeger Have you taken a look at the pagefileSecure config option? Might not be suiteable for you, but for file storage outside the site root, how about @Wanze's FieldtypeSecureFile module? I also remember there being a very old post from @Soma here in the forum about this topic.
  14. Just change this line... function visit(Page $parent, $enter, $exit=null) To this... function visit($parent, $enter, $exit=null)
  15. Does this work... echo $page->lorum_ipsum->getLabel(); ? Also, take a look at Bernhard's post here...
  16. Hi @kathep Thanks for the detailed report. I've not used Yunohost, so I'd want to find out if Yunohost is simply using nginx as a proxy to your processwire app stack, and if the app itself is being served by apache2?
  17. Hi @bernhard, thank you for the update. It now works for top-level blocks - but embedded blocks aren't draggable. For example, these blocks, from the advanced demo...
  18. Hello Bernhard. Congratulations on your module release. I've just been trying this out in your demo at pagebuilder.baumrock.com. I'm using FireFox as the browser and don't seem to be able to drag-and-drop blocks to change their position in the front end view. Perhaps it's just my install. I'm not seeing any JS errors in the console, but I just can't seem to get this working in FF (all good in Chromium.)
  19. Recently hit the wordpress wall for the first time trying to help out a charity upgrade their WP-based site. Very troublesome.
  20. Hi @zz_james, welcome to the forum. There are quite a few PW-related docker images - you can find a list of them here. I do not know which one represents the latest - but it's a reasonable starting point for your search.
  21. netcarver

    Appreciation

    That's the one...
  22. netcarver

    Appreciation

    Another ex-Textpattern user as well. Even had the book at one point.
  23. Yeah, it's probably not this - just wanted to rule it out as a possibility. I think your guest session on the front end will still have a session file unless you set up the config file to prevent it. If you do a ls -lSh site/assets/sessions/ and the guest session id is relatively large, then something is stashing a lot of data in there. Unlikely though.
  24. I don't know what's going on - so just throwing an idea into the ring. Could you try looking at your wire cookie id and then checking the size of the session associated with that same id? If it's extremely large, could you try deleting the file (or row in the DB session table) - which will log you out when you reload the page. When you log back in, is tracy any faster?
  25. @heldercervantes Very nice. Perhaps a little more line height needed on .type-title, to stop the descenders in headlines getting cropped? (1.2 worked for me in Firefox)
×
×
  • Create New...