Forum Replies Created

Viewing 15 replies - 1 through 15 (of 123 total)
  • stoi2m1

    (@stoi2m1)

    I am using a Droplet on Digital Ocean running Ubuntu 22.04.2 LTS and yesterday I was successful in configuring USPS Live Rates.

    API Connection Status OK

    Thread Starter stoi2m1

    (@stoi2m1)

    I am realizing there is a little more to this.

    I am on WPMU. There are two sites with mapped domains. I get this Prompt to confirm logout from my the sub site. When I click logout the link shows domain.com/logout/?_wpnonce=*******, but I am redirected to the main site. I am assuming the nonce is not good at the main sites domain. Does your plugin manage the logout process or should I be looking in another place?

    • This reply was modified 2 years, 8 months ago by stoi2m1.
    Thread Starter stoi2m1

    (@stoi2m1)

    I did install Media Deduper a couple of days ago and am still getting duplicate images. This and the missing author info is why I do not think what ever is creating the duplicates is not using WordPress functionality. The duplicate images started in January and determining what may have changed then will be difficult to determine. Especially when all of the site was just restored from the malware attack just weeks ago, changing all of the file creation dates.

    I didn’t do the restoral and do not know what to look for. I was hoping the symptoms I listed would help someone see something specific.

    Do you need a specific theme or a type of data? There are many themes out there that have demo data in theme.

    One of my favorite at the moment is a theme called Phlox. It has a free version which can install theme layouts and demo data.

    https://www.phlox.pro/ – click on the demos link to see what it can install.

    If thats not what you are looking for a did a quick search on google for you (lmgtfy “wordpress sample demo data to import”)…

    This article explain how to install demo data and has an xml file you can download which contains some sample data.
    https://motopress.com/blog/how-to-import-sample-wordpress-data/

    Thread Starter stoi2m1

    (@stoi2m1)

    You indicate in the settings that will not work in iOS. I have reset the settings and I have added a page and a button element, set the css ID and name in the settings and I do not see anything happening.

    I am not getting the install message nor is it installing from the button.

    I am running a theme that is loading my site using Vue and an API. I am not sure if this is interfering with the way the installation should work.

    I have purchased your Call to Action add-on, before I saw this response, in hopes it would help me achieve what I am trying to do. This also seems to not be working. I added the short code to my header.php file with <?php do_shortcode(‘[pwaforwp-add-home]’); ?>, should it be in a page or? Not sure hoe I would load that from the API.

    I have opened a support ticket with you via the purchase. At this point installing the app is the only portion that is not working. I do not have to use the add-on, but I do need things working with iOS as well as Android. Please advise on the best course for me to proceed with things.

    • This reply was modified 3 years, 4 months ago by stoi2m1.
    Thread Starter stoi2m1

    (@stoi2m1)

    I am looking for a way to search the cacheStorage. I think I can use a function like this to return boolean, but I need to know the cache version from the front end. Maybe it could be stored somewhere in the front end cache. I could hard code it for now, but it would break if the cache version is changed.

    Currently I am setting up a method which looks something like this in my Vue component.

    `async displayOfflineComponent( url ) {
    // no need to display if offline
    if ( navigator.online )
    return false;

    // i need a way to get this from the backend
    const cacheName = ”;

    const cacheStorage = await caches.open( cacheName );
    const cachedResponse = await cacheStorage.match( url );

    if ( ! cachedResponse || ! cachedResponse.ok )
    return true;

    return false;
    }`

    Do you have any other suggestions which I can accomplish this?

    Thread Starter stoi2m1

    (@stoi2m1)

    I managed to fix my issue by checking “Remove pwa for logged in users”.

    Thread Starter stoi2m1

    (@stoi2m1)

    I found the issue was with logged in pages were being cached and not displaying the logged in content. So, the problem was with the PWA plugin, thank again.

    Thread Starter stoi2m1

    (@stoi2m1)

    Does this mean I need to exclude every page from being cached? Every page has member specific data that is revealed based on their membership level. All accept the homepage that is.

    Thread Starter stoi2m1

    (@stoi2m1)

    Yes, that is exactly what I want to do.

    They are paid members tracked within the main blog and only within that blog. Syncing that data across all blogs would not only be nightmarish but also redundant. So, the membership plugin I use allows them access to data based on a membership level not which blog they are a member of. I have code that doesnt send all data from the API unless they are of a certain membership level and you plugin returns an error “not a member of this blog” before I can return the proper data based on membership.

    Thread Starter stoi2m1

    (@stoi2m1)

    I have tracked down the problem and wonder if there is a way you could integrate an option into your plugin for my situation. I would prefer an option of editing the core of the plugin, this way I can update as needed.

    I am using a membership plugin which grants access to sub sites based on members only singing up for thing main site.

    This condition keeps my members from gaining access to the sub blog using this plugin.

    if (!is_user_member_of_blog($user->ID)) {
            return new WP_Error('api_api_bearer_auth_wrong_blog',
              __('You are no member of this blog.', 'api_bearer_auth'), ['status' => 401]);
    }

    It seems you do not have an admin page for options, but maybe a constant could be defined in the wp-config.php file for this. Maybe something like

    define(THIRD_PARTY_ALLOW_MULTISITE, true);

    then the condition could be something like this

    if (!is_user_member_of_blog($user->ID) && !THIRD_PARTY_ALLOW_MULTISITE) {
            return new WP_Error('api_api_bearer_auth_wrong_blog',
              __('You are no member of this blog.', 'api_bearer_auth'), ['status' => 401]);
    }

    If you have a better solution that may help me please let me know.

    Thread Starter stoi2m1

    (@stoi2m1)

    No worries you have no need to respond nor answer my Original Question. I have switched to a different plugin (https://www.ads-software.com/plugins/pwa-for-wp/) that at first try and seamless effort seems to be doing what I was asking for with little to no effort on my part. All the while the plugin is active and the PWA is installed. Thanks for the half attempt at keeping me a user of you plugin and potential customer.

    Thread Starter stoi2m1

    (@stoi2m1)

    Are you purposefully not answering the question I am asking?

    When SPWA is active an I make an update and my users have installed my site as a PWA. How do they get the update? There is no Hard Refresh on mobile.

    When I am on PC and Hard Refresh and then just refresh I see 2 different versions. Some sort of notification to update would be the key. How do I have users know there is an update and update the cache once the PWA is installed?

    Thread Starter stoi2m1

    (@stoi2m1)

    I realized I needed to work with the plugin disabled I merely discovered there was no indication of an update nor how to update. This lead me to see what complications users may have on an app that is published and then receives updates.

    With that said:

    How can I force mobile devices to see and use the updated version of the site?

    Thread Starter stoi2m1

    (@stoi2m1)

    I was positive I was sending the access token in the header. I started things over and am now only getting results when I am logged in and have good user object from wp_get_current_user().

    I ended up reworking a lot of my logic and things are working just fine. I then wanted to get partial data from the backend when a user was not logged in. So, I whitelisted the endpoint and used is_user_logged_in() to hide data I don’t want sent out.

    I don’t know where my confusion came from, but all is good.

    Thanks for the great plugin.

Viewing 15 replies - 1 through 15 (of 123 total)