ExplorusDataSolutions / WE-Upload

admin.php
0 stars 1 forks source link

WE-Upload

Extra steps to make the plugin work:

  1. Add below lines to WordPress' .htaccess. ---> This step is totally no longer needed.

    RewriteCond %{REQUEST_URI} /m/water-quality/$
    RewriteRule ^m/water-quality/(.*)$ wp-admin/admin-ajax.php?action=cura_mobile&%{QUERY_STRING} [NC,L]
    
    RewriteCond %{REQUEST_URI} /water-quality/.*$
    RewriteRule (?:^|/)water-quality/(.+)$ wp-admin/admin-ajax.php?action=cura_$1&%{QUERY_STRING} [NC,L]

    And insert them to right place

    RewriteRule ^index\.php$ - [L]
    
    # above lines should be probably here
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php [L]
  2. Create a page with /water-quality/ URL and use [water-quality] as page content to trigger the plugin of Desktop version
  3. In order to support password protected Mobile version, below 2 pages are needed again. But [water-quality] shortcode is no longer required.
    • Create a page with /m/ URL as parent URL
    • Create a page with /m/water-quality/ URL and use password to protect it.
  4. Plugin installation NOTES of ZIP format:
    1. Make a ZIP format package of the source files on Github
    2. A filename of water-quality.zip to be uploaded and installed is preferred
    3. Need php-gd library enabled to generate photo thumbnail