Skip to main content
Recent Posts
42
Feature Discussion / PWA Progressive Web App
Last post by Spuds -
I've been working on adding this feature to 2.0 and its now it is available for testing.

To make this work, the following things were added to elk20

  • a webmanifest file. <link rel="manifest" href="./elkManifest.php"> if you look at our page source you will see that new line towards the top.  It simply calls a php file in the site root which then builds and Outputs the json file. 
  • a new area in the Admin panel to set up several things, icons, name, colors. see attachment for an example.
  • new properly sized icons.  You need one at 192x192 and one at 512x512.  There are default ones but of course you would create your own.
  • a new service worker JavaScript file (we have had one since 1.1.x for PUSH notification, but many updates were needed)
  • a couple of theme meta data tweaks
  • addition of an offline template for times when you may launch the app (say from your phone) but not have internet access

You can enable just the manifest file, which some devices use to create better shortcuts. 
If you enable the PWA (you must have manifest enabled as well) then you can "install" the app, which will look mostly like it does in a browser tab when opened, but you can place the app on your desktop or home page or .... and then launch it immediately since the landing page is in the cache (network first with cache fallback)

I chose to employ a cache based PWA, so the app will cache static assets like CSS and JS, it will also cache Images, and lastly it will cache the site landing page and the offline page. 
There are several automatic maintenance functions which prevent the cache from growing to large.  It will also remove the app / cache when you disable it in the Admin panel.
It will clear the app cache when you clear the cache on your site. 

There are several cache strategies that our service worker uses.  Some assets are network only, others network with cache fallback,  others are cache first with network fallback and some are cache first with a network fallback/refresh. I went back on forth if to even use the cache and then how to cache items so this may change and also why there are so many types.
It also employs preload capabilities for best performance on fetch events.

I've only installed the "app" on a couple of devices, so I'm sure there are going to be a few bugs to work out as testing progresses.

For those familiar with the development tools built into browsers, you can see/monitor the service work and its caches
45
Site Feedback / Re: EARLY Beta version of 2.0
Last post by ahrasis -
Spuds, I think darkness is causing bugs to EA 2.0 notification system.

Really I only get one notification at a time for my above post though they should be there like when you and BK like them. Means just now, after I see notification that you liked my post, but not BK, and click on it which goes to my post, but when I click back to notification, there notification that BK liked my post appear. I believe they should be all in notification page when I opened it at the first instance but they were not.

Did I wrote the above sentence clearly and made any sense?  :undecided:
50
Addons / Re: [ADDON] SimplePortal
Last post by Burke Knight -
Quote from: Spuds – I would figure you had them since most are ones you reported  :cool:

And since you said that, here's another issue:

QuoteType of error: General
Exception: Class "SP_Abstract_Block" not found
index.php?action=xmlhttp;sa=blockorder;xml
File: sources/subs/spblocks/RecentEx.block.php
Line: 29

Line 29:
Code: [Select]
class Recent_Ex_Block extends SP_Abstract_Block

Strange error that does not appear to have any effect besides error log entry.