Forum Replies Created

Viewing 10 replies - 31 through 40 (of 40 total)
  • mobizma

    (@mobizma)

    Try the wallet system plugin. Probably you need the Pro version.
    You need a proper wallet system for more complex stuff.

    With this plugin you basically make wallet products for text, images etc and can assign wallet credits per product. Problem solved.

    Wallet system plugin also enables fast top-ups. Very useful when user is engaged in a chat / image generation, and you want them to go on spending. With the least friction and improve user experience.

    To display your coin or custom token system with whatever fixed value you wish, you need Custom field for the product to set a token value, coin value [or wallet value in USD is out of the box supported for WC].
    Make custom user fields to be able to add/deduct token usage if you need to display value other than USD in wallet balance.

    Then, the Uncunny Automator plugin [Pro] can pull WC product meta and send to the User’s wallet.

    You might need the wallet creator to add a little customization for coin/token support instead of USD.

    Elementor Pro’s dynamic data can then pull metadata from user, wallet, or product [dep how you set up] to display stuff the way you want – for ex., in their progress bar element. on a TY page, my account page etc.

    OpenAI moderates and censors ‘sensitive’ stuff. Like if you want to chat with ChatGPT and mention any body parts or sex etc, you’ll be censored. I assume his model was porn or maybe just anti-woke or anti climate change narrative or whatever the big tech wants to ban.

    @jack2020 have you tested page speed load? Personally for me on all my various many websites it is still faster using Converter for Media [the Pro version for the super small AVIF sizes] even when the cache is private for them [aka, not served from CF edge] than loading a page with Jpeg or WebP from CF edge.

    And converter for media I found worked faster than the LiteSpeed Cache plugin with their WebP. Different system. LS or other plugins will enable CF to cache.

    This plugin + Converter for Media Pro + a CF Pro account: CF can then cache and serve the WebP/AVIF.
    And then you must set this plugin in the Cache tab settings to “Overwrite the cache-control header for WordPress’s pages using web server rules” to “NO”

    With a free CF account typically set to “YES” to avoid CF caching your jpegs and serving them instead of AVIFs. However, if you use the CF speed boosting feature of Rocket Loader also needs this set to “NO”.

    • This reply was modified 10 months, 2 weeks ago by mobizma.

    @formanite22 If you use an image optimization tool like Converter for Media plugin (free or Pro) with a CF Pro account, or FREE CF account along with an active CF speed optimization feature “Rocket Loader” (check it does not break anything on the frontend. Use incognito mode to load a page without the ?swcfpc=1?) then in this plugin’s Cache tab, scroll down to “Overwrite the cache-control header for WordPress’s pages using web server rules” and set to “NO”.

    I use Converter for Media plugin. Their free version gives you unlimited free conversion [done on their servers even] to WebP.

    I pay for their pro upgrade a ridiculously low $50/y [for so many credits I never finish even with many websites!] to get AVIF which is blazing fast compared to WebP even. And AVIF is super sharp.

    These 2 plugins are the best combo I ever tested and use it with out any additional caching plugins, works best so. I just add gzip code to my .htaccess file on the server. In root of each site.

    A CloudFlare Pro subscription makes it possible to cache the WebP and AVIF on CF edge and serve it from there for a further amazing speed boost if you need/ get a lot of traffic.

    Note, I use Elementor Pro, which has many built in speed/performance options. Other ThemeForest themes like JupiterX also have that. Hence I need no further opt’ plugins than these 2.

    And typically I never could use CF Rocket Loader (in speed settings) with any WP site but now it seems to work very well.

    IMPORTANT NOTE:
    When using the Converter for Media alongside this wonderful plugin you need to set in the Cache settings tab > “Overwrite the cache-control header for WordPress’s pages using web server rules” to “YES”, as the CFM plugin has it’s htaccess and if this is not set to YES then CF caches the jpeg and serves it [Public cache] instead of AVIF as private cache. Faster page load with AVIF from your server than Jpeg from CF!

    When using CF Pro and or the Rocket Loader, you must in this plugin Cache tab you must set it to NO.

    mobizma

    (@mobizma)

    Yeah, Chrome and other browsers offer access to their dev tools. From there all source can be seen.

    Would be perfect if somehow this could be prevented.

    Anyway, for the average tom dick and harry , this is an awesome plugin.

    Thread Starter mobizma

    (@mobizma)

    G’day Jeffrey and many thanks for your superfast response.

    Hmm… would be lovely having a separator… or grouping into a vertical collapsable tab/s.

    For example, one has a bunch of landers for a particular product.

    Currently I drag and drop them in some order.

    However, with a tab system [like on a frontend page – FAQ/toggle element or tabs would function] I can then name the parent ‘container’ tab something. Like ‘product 1’, ‘product 2’ etc so if I have a few versions or similar ones in funnel or as frontend in a funnel – all can be nearly in here per product. [or per funnel. ‘funnel 1’, ‘funnel 2’ etc tabbed content]

    And hide. or expand tab contents to show pages [Elementor Landing Pages] when needed, so it is cleaner and easier to find stuff quickly.

    This would make order in the house.

    I wish this as my Xmas gift, lol, just joking.

    Would be really really wonderful to have toggle tabs for containing in them product pages, funnels, TY pages etc.

    Thread Starter mobizma

    (@mobizma)

    Correct and I assume it is the image optimization plugin which simply needs yours to support it. Or communicate with their author perhaps to be supported. Nothing else I can think about is causing this.

    Thread Starter mobizma

    (@mobizma)

    If I remove the other htaccess I suspect it’d basically destroy the converter for media plugin interaction with CloudFlare or functionality. And I don’t wish to disable or stop using that plugin.

    We simply need yours to play with it without conflict.

    The other root .htaccess rules are simply ones I have in all my many websites to harden security, like file access to debug, hitting on author URLs etc. nothing to do with headers. Those other sites have zero such debug log warnings. I don’t have your plugin on them not converter for media.

    I don’t use many security plugins and add custom code in a custom functions file, but that’s not for altering headers. And deactivating the file is not changing anything. I have security and bloat related functions, like:

    /** hide wp version – Remove meta generator **/
    // remove version from head
    remove_action(‘wp_head’, ‘wp_generator’);

    // remove version from rss
    add_filter(‘the_generator’, ‘__return_empty_string’);

    Plus some other custom functions to disable self-pingbacks, emojis, hide author login, disable embeds & oEmbed discovery, remove wlwmanifest link, version mentions, disable XML/RPC etc.

    Hence my intuitive logic makes me think since yours and CFM both try to set headers and since you have even a setting to play along with other plugins, perhaps it needs expanding to resolve this issue.

    But I am not a coder, so may get it all wrong.

    Thread Starter mobizma

    (@mobizma)

    Hi Sauma!

    [2] I use elementor Hello theme [super minimal plain vanilla] and the only plugin that would change headers would be the converter for media one.

    [1] I no longer use any caching plugins since using yours and converter for media plugin.

    [3] I did add custom code to htaccess for gzip. Aside from this maybe etag still left in the file from LS Cache. see below my code.

    [4] the converter for media plugin adds an .htaccess to uploads folder with:

    BEGIN Converter for Media

    ! — DO NOT EDIT PREVIOUS LINE — !

    RewriteEngine On RewriteOptions Inherit RewriteCond %{HTTP_ACCEPT} image/avif RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpg.avif -f RewriteRule (.+).jpg$ /wp-content/uploads-webpc/uploads/$1.jpg.avif [NC,T=image/avif,L] RewriteCond %{HTTP_ACCEPT} image/avif RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.png.avif -f RewriteRule (.+).png$ /wp-content/uploads-webpc/uploads/$1.png.avif [NC,T=image/avif,L] RewriteCond %{HTTP_ACCEPT} image/avif RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.gif.avif -f RewriteRule (.+).gif$ /wp-content/uploads-webpc/uploads/$1.gif.avif [NC,T=image/avif,L] RewriteCond %{HTTP_ACCEPT} image/avif RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.webp.avif -f RewriteRule (.+).webp$ /wp-content/uploads-webpc/uploads/$1.webp.avif [NC,T=image/avif,L] RewriteCond %{HTTP_ACCEPT} image/avif RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpeg.avif -f RewriteRule (.+).jpeg$ /wp-content/uploads-webpc/uploads/$1.jpeg.avif [NC,T=image/avif,L]
    RewriteEngine On RewriteOptions Inherit RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpg.webp -f RewriteRule (.+).jpg$ /wp-content/uploads-webpc/uploads/$1.jpg.webp [NC,T=image/webp,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.png.webp -f RewriteRule (.+).png$ /wp-content/uploads-webpc/uploads/$1.png.webp [NC,T=image/webp,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.gif.webp -f RewriteRule (.+).gif$ /wp-content/uploads-webpc/uploads/$1.gif.webp [NC,T=image/webp,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.webp.webp -f RewriteRule (.+).webp$ /wp-content/uploads-webpc/uploads/$1.webp.webp [NC,T=image/webp,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/uploads/$1.jpeg.webp -f RewriteRule (.+).jpeg$ /wp-content/uploads-webpc/uploads/$1.jpeg.webp [NC,T=image/webp,L]

    ! — DO NOT EDIT NEXT LINE — !

    END Converter for Media

    and it adds in wp-content/ .htaccess:

    BEGIN Converter for Media

    ! — DO NOT EDIT PREVIOUS LINE — !

    RewriteEngine On RewriteOptions Inherit RewriteCond %{HTTP_ACCEPT} image/avif RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.avif -f RewriteRule (.+).jpg$ /wp-content/uploads-webpc/$1.jpg.avif [NC,T=image/avif,L] RewriteCond %{HTTP_ACCEPT} image/avif RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.avif -f RewriteRule (.+).png$ /wp-content/uploads-webpc/$1.png.avif [NC,T=image/avif,L] RewriteCond %{HTTP_ACCEPT} image/avif RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.gif.avif -f RewriteRule (.+).gif$ /wp-content/uploads-webpc/$1.gif.avif [NC,T=image/avif,L] RewriteCond %{HTTP_ACCEPT} image/avif RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.webp.avif -f RewriteRule (.+).webp$ /wp-content/uploads-webpc/$1.webp.avif [NC,T=image/avif,L] RewriteCond %{HTTP_ACCEPT} image/avif RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.avif -f RewriteRule (.+).jpeg$ /wp-content/uploads-webpc/$1.jpeg.avif [NC,T=image/avif,L]
    RewriteEngine On RewriteOptions Inherit RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpg.webp -f RewriteRule (.+).jpg$ /wp-content/uploads-webpc/$1.jpg.webp [NC,T=image/webp,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.png.webp -f RewriteRule (.+).png$ /wp-content/uploads-webpc/$1.png.webp [NC,T=image/webp,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.gif.webp -f RewriteRule (.+).gif$ /wp-content/uploads-webpc/$1.gif.webp [NC,T=image/webp,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.webp.webp -f RewriteRule (.+).webp$ /wp-content/uploads-webpc/$1.webp.webp [NC,T=image/webp,L] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{DOCUMENT_ROOT}/wp-content/uploads-webpc/$1.jpeg.webp -f RewriteRule (.+).jpeg$ /wp-content/uploads-webpc/$1.jpeg.webp [NC,T=image/webp,L]
    Header always set Cache-Control “private” Header append Vary “Accept”

    ! — DO NOT EDIT NEXT LINE — !

    END Converter for Media

    I have security hardening codes, the WP section and then this in my ROOT .htaccess:


    # Compress HTML, CSS, JavaScript, Text, XML and fonts
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE application/x-font
    AddOutputFilterByType DEFLATE application/x-font-opentype
    AddOutputFilterByType DEFLATE application/x-font-otf
    AddOutputFilterByType DEFLATE application/x-font-truetype
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE font/opentype
    AddOutputFilterByType DEFLATE font/otf
    AddOutputFilterByType DEFLATE font/ttf
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE image/x-icon
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/xml # Remove browser bugs (only needed for really old browsers)
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    Header append Vary User-Agent
    BEGIN LiteSpeed The directives (lines) between "BEGIN LiteSpeed" and "END LiteSpeed" are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten. SetEnv noabort 1 END LiteSpeed BEGIN WP Cloudflare Super Page Cache The directives (lines) between "BEGIN WP Cloudflare Super Page Cache" and "END WP Cloudflare Super Page Cache" are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten. ExpiresActive on ExpiresByType application/xml "access plus 0 seconds" ExpiresByType text/xsl "access plus 0 seconds"
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
    Header set Cache-Control "public, must-revalidate, proxy-revalidate, immutable, max-age=2592000, stale-while-revalidate=86400, stale-if-error=604800"
    Header set Cache-Control "public, must-revalidate, proxy-revalidate, immutable, max-age=31536000, stale-while-revalidate=86400, stale-if-error=604800"
    RewriteCond %{REQUEST_URI} ^(.)?/wp-content/wp-cloudflare-super-page-cache/sonohz.com/debug.log(.)$ RewriteRule ^(.*)$ - [F]
    Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0" END WP Cloudflare Super Page Cache
Viewing 10 replies - 31 through 40 (of 40 total)