Forum Replies Created

Viewing 15 replies - 46 through 60 (of 96 total)
  • I have this issue too, I have hidden it via CSS though

    Thread Starter Greg Marshall

    (@timeassistant)

    Ah right thanks for the info.

    Only looking for a free solution so will have to find another plugin.

    Thank you

    Thread Starter Greg Marshall

    (@timeassistant)

    Hey Frank,

    No problems at all ! I’m just thankful for your excellent support 😀

    I’m glad I was close with my example, good to know I was on the right track at least – the self teaching is still proving to be mostly useful….

    Anyway I have altered the code again and it seems to be working great. Its updating every 120 secs which I will probably increase to a longer duration now that its working and I am about to finish for the holidays.

    Which leads me back to the plugin – probably won’t be til after new year now but I am definitely going to try and convert this into a plugin as mentioned before with a settings page to change the refresh rate on the fly and to “pay it forward” I think I will probably upload it to the WP repo aswell for others who may want it – assuming you have no objections as its an addon to your plugin (also assuming I get it working !!!!)

    Anyway you’re an absolute legend Frank ! By way of thanks please do let me know if I can be of any assistance with AO moving forward, (as I have your dev version on our live site I plan on playing with the extra features when I get some time and I’ll give any feedback as/when it comes up)

    Hoe you have yourself a great Christmas (if you celebrate it!) and New year.

    Thread Starter Greg Marshall

    (@timeassistant)

    Ah cool thanks,

    I was trying to do something like this:

    function ao_custom_refresh( $duration ) {
        $duration=120; 
    
    	    
            return $duration;
        }
    
     add_filter( 'autoptimize_filter_cache_statsexpiry', 'ao_custom_refresh' );

    but it seemed to be refreshing every 60s anyway so I will swap it out for your code.

    In terms of that do you think

    add_filter('autoptimize_filter_cache_statsexpiry', 120);

    would work? or would it be

    add_filter('autoptimize_filter_cache_statsexpiry', 2 * MINUTE_IN_SECONDS);

    Thanks again !

    • This reply was modified 8 years, 4 months ago by Greg Marshall.
    Thread Starter Greg Marshall

    (@timeassistant)

    Yes I think I jumped in at the deep end there !

    I actually created a settings page with the input field. It was the rest of it that got me stuck 🙂

    I am attempting to hook into the filter just now using a snippet, I do like to try and teach myself however I would happily accept some starting off pointers. Unfortunately the available docs on WP are generally for creating your own plugins and code or manipulating default WP core stuff – not manipulating someone else’s plugin 😉

    Thanks

    Thread Starter Greg Marshall

    (@timeassistant)

    wow that’s amazing thanks

    I am trying to create a plugin with a settings page that would manipulate this without having to edit code every time. (Using the wp boilerpate from https://wppb.me/)

    This is my first plugin attempt so I am actually stuck!!! Will have to research tomorrow and try get going again…

    Nonetheless thank you very much for adding the filters, hopefully I’ll be able to learn what I need and finish this off

    Bestwebsoft sold this plugin to a shady character (read the backdoor threads, they also contain a link to the wordfence post which in turn contains a link to the post from bestwebsoft stating the plugin was sold) 4.4.5 was an udpate released by WP staff to remove this code. As far as I can tell bestwebsoft do not support this plugin, it is unlikely there will be future updates either.

    You may need to find yourself an alternative captcha.

    Personally I recommend you use a recpatcha plugin – bestwebsoft also do one so assuming they don’t also sell it to the same company you should be good with that one

    Thread Starter Greg Marshall

    (@timeassistant)

    Thanks for the quick reply !

    The transient manager is probably the simplest solution.

    However I would quite like to change the code but, I don’t want to edit the plugin directly I’d obviously lose the changes between updates. A quick google search led me to this post https://iandunn.name/2014/01/10/the-right-way-to-customize-a-wordpress-plugin/

    Would any of this work with AO?

    Thanks again

    Thread Starter Greg Marshall

    (@timeassistant)

    Sorry ! your right I’ve made a mistake in my post I wrote it the wrong way around first time.

    Please allow me to clarify….

    In “set, replace, remove” it DOES NOT pickup the EDD post type.

    in “Preset featured images” it DOES set the default image for the post type (and picks it up)

    https://pasteboard.co/GL4VVMj.png

    as you will see above it works fine for Preset, but in set replace remove it will only show blog posts (or pages if I choose pages)

    Hope this helps clear up the confusion there

    Thread Starter Greg Marshall

    (@timeassistant)

    Ok, but the strange thing is that is works for setting default preset featured images, when I create a new product without a featured image it auto applies the one I selected. It’s just when I go to the replace option and select post type filter, it just shows blog posts nothing EDD related. When setting the default image for new submissions, it shows my ‘services’ post type fine

    Also the function to change slug / label from downloads is a supported method from EDD themselves. Even if this isn’t a bug, it’s still an issue, is there a way to fix it? I haven’t had any issues with any other plugins when it comes to changing EDD’s label or slugs they all recognise ‘services’ without issue

    Thanks

    Thread Starter Greg Marshall

    (@timeassistant)

    Yes that is correct,

    However EDD provides the option to change the slug which is what I was meaning, my “Download” post type is displayed as “service”

    either way, the post type is not shown as described in my first post

    Thanks

    hi there,

    I had this issue too, you need to add – muted=”true”

    i.e.

    [evp_embed_video url=”http://example.com/wp-content/uploads/videos/myvid.mp4″ autoplay=”true” muted=”true”]

    Thread Starter Greg Marshall

    (@timeassistant)

    Thank you, I’ll look into writing a query to reset this back to 0 for now til you manage to get this added yourself 🙂

    Thread Starter Greg Marshall

    (@timeassistant)

    Thank you for the response,

    unfortunately for some reason the clear history button doesn’t actually work for me. It could be conflicting with somwething, I havent had time to check yet.

    Yes please add some buttons to clear the views and download count. Until then is there even a location in the database you could point me to that may flush this out?

    and in regards to tags thats great thanks, I didnt realise it was standard wordpress tags, so I should be able to just create – tag-{slug}.php – now and put my redirect there. I don’t actually want the downloads to show up in the tag page as the downloads are for logged in members only, so I am redirecting the tag and category pages to the “member area” and only permitting admin users to view this as the logged in “members” have a members area that will point them to the downloads on a unique page I have created

    Anyway again just want to thank you for creating this plugin ! minor issues aside it is very good indeed

    Thread Starter Greg Marshall

    (@timeassistant)

    Hi there,

    Yes I did, However 10 months is a long time ago and I cannot remember 100% what I had to do…

    I think you just need to get a user role editor plugin, and set ‘Author’ to be able to edit pages, delete them etc the same kind of privileges that ‘Editor’ has but you also have to restrict WP admin backend access at the same time, I can disable admin access via Ultimate Member, you may need to find an alternate plugin.

    Essentially you need to allow the role permission to access backend features but actually restrict the backend. The problem is that the WP media uploader is a backend system.

    I got this working with the ‘User Submitted Posts’ plugin I would recommend trying that with the role editor and see what you get.

    I’m sorry I can’t be more helpful but if I do remember exactly what I did I will post back and let you know.

Viewing 15 replies - 46 through 60 (of 96 total)