Environment:Wordpress 3 with plugin Ngg Gallery & WP Download Manager
I've encounter a problem with wp download manager.
I setup a download page with the plugin, to letting people download PDF from the website
The page looks good, and the files are able to download, but, the PDF is corrupted after uploaded.
The PDF was no problem before upload to the site, after searching around, I got the answer from WP forum.
The cause is WP Download Manager cannot live with another plugin "NGG Gallery"
I've encounter a problem with wp download manager.
I setup a download page with the plugin, to letting people download PDF from the website
The page looks good, and the files are able to download, but, the PDF is corrupted after uploaded.
The PDF was no problem before upload to the site, after searching around, I got the answer from WP forum.
The cause is WP Download Manager cannot live with another plugin "NGG Gallery"
Thanks god, there is a workaround from the expert:
Place the function to
/plugins/download-manager/download-manager.php
return false;
}
add_filter('run_ngg_resource_manager', 'wpdm_skip_ngg_resource_manager');
So, they don't need to separate with each other forever and ever.
延伸閱讀 Extended Reading
Any Side effects?
At the moment, No.
What's run_ngg_resource_manager?
It is a new function which introduced in version 2.0.11 NGG Gallery.
The Change Log & Description as below:
NEW: Added “run_ngg_resource_manager” hook to by-pass our resource manager