Jump to content

Clover13

Clients
  • Posts

    1,402
  • Joined

  • Last visited

  • Days Won

    1

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Everything posted by Clover13

  1. So I was thinking about @Nathan Explosion's proposed solution, however one stickler came to mind in that for larger API responses where filtering might be useful, there may not be a straightforward way to do this. Possibly would require parsing the API response and storing key/value pairs based on some discriminator and then having a dropdown multi-select to only show the values for those keys selected. A Pages DB would have this filtering capability built in it already by defining what fields are filterable and then putting the Pages DB Filter block within the Page.
  2. Regarding @Nathan Explosion's reply, for anyone interested in reviewing that approach, this link is helpful: https://invisioncommunity.com/developers/docs/general/caching-r8/
  3. Thank you for the detailed response John, I appreciate it! Ideally, I'm trying to avoid a custom app tied to IPS if possible and just use the native Pages impl and customize it within Pages. But perhaps doing it with a custom app is a reasonable approach to, as it would require some level of custom coding anyway. The data can be out of date, it's really just daily data list from an API, of which gets updated at unknown times. I definitely want to pull it on a schedule vs on demand (by a user viewing the page where the data will be presented). There's no API notification of updates that I'm aware of. As far as caching, I guess this comes down to what the Pages DB can do. With that in mind, there are many sites using Pages with a Pages DB and data under heavy user volume, so I'd have to imagine there is some level of data and page caching when a Pages DB is inserted as a block on a page. I'll likely start with that approach before I go custom and see how it works out. Thanks again for the insights!
  4. This one? https://developer.chrome.com/docs/web-platform/deprecating-unload If so, Ending with 100% of users by the end of Q3 2024 Assuming that means anyone on v4 won't be able to use Chrome after the deprecation?
  5. I'm looking to use a third party API to GET some data that doesn't change often throughout the day and then display it on a Pages page. The API has these considerations: There is no known timeframes when the API data will be updated. We are only concerned with the current snapshot of data, not any history. The API is rate limited, and we certainly don't want to call it for every page load. The amount of data is small but each record does have a start/end date for managing expired records. However, it may be easier to just replace all of the data stored versus trying to perform an upsert operation. What would you recommend as an approach for this when trying to display it within Invision Community? Goals: Retrieve data from third party API to format and display within a Pages page. Leverage caching of the data for performance. Rinse/repeat calling the third party API under set intervals or after expiry, removing all data from storage/cache and replacing it with the current API response data. Possible approaches: Use Zapier OR code a script (scheduled under cron) to GET from the third party API and POST the data to a Pages DB. Build a Pages template to display the data as desired. How to manage data caching in this instance? Write custom code directly in a Pages PHP block and embed that block within a Pages page. I'm assuming the PHP is what's cached in a block not the data, so I can use a separate self managed cache (say Memcached or Redis) to store the data and verify expiry between calls such that the API is only called after expiry of the cache?
  6. This does appear to be fixed across all three of my sites now with the latest release after rebuilding the images. I did notice some nuances when doing a second update where I had to reupload the same images again to force a third rebuild, but eventually everything look good. Correct app icon when saved to home screen. Correct splash screen icon on startup Correct splash screen background color on startup Thanks!
  7. You can control maximum images size to store and to display independently within the AdminCP. I set mine to display the maximum of what I want for desktop display, and anything smaller just displays smaller whether it's a smaller uploaded file or natively gets sized down for mobile. It would be cool however to allow click and drag resizing behavior for the embedded image, but I'm not sure of your use case for this unless you wanted to do some side by side display and the default AdminCP settings didn't allow for that due to being too large. My sites generally use an image per line in Forum topics and members have been good with that. Can't say anyone has ever asked about doing the resize you mention, but I can think of display cases where it would be useful.
  8. This looks better for sure, the one thing I noticed that wasn't fixed was the total record count. Regardless of filters selected, it seems to always be the total unfiltered count. Not a huge issue, but misleading if you're expecting and/or need the count of filtered items.
  9. Any ideas on this one? Every API record created I have to manually go and edit it and re-save to get the thumbnail sized correctly.
  10. Well, not sure if this definitively indicates anything, but the PWA does display both the app icon saved to the Home Screen and the splash screen correctly with my device simulated on Safari Developer Tools ala XCode Simulator 15.2 with iOS 17.2 on my iPhone 13 Pro Max. The PWA also shows correctly on Browserstack's simulator for my device. So either the simulators are off or there is something on my device that is either not displaying correctly or something is cached somewhere other than Safari website data. Also worth noting, 15.2/17.2 on an iPhone 15 did not display the splash screen correctly. Not sure if there is a new size for their latest device that is missing from the meta tags and images generated. Will keep tinkering, but that's as close as I can simulate my device vs completely different behavior on the same actual physical device.
  11. Clearing my Safari history and website data should get rid of it though, no?
  12. I am deleting the CDN files (S3) so it forces an entire rebuild the next time I upload images via the IPS AdminCP and purging the entire site cache in CF. When I visit the physical links in no-cache private/incognito browser window, they do appear correctly. Part of me wonders if the Apple device is just not interpreting it correctly OR if there is something specific about each image required in the IPS AdminCP for setting up the PWA (i.e. certain exact sizing is required, or certain image properties are required, etc).
  13. Yes, consistently the same result on each site. Also, all three sites are running on the same server with the same setup of all software including IPS.
  14. I have 3 sites. Site 1: Incorrect app icon Correct splash screen icon Correct splash screen background color Site 2: Correct app icon Correct splash screen icon Incorrect splash screen background color Site 3: Incorrect app icon Incorrect splash screen icon Incorrect splash screen background color Consistently inconsistent. Edit: I have not done cleanup procedures and rebuilds on the first two sites. I'm trying to figure out Site 3 and then apply it to the others.
  15. I actually posted this last night and then deleted it thinking it was fixed, but it wasn't. I've tried everything I can think of to get the PWA app icon and splash screen to display correctly, but can't seem to figure it out. Device: iPhone 13 Pro Max I've uploaded various sizes (full size, 512x512), solid background color, transparent background, etc. Each iteration I've manually deleted all S3 images generated and cleared the CF cache. I've also cleared my browser cache. I've manually checked the S3 linked images and they appear correct, however when I open my site and "Add to Home" the background of the logo is always white and the splash screen is always just a blank white screen. The app/site opens fine. The share logo in the browser menu (i.e. where you'll find "Add to Home") is correct. Any ideas?
  16. It does work for me, but you may need an !important at the end depending on the element and what else is set where an embedded element might take precendent? Example that works for me to show the differences when using two different properties. Look at the list of forums under each theme. Parent: .cForumList .ipsDataItem_title { font-size: 28px; } Child: .cForumList .ipsDataItem_title { background: green; }
  17. Unfortunately some devs are just gone. And you can't get the files that were previously hosted here. Other devs are still very active and responsive.
  18. Give an example of what you're trying to do exactly?
  19. It would be very nice of Invision Community to share some of those templates with the community. Would likely provide a nice bump in adoption and usage of great Pages layouts by other community sites. 🙂 Even if it's not plug and play with any Pages DB, it would give a great templating jumpstart to see how a layout like that is created with native templating syntax (i.e. it's not as simple as looking at the page source and grabbing html/css since there is custom logic/parsing/conditionals within the templates).
  20. Another behavior I've noticed is even though the REST API call executes, it is not always logged regardless of the status code (200, 201, 400, etc). Specifically I noticed this when GETing and POSTing to Pages DB.
  21. The thumbnail settings are specified in the specific Pages DB Options, however doing a POST with the image included seems to generate a 500x500 thumbnail regardless of the settings. If you go into the record after it's been created by editing it on the record view page, then save it, it will regenerate the image to the correct size. Obviously this is a bit too much effort if you have many records. Is there any other solution? There used to be a rebuild thumbnails, but I think that was removed quite some time ago.
  22. I see a "date" field available, which updates record_saved in the CMS records table. Is there any way to set the record_publish_date? It's not a field and I don't see any reference to it in the API request, so I'm assuming there is no way to set this, I'd have to manually run some SQL to do it?
  23. I use it quite a bit in my own sites for managing overall CSS I want common across all child themes, but then have underlying customizations for individual themes (like a non responsive theme as some members oddly prefer that even on mobile devices or a theme with no ads, etc).
×
×
  • Create New...