Jump to content

gmclelland

Members
  • Content Count

    459
  • Joined

  • Last visited

  • Days Won

    1

gmclelland last won the day on February 14

gmclelland had the most liked content!

Community Reputation

350 Excellent

About gmclelland

  • Rank
    Sr. Member

Profile Information

  • Gender
    Male
  • Location
    Texas (DFW area)

Recent Profile Visitors

2,957 profile views
  1. What does it say for System Version at /processwire/module/edit?name=SystemUpdater ? Mine say's 17. Maybe you can change that to something lower and log out and then log back in?
  2. I believe that is because repeaters store their pages under a different section in the admin tree(Admin>Repeaters>name_of_repeater) which isn't publicly accessible to guests. I think you have to add check_access=0 to your find selector? See https://processwire.com/docs/selectors/#access_control Hope that helps
  3. @adrian - Thanks for reporting back to keep us updated!
  4. I think I did, but I can't remember. I think these links helped me. Hope that helps you
  5. I'm seeing the images now on my computer.
  6. Here is a screenshot of the images not loading from my iPad. I also checked on a computer, both chrome and safari.
  7. Very nice site! One thing I noticed was that the images were broken on https://www.us.playwood.it/en/free-design-projects/
  8. Here's a couple of other projects that I looked at. I'm not sure if it is needed, but they include a couple of other directives as well. https://github.com/vincentorback/WebP-images-with-htaccess https://git.drupalcode.org/project/webp/blob/8.x-1.x/.htaccess from the Drupal 8 webp module https://github.com/nomidi/silverstripe-webp-image/blob/master/templates/SilverStripe/Assets/Flysystem/PublicAssetAdapter_HTAccess.ss for Silverstripe CMS https://github.com/S1SYPHOS/kirby-webp - for Kirby CMS I wasn't sure about this one: <IfModule mod_headers.c> Header append Vary Accept env=REQUEST_image </IfModule> Do you think something like that should be included?
  9. You should be able to change it in your .htaccess file. Look at section #9 in the file.
  10. Here you go https://github.com/phlppschrr/TextformatterMakeLinks/pull/3
  11. @interrobang - can you try this regex? '~ \b([a-z]{3,}://[a-z0-9%\$\-_.+!*;/?:@=&\'\#,]+[a-z0-9\$\-_+!*;/?:@=&\'\#,])\b\/? | # Fully URLs \b(www\.(?:[a-z0-9\-]+\.)+[a-z]{2,}(?:/[a-z0-9%\$\-_.+!*;/?:@=&\'\#,]+[a-z0-9\$\-_+!*;/?:@=&\'\#,])?)\b\/? | # www. domains \b([a-z0-9\\.+\'_\\-]+@(?:[a-z0-9\\-]+\.)+[a-z]{2,})\b # email addresses ~ix' It looks like it works. All I did was add the "\/?" to the end of the first two lines. If it works, I'll make a pull request.
  12. I just remembered that Drupal has a URL filter built into core. Maybe we can somehow use it's code since it's been battle tested? ...with credit of course. https://api.drupal.org/api/drupal/modules!filter!filter.module/function/_filter_url/7.x - For Drupal 7 In the comments of the Drupal module, it interestingly states "Each type must be processed separately, as there is no one regular expression that could possibly match all of the cases in one pass." There is also https://github.com/thephpleague/uri-parser that looks like it may help, but that would require composer to install the library? Also, I've been testing different regex patterns with https://regex101.com. It's the best regex tester I've found so far.
  13. Could you try something like this? // only allow access to the page if logged in with editing permissions // otherwise throw a 404 if viewed directly if(!$page->editable() && (!count($options['pageStack']))){ throw new Wire404Exception(); }
  14. Hmm... Thanks for the test data. I see the problem as well with the www. urls with a trailing slash. I'll see if I can come up with a alternative regex that works.
×
×
  • Create New...