Brian Daley
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] “Regenerate Download Permissions” doesn’t reset expiration dateIn case anybody else encounters this issue, I’ve created a gist with my solution.
Regenerate Permissions/Expiration and Notify User
By default, my code extends the expiration date indefinitely. But I’m sure this could be modified to use the product default expiration.
Forum: Plugins
In reply to: [WooCommerce] “Regenerate Download Permissions” doesn’t reset expiration dateThanks for the reply.
For my use-case, it’s necessary to also reset the the download expiration date (today + 5 days). Which means that regenerating download permissions becomes a 2-step process.
I’d like to automate this process so I don’t need to reset the download number AND the date. Before I embark on writing a custom solution to handle this, I’m just wondering: do you see any reason why I shouldn’t write an extension to handle this for me? (i.e., it would break something else in WooCommerce)
Thanks!
Forum: Requests and Feedback
In reply to: Feature Request: Show Plugin Compatibility+1
FWIW – You can manually translate the file names from the command line like this:
find . -name "*" -exec rename -p 's/\\/\//g' {} +
On second look, I guess the same thing happened to my theme files. They were not imported as well.
Forum: Plugins
In reply to: [WordPress PDF Templates] fopen wrappers and file_get_contents()Yeah, don’t get me wrong. The use of file_get_contents() makes perfect sense. You need to get the rendered HTML from WordPress. file_get_contents() is dead-simple and it works. I’ve just had certain hosts block that function when trying to fetch over HTTP.
Hopefully I’ll have some time to submit a pull request. I’ll have to make the modification for my server anyway.
Thanks for the quick response. This is a great plugin.
-Brian
Forum: Plugins
In reply to: [CAS Maestro] 404 Page on "Log Out"No, CAS is perfectly fine. It redirects back to the URL that you’ve provided to phpCAS. I think I found the problem in the code:
https://plugins.trac.www.ads-software.com/browser/cas-maestro/trunk/cas-maestro.php#L379
It’s using ‘siteurl’ instead of ‘home’: https://codex.www.ads-software.com/Function_Reference/get_option
Where siteurl is referencing the WP url and ‘home’ would be the URL of the site. So, I believe it should be:
phpCAS::logoutWithRedirectService(get_option('home'));