Thread Starter
nowton
(@nowton)
Apparently some conflict if you have your installation set to not inputting a default link for uploaded media. Use File Link, then insert the download, then it works.
Plugin Contributor
Josh
(@josh401)
I don’t understand.
Can you perhaps be more specific.. and explain the steps necessary to reproduce the error?
I’ll be happy to take a look and provide a fix; but currently I have no idea what you are describing.
Thank you!
Thread Starter
nowton
(@nowton)
If you set the WP installation to not provide a default link for inserted media, then this gets respected when inserting a media download using the editor button.
So in that case: I insert media using the button, the shortcode gets printed in the editor, however no link is being attached to the shortcode/link is empty.
Plugin Contributor
Josh
(@josh401)
Thank you VERY much!
I’ll take a look at it later tonight and post back here tomorrow.
Just for clarification; how did you tell WP to “not provide a default link” for inserted media?
Did you use a plugin; a custom function; or a wp-config tweak?
I really appreciate your time!
Thread Starter
nowton
(@nowton)
Setting the option image_default_link_type to ‘none’ (default = ‘file’) on /wp-admin/options.php. I have clients that require this functionality/should be protected against themselves š
Plugin Contributor
Josh
(@josh401)
Ahhh… gotcha š
Yeah.. since that’s a modified core file.. I’m afraid not much we can do. However, I really appreciate you posting the solution!
Perhaps we can add a dismiss-able admin notice if the image_default_link_type does not equal file… informing the user of the potential problem.
Again.. thanks for posting!
Thread Starter
nowton
(@nowton)
I beg to differ, this is not core adaption, but configuration. There’s probably is some check to perform, perhaps during installation. Or create an entry in your FAQ š Best of luck!
Plugin Contributor
Josh
(@josh401)
Okay… perhaps I’m not understanding correctly.
Are you modifying the wp-admin/options.php file directly when you make that configuration adjustment?
Thread Starter
nowton
(@nowton)
Steps to get to the options screen: Open a WordPress admin, paste or type ‘options.php’ (w/out the quotes) after http://yourdomainnname.tld/wp-admin/ Edit options at will, using common sense š Better?
Plugin Contributor
Josh
(@josh401)
Ah yes… not many know about that little secret! I had no idea that is the area you were referring. My apologies.
Okay.. I understand.
I’ll have a deeper look and see what we can do.
Since that is a direct database setting.. I’m sure we can check it’s value prior to setting the file url, and alert a message to the user if image_default_link_type = none.
Thanks again for your help with this!
Thread Starter
nowton
(@nowton)
Sure thing, best of luck with that š
Hi,
I would like to be able to upload .mcd (Conceptuel Data Model) file ?
The Simple download plugin say “This file type is not authorized”
How I can add this file type as acceptable ?
Thread Starter
nowton
(@nowton)
Casimir, please start your own thread, as this one is unrelated and marked resolved. Thanks.