Lana Codes
Forum Replies Created
-
Forum: Plugins
In reply to: [Lana Downloads Manager] Links are not restrictedCreate a plugin that handles logged in users to access a significant development. There are many user access levels with many settings. There is currently no plan to include such development in the future in Lana Downloads Manager.
But there may be other user access management plugins that work well with Lana Downloads Manager.
Forum: Plugins
In reply to: [Lana Downloads Manager] Links are not restrictedLana Downloads Manager does not have any settings that manage access for logged in users. I’m sorry for the misunderstanding.
“public” parameter in post type:
https://codex.wordpress.org/Function_Reference/register_post_type#Parameterspublic
(boolean) (optional) Controls how the type is visible to authors (show_in_nav_menus, show_ui) and readers (exclude_from_search, publicly_queryable).Forum: Plugins
In reply to: [Lana Downloads Manager] How this work?The short answer is no.
The purpose of this plugin is to upload files on the admin interface and to download it on the frontend.
So it only provides downloads from frontend.Try searching for them on Google: “WordPress File Upload Plugin” or “WordPress Frontend Uploader Plugin”
Forum: Plugins
In reply to: [Lana Downloads Manager] Hook to overwrite shortcodeFor this case, there is a simpler solution:
function lana_download_modified_shortcode( $atts ) { // modified shortcode... } remove_shortcode( 'lana_download' ); add_shortcode( 'lana_download', 'lana_download_modified_shortcode' );So remove default shortcode and add modified shortcode function.
Note:
The filter would not have too much use because you would overwrite the full shortcode anyway. The filter is useful if you want to rewrite part of the operation. Therefore removal and new addition are more logical in this case. But this is just a developer’s comment.Forum: Plugins
In reply to: [Lana Downloads Manager] Hook to overwrite shortcodeOr at the download post type you see two values:
Permalink: {url}
Download Permalink: {download url}Use “Download permalink” at the link:
<a href="{download url}">Download</a>Forum: Plugins
In reply to: [Lana Downloads Manager] Hook to overwrite shortcodeYou can query the download URL with the following function:
lana_downloads_manager_get_download_url($post_id)where post_id is the download post id.
if you need more help, please feel free to contact us.
Forum: Themes and Templates
In reply to: [Lana Blog] SSL compatibilityI think that not the Lana Blog theme is the wrong one, but the Cache plugin.
The console writes these errors:
Mixed Content: The page at 'https://conactcomm.org/' was loaded over HTTPS, but requested an insecure stylesheet 'http://conactcomm.org/wp-content/cache/autoptimize/css/autoptimize_01c87fd783198602fe439097832077bd.css'. This request has been blocked; the content must be served over HTTPS.Please disable the Cache plugin and try again.
Forum: Themes and Templates
In reply to: [Lana Blog] Problem with set excerpt content typeLana Blog theme successfully updated to version 1.1.4
Please update the theme on your website.
WordPress admin > Dashboard > Updates > Check AgainForum: Themes and Templates
In reply to: [Lana Blog] Problem with set excerpt content typeThank you for the feedback. I fixed the bug.
I uploaded the new version, maybe it will be active tomorrow and you can update the template. Thank you for your patience.
Forum: Plugins
In reply to: [Lana Downloads Manager] Limit download speed and quantityI think this is not a good solution.
Downloading is not based on FTP, but through HTTP.I tried to read it then, but I think there is no HTTP download speed limit on cPanel.
This is a more complicated web server setting.
Download speed limit in cPanel
As you can see, here it is written that the Apache web server must be configured.
Forum: Plugins
In reply to: [Lana Downloads Manager] Limit download speed and quantitySorry, I do not think this is possible. The PHP code can not do this.
Such settings are usually done with a webserver (such as Apache) setting.
Forum: Themes and Templates
In reply to: [Lana Site] Short post style on HomePage not full textI updated the template.
Find the setting:
Appearance > Customize > Post > Content TypeSet it to “The Excerpt”
Forum: Reviews
In reply to: [Lana Site] This theme needs some updateThat’s a good idea. I like it. I’ll do the development.
I need a few days and I’ll upload the new version.Thank you for the feedback.
Forum: Themes and Templates
In reply to: [Lana Site] Short post style on HomePage not full textThat’s a good idea. I like it. I’ll do the development.
I need a few days and I’ll upload the new version.Hi,
Please update plugin to 1.2.1 version because this version includes the post type args filter.
After update, add this code to the active theme functions.php:
/** * Lana Downloads Manager * change rewrite * * @param $lana_download_post_type_args * * @return mixed */ function lana_downloads_manager_change_rewrite_lana_download_post_type_args( $lana_download_post_type_args ) { $lana_download_post_type_args['rewrite']['with_front'] = false; return $lana_download_post_type_args; } add_filter( 'lana_downloads_manager_lana_download_post_type_args', 'lana_downloads_manager_change_rewrite_lana_download_post_type_args' );