Jump to content

reed

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by reed

  1. Ahoy! Turns out Dreamhost updated my VPN and changed my hostname and dedicated IP, and I didn't get the email where they let me know those facts πŸ™‚ Still took some figuring out to get things working with Cloudflare again, but it's all working again, and as usual, none of the issues were Processwire's fault! Thanks @elabx for jumping in!
  2. Hey y'all, having a confusing morning over here. I use SSH to push template changes to arthistoryproject.com, and this morning I push and get this error: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. So I look up the issue, and it sounds like its usually triggered just by some server side change, and you basically just have to delete your .known_hosts file and then re-accept the server to the list of known hosts. I do that, and now I can push edits to my templates again, but now I can't see the updates on the live site. The updated template files are viewable in dreamhost's WebFTP, but PW isn't using them? So I turn off all my caching (procache and cloudflare) and while the live site will show changes to stuff like page titles and content, the templates don't show my latest changes. To further test things, I created a new template folder, pushed it to Dreamhost via SSH, and when I try to "add new template" in PW, I get the "No new template files were found in: /site/templates/*.php" error. I have no idea what's going on, and any thoughts, ideas, fixes, or well-wishes would be much appreciated. Thanks πŸ™‚
  3. Oh snap! That looks like it might do it β€” I'll check it out and report back ?
  4. A while back I added webp support to arthistoryproject.com, but didn't see a ton of image size improvement. Then today I read this post by the genius horst, and realized I could tweak webp quality settings in config.php. I've made some changes, and new webp renders are WAY smaller. Fantastic! But now I'm wondering if there's a way to programmatically delete/overwrite previously rendered image variations, either site-wide or page-by-page. But of course, only once per page/image. Does that make sense? Thanks so much for any ideas! Reed
  5. Thanks so much horst! That makes a ton of sense β€” I'll get into it and post when I've got a solve.
  6. Hey y'all! It's been a while since I jumped into the forums, so I'm hoping this is in the right place. So β€” I'm using Pro Cache to deliver cached versions of my site pages. It's the absolute best. But I recently added a dark-mode to my site, which first checks for a cookie to set a global <body> class based on the visitor's established preference, and falls back to the user's system-level color scheme with the media query: @media (prefers-color-scheme: dark) The problem is, cached pages seem to adopt the mode of the user who first visited the page and triggered the cache? I'm still messing around with it, but if anyone has ideas for how to both cache pages, and deliver each user content in the mode they prefer let me know. Thanks so much!
  7. It looks like @eydun called it β€” the school uses MS Office365, which was quarantining my emails. I got on their whitelist, and now my emails are going through just fine. However, it is gonna be a consistent problem, since some other schools are reporting issues as well ? And @dragan β€” I think you're right β€” I looked at the headers of automated emails vs manually sent emails, and there are differences. I'm not totally sure what I'm looking at, but I'll share the code tomorrow, and maybe there's something conspicuous to a more practiced eye than mine ?
  8. Oh snap β€” maybe? I've reached out to the school's IT group, and there's a whitelist they're gonna put me on. We'll see if that helps. I'll find out if they're on MS Office365, and report back ?
  9. Hey y'all β€” I've got a weird issue. I set up the WireMailGmail module to send emails for the LoginRegister module, and it's been working great. All my tests have sent instantly, and users from around the world have successfully logged in. Here's the problem: I work with a school, and they're not receiving the automated emails from my gmail account. They do get emails if I send them manually from the same gmail account. Any ideas what might be causing this issue? Thanks a bunch for any thoughts β€” Reed
  10. Fixed! Not completely sure why, but switching: $mail = new WireMail(); to this: $mail = $this->wire('mail')->new(); in the LoginRegister module did the trick β€” line 684. Now Gmail's sending my registration emails too ? Gotta say, I am hugely grateful for Processwire. Ryan, and all you fantastic moderators and commentersβ€”this is such a great place to learn, and goddamn if the sky doesn't seem to be the limit.
  11. Hey y'all! I'm building a front-end login system with the LoginRegister module, and my registration and password reset emails were taking up to 30min to send. So, I set up the fantastic (and recent) WireMailGmail module. A bit tricky on Google's end, but its working beautifully β€” my password reset emails are sending in milliseconds. Buuuuut, my registration emails, from the LoginRegister module, are still being sent with the old WireMail system, instead of the new WireMailGmail setup. I'm not running any other WireMail plugins, and I already added the line: $config->wireMail('module', 'WireMailGmail'); to my config.php, as suggested in the readme. Any thoughts? I feel like I must be missing something obvious in the LoginRegister module code? Thanks so much for any help, especially on such a new plugin!
  12. Oh man, I've made a stupid mistake. I didn't have AutoComplete included in the list of accepted field types for the Page Inputfield. So AutoComplete wasn't appearing as an option for any of my Page fields, regardless of parentage. In fact, it looks like AutoComplete now works perfectly, with any parent or selector you want. Man, Processwire just reads my mind. Thanks Ryan and community once again For anyone with a similar issue, just go to Modules, scroll down to Page, click Settings, and add PageAutocomplete to the list of "Inputfield modules available for page selection."
  13. Hey y'all! I've been digging through the forums trying to find a workaround for the Page AutoComplete Field. So far, no luck. Here's the problem: Currently, to use the Page AutoComplete Field, you have to define a single parent for the pages you want to select from. I want to use the AutoComplete field to add multiple pages from different parents. For instance, I have a field for location, and I want to add the MET Museum and The Louvre, but the MET has parent USA, and the Louvre has parent France. Currently, it's very labor intensive to scroll through a list of 300+ locations, or use AsmSelect to drill down. AutoComplete would be a godsend. I've not been able to find any way to workaround this issue, any ideas? Thanks for any help or recommendations! β€” Reed
  14. Thanks cstevensjr! I'm connecting my google analytics to the search now β€” it asks for the search query parameters. https://support.google.com/analytics/answer/1012264?hl=en&ref_topic=1031951#Params For Processwire that looks like it should be 'keywords' ? I'll go with that and see what happens. Thanks again!
  15. Hey folks, I did some digging to see if I could find anything on this, but I couldn't turn up anything. Does any one have a recommendation on how to track the terms that users enter in my site search? Thanks for any thoughts!
  16. horst β€” many thanks! This worked perfectly. It's a pretty hefty database call, so I've limited the number of subjects to 20 to keep the TTFB down. But it works! And @Macrura, thanks for your thoughts as well - I'll keep that solve in mind β€” Here's my final function: function rendersubjectlistsort($pages) { $out .="<div class='listWrapper'><div class='imageList'>"; $pa = new PageArray(); foreach($pages->find("template=subject, limit=20") as $subject) { $subject->set('myCount', findartworks("subjects=$subject")->count); $subject->set('myImg', rendersubjectArtworkList(findartworks("subjects=$subject, limit=1"))); $pa->add($subject); } foreach($pa->sort("-myCount") as $item) { $out .= "<a class='listItem' href='{$item->url}'>" . $item->myImg . "<div class='itemInfo'>" . "<h3>{$item->title}</h3>" . "<span class='dates'>{$item->myCount} images</span>" . "<div style='clear:both;'></div>" . "</div>" . "</a>"; } $out .="<div style='clear:both;'></div></div></div>"; return $out; } Thanks again!
  17. Hi Horst! Excellent questions β€” I've got pages with two different templates: artworks, and subjects. On the artwork pages, I'm using a page field (set to allow multiple pages using AsmSelect) to link to subjects. kixe β€” that does work, but the end result is still ordered by title, and I'm attempting to reorder the list by $artworks->count; from highest to lowest. I'll kick it around more today, thanks for your input!
  18. Hey folks, I'm attempting to order a list of subjects based on the number of pages (not child pages) that link to each subject. The end result will look like this: portrait β€” 120 items landscape β€” 78 items trees β€” 42 items beards β€” 8 items etc. I've been digging through the archive here, but I can't seem to find a solution. The issue is that I'm using wire('page')->find to get the list of subjects, and then getting the number of linked items inside the foreach β€” here's my code: $subjects = wire('page')->find("template=subject, sort=title"); foreach ($subjects as $subject) { $artwork = rendersubjectArtworkList(findartworks("subjects=$subject, limit=1")); $count = findartworks("subjects=$subject")->count; } I can't figure out how to either combine my queries or re-sort the list after the call. Any ideas? Thanks so much for any help!
  19. Hey Can - I know it's been a while since you set this up, but I'm wondering where you added the Codebird code - was it a modification to the SocialTwitterUpdate module, or did you add it to one of the admin templates? Thanks!
  20. Hey folks, I'm looking to implement the Google Maps Store Locator library to create a "Find Locations Near You" page for my site. I'm using the MapMarker fieldtype to create my locations, but I'm not sure how to connect my location data to the storeLocator.DataFeed The examples provided for the Store locator fetch data from static CSV files or web services. Any thoughts on how to hook things up? Thanks so much!
  21. Hey all - I've got a new question concerning the image resize timeout discussed here: https://processwire.com/talk/topic/3718-lots-of-images-to-resize-timeout-in-frontend/ https://processwire.com/talk/topic/7744-image-width-function-timeout/ But the problem I've run into is that when the timeout occurs, it corrupts or doesn't properly build the resized images. I need a way to force the resize to run again, preferably just for the damaged/missing images. You can see an example of the missing images here: http://arthistoryproject.com/artists/ferdinand-hodler/ - scroll down in the right and check "Autumn Evening" - the image name has been created, but the file is broken Any ideas? Thanks so much!
Γ—
Γ—
  • Create New...