Lana Codes
Forum Replies Created
-
Forum: Plugins
In reply to: [Lana Downloads Manager] Improvements regarding the download countAnother example might be resetting the number after an attack by bots.
There is some flood protection in the plugin. But yeah, the example is understandable and absolutely true.
I want to publish the addon plugin for free. It will definitely be free, any solution.
But I can solve the editing in the core plugin by clicking on a separate icon to change the counter to an input field. So that the primary goal is not for users to modify the counter.
Forum: Plugins
In reply to: [Lana Downloads Manager] Improvements regarding the download countEditing the download counter is a really good idea. I will definitely make an addon plugin that will allow this and will publish it on my own website to make it available to everyone.
Or maybe I’m going to upgrade to the Lana Downloads Manager plugin, I still have to think about it. I don’t know which would be the better solution.
I don’t think most users would need to edit the download counter, but for example it makes sense that if you import the data, the number of downloads also has a default value.
Forum: Plugins
In reply to: [Lana Downloads Manager] Improvements regarding the download countYou have two options to query the value of the counter:
<?php echo lana_downloads_manager_get_download_count( $post_id ); ?>this function has more checks, for example you can use it even without
$post_idif the global post is set.
You can find the post id on the right in the download information metabox, this is the download identification.Another option is to query the post meta:
$lana_download_count = get_post_meta( $post->ID, 'lana_download_count', true );Note: if this has never been downloaded by anyone, its value will be “null” instead of 0.
Forum: Plugins
In reply to: [Lana Downloads Manager] Download in a new browser tab whith shortcode?It is basically a download manager plugin, so forcing any file to download (including an image file, a pdf file that would otherwise be able to be displayed in the browser), so it doesn’t dislpay anything on a new tab.
I have an addon plugin for Lana Downloads Manager that is specifically designed not to download pdf files but to display them if you need them so I can send them to you.
Forum: Plugins
In reply to: [Lana Downloads Manager] File typesYes, it is possible, just add “text” attribute to the shortcode:
[lana_download id="101" text="SVG file for download"]Forum: Plugins
In reply to: [Lana Downloads Manager] File typesWordPress core basically disables svg files for security reasons:
test.svg
Sorry, you are not allowed to upload this file type.You need to install a plugin to upload svg files to Media Library:
https://ww.wp.xz.cn/plugins/svg-support/
https://ww.wp.xz.cn/plugins/safe-svg/You will then be able to add an svg file to the Download too.
Please note that Lana Downloads Manager is a protected file manager, it does not display image files and it is not possible to display or view the files uploaded to the Download, only the download is possible.
Forum: Plugins
In reply to: [Lana Downloads Manager] dowload listI made the change in version 1.5.0
Forum: Plugins
In reply to: [Lana Downloads Manager] dowload listCould you send a link to your website where the listing is incorrect? If your website is not public, you can also email me the link at [email protected]
But downloads have a post type archive page (if public post type is enabled in the settings), which can be accessed by default from
/lana-download/permalink. This page has the latest download in the very first place.You may be thinking of another archive page that doesn’t specifically belong to the plugin. Or another plugin may change the order. Unfortunately, I can’t check this problem without a link to the website.
Forum: Plugins
In reply to: [Lana Downloads Manager] Spacing between entriesThe download button style has been created primarily for Bootstrap-based themes.
Varies for other themes, but you can specify a unique style if you understand CSS:
Appearance>Customize>Additional CSSAnd add a unique value:
.lana-download-shortcode .badge { display: inline-block; background-color: #fff; padding: 3px 7px; margin-left: 10px; }Forum: Plugins
In reply to: [Lana Downloads Manager] Download numbersOkay, as I see it, it’s probably going to be an user role issue. Only users in the “Administrator” role can access the Logs.
In the user list (Admin> Users), there is a Role in the column of the table.
Forum: Plugins
In reply to: [Lana Downloads Manager] Unable to download file on WordPress siteThis is equivalent to WordPress core permalink settings.
Slug:
https://lana.solutions/develop/download/test/ID:
https://lana.solutions/develop/download/1942/The type of download url changes.
Forum: Plugins
In reply to: [Lana Downloads Manager] Unable to download file on WordPress siteOkay, thanks for the suggestion, I’ll be working on the description of how to use the plugin.
I will expand the plugin description later to make it easier for users to understand.
Forum: Plugins
In reply to: [Lana Downloads Manager] Unable to download file on WordPress siteDid you look at the screenshot?
You can find it here:
Admin > Downloads > Root CA > EditYou specified the file in the description. That’s wrong.
You need to enter the file in the meta field below, which says
File (URL).Forum: Plugins
In reply to: [Lana Downloads Manager] Unable to download file on WordPress siteOkay, the settings are OK.
But please take a look at the screenshot I sent. It’s about what’s the problem. You have entered the file URL in the wrong field when editing your post.
Forum: Plugins
In reply to: [Lana Downloads Manager] Unable to download file on WordPress siteAs I see it in your settings, you did not specify the file in the
File URL, but in the description.Screenshot:
https://i.ibb.co/Wy09DM4/screencapture-download.jpg