Lana Codes
Forum Replies Created
-
Forum: Plugins
In reply to: [Lana Downloads Manager] Created download, but don’t see the file on pageIf my answer is not completely clear, please let me know and I will try to explain it differently.
Forum: Plugins
In reply to: [Lana Downloads Manager] Created download, but don’t see the file on pageI’m not sure I fully understand your question, but:
https://beta.chmse.com/downloads/testing-new-file-where-does-download-show/ – The problem is that you can’t find the download link here, right?
This is because it is driven by your theme. This cannot be done with a plugin. Unfortunately, the plugin cannot modify this (because it is a theme territory).
So this /downloads/{slug} is
/theme/your-theme/single-lana_download.phpor/theme/your-theme/single.phptemplate file. The content and buttons are displayed by the theme.The solution:
When editing Download, put the download permalink or shortcode in the content.
Forum: Plugins
In reply to: [Lana Downloads Manager] vulnerabilityCan you give more information on where you can see jQuery version 1.4.2?
The plugin uses jQuery version 1.12.4, which is the latest version 1.x:
https://plugins.trac.ww.wp.xz.cn/browser/lana-downloads-manager/trunk/assets/libs/jquery/jquery.min.jsForum: Plugins
In reply to: [Lana Downloads Manager] vulnerabilityYes, I can upgrade.
The plugin does NOT load jQuery with the wp_register_script() function from plugin folder, but uses the WordPress core. I know WordPress standards.
Only lana-download.html uses the jQuery plugin for the shortcode popup. It’s static html.
Forum: Plugins
In reply to: [Lana Downloads Manager] SuggestionUm, thank you very much, this is an interesting idea. I might have thought of something like a tag list:
For example {post_title}, and if {post_title} is specified in the shortcode, the title will appear in the button text.The shortcode download button is because average user adds “Download” text to the button. But I fully understand your logic, and it makes sense.
For more complicated settings, there is a Download Widget. Here you can set thumbnail image, title and description display automatically. But this can only be used in Page Builder or WordPress widget sidebars.
Forum: Plugins
In reply to: [Lana Downloads Manager] Track which user downloaded each fileFor general privacy settings, you need to enable logs in Downloads > Settings.
Recommendation:
You will also inform the visitors about this log.Forum: Plugins
In reply to: [Lana Downloads Manager] Track which user downloaded each fileBasically this plugin can do it, yes. But there is no serious search engine or filter for it.
You will see a the list under Downloads > Logs.
This list also contains the file name and the user name.Forum: Plugins
In reply to: [Lana Downloads Manager] Multi Language (qTranslate-X)The easiest way to do this is to write your own function.
function lana_download_shortcode( $atts ){}
add_shortcode( 'lana_download', 'lana_download_shortcode' );Copy this function, rename it and modify it according to your needs. It requires a minimum of PHP knowledge.
Or I think any freelancer can make it for you.
Forum: Plugins
In reply to: [Lana Downloads Manager] Multi Language (qTranslate-X)Yes, I think I understand the problem.
lana_download_file_idThe ID field is generated by a JS code. For this to work, I would need to rewrite the JS section, which would be a big job, I don’t know how to do it, I don’t know how, I didn’t find any documentation about it.
So only the URL field will work.
Later, if I have more free time, I will try to find a solution.
Forum: Plugins
In reply to: [Lana Downloads Manager] Multi Language (qTranslate-X)I was looking at this solution from the qTranslate X official website.
Yes, meta is basically saved in two languages when the plugin is enabled. You then need to use the qTranslate X filter function to separate the two languages metadata.
These functions are for this purpose:
qtranxf_filter_postmeta();
qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage();There may be other solutions, but I only found this solution.
Forum: Plugins
In reply to: [Lana Downloads Manager] Download leads to blank pageI am glad that resolved and it works. 🙂
You’re welcome. If you need help at any time, feel free to contact me.
Forum: Plugins
In reply to: [Lana Downloads Manager] Download counter problemI tested the GeneratePress theme and Elementor plugin. I found a minor bug in the Download widget which I fixed in the new version. Please update the plugin.
But I didn’t find anything that could cause too many counter error.
I think some plugin may interfere, but it’s a separate meta. The system checks the counter number several times before incrementing.
I couldn’t reproduce the error.Note:
The log is not protected, and every time someone clicks on the download, it appears in the log. So if someone clicks 1000 times, the log is saved 1000 times.
In the next version I will put flood protection in the log.Forum: Plugins
In reply to: [Lana Downloads Manager] Multi Language (qTranslate-X)Can you give me feedback? Did the code work?
Forum: Plugins
In reply to: [Lana Downloads Manager] Download leads to blank pageIt sounds strange, I think this option is in use from the very first version.
Can you verify that you are using Lana Downloads Manager version 1.2.2? And please re-check that you are looking at Downloads > Settings.
Forum: Plugins
In reply to: [Lana Downloads Manager] Download leads to blank page@sifuhall This seems to be a problem with the plugin settings or WordPress permalink.
Go to Downloads > Settings in admin:
General Settings
Endpoint –download-file
Endpoint Type –IDCustom Post Type Settings
Post Type Endpoint –downloadSet Endpoint to
download-file, and set Post Type Endpoint todownload.Go to Downloads > Download post edit in admin:
Use Download Permalink, not Permalink to the direct file download!Note:
If you are doing permalink setup anywhere in WordPress (eg Lana Downloads Manager) then you need to save the settings in WordPress too:
Go to Settings > Permalink and click to Save Changes button.