• Resolved ofmarconi

    (@ofmarconi)


    Hi!

    This plugin manages a “unique string” or “token” like the woocommerce?

    It works as a protection for the original file URL.

    (https://docs.woocommerce.com/document/digital-downloadable-product-handling/#unique-string)
    O Woocomerce obriga que a pessoa esteja logada e verificada, mas acontece que eu n?o vou usar Produtos, mas sim CPT para criar as páginas de Download e pré-visualiza??o do arquivo.

    I’m creating a subscription site and I want to add the digital file URL to the download button on the product page for those who are logged in.

    Similar to artgrid: https://artgrid.io/clip/279578/3d-Animation-Rock-Blue
    Or: https://elements.envato.com/

    I’ll have much buttons: Download 4k, Download Mobile, Download with Watermark …`

    I will explain all my scenario, but before I had one idea:

    1 Shortcode Method
    With the original external or internal URL:

    ‘[Download Roles=”Silver, Gold, Platinum” url=”https://www.dropbox.com/s/b08y8jbmirstjoi/tv_hologram%20close%20touch%202_4k.mp4?dl=1″]’

    I lap this shortcode on the Custom Field or within the URL field of the elementor.

    The link is rendered like this: https://site.com/?Download_File=9353&token=354762145682368
    Redirecting to the original URL after validated:

    1 – Are you logged in? (if not, ship to page: /login-to-download)
    2 – Are you allowed? (if not, send to page: /upgrade-to-%REQUIRED_ROLE%)
    3 – All approved: Redirect to the URL inserted into Shortcode:
    https://www.dropbox.com/s/b08y8jbmirstjoi/tv_hologram%20close%20touch%202_4k.mp4?dl=1

    And who can access this link will only be logged in and with the specified ROLE

    My scenario:

    Elementor
    Jengine (CPT)
    Woocommerce
    Woocommerce subscriptions (maybe)
    PublishPress Capabilities (for Custom Roles)

    I do not have printscreen, but I intend to create with jetengine the CPT it creates custom fields, I would use them to put the links of the files …

    Any more information required?

    Thanks so much for reading so far!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Lana Codes

    (@lanacodes)

    File protection is included in the plugin, but there is no user authorization system in Lana Downloads Manager.

    Managing and editing user roles is very complicated and complex, it would be a standalone plugin, so it would be a huge plugin on its own. But there are very professional plugins for this.

    However, Lana Downloads Manager includes filters, so in theory it is possible to connect to other plugins. But it would be very complicated, so it requires significant programming knowledge.
    Based on your description, you probably even need to make a custom shortcode.

    Thread Starter ofmarconi

    (@ofmarconi)

    Thanks for reading this huge text.

    Is not it possible with your plugin to do this?
    https://postimg.cc/yjrhmwts

    Instead of adding one by one, just put the URL inside the shortcode and ready.

    like this: [url = lana_download “site.com/”]

    Plugin Author Lana Codes

    (@lanacodes)

    postimg: “404 Not found”

    I am not sure that I know what your idea, but I think if you want a custom method, it’s much easier to write your own shortcode.
    So the [lana_download] shortcode works with the Lana Download post type, based on id.

    But writing your own shortcode is not complicated, a freelancer can easily develop it for you. It can work with a unique URL.
    I think a [link_button url=”https://lana.codes/file1″%5D shortcode can be found in any shortcode plugin if you don’t have a unique request.

    Thread Starter ofmarconi

    (@ofmarconi)

    https://i.postimg.cc/CMvjqM6d/image.png

    Sorry

    Thanks for the attention, what I would like to do is have the same function as your plugin, but without the need to register a post to generate an ID.

    If it is possible to insert directly by generating a link that only those who are logged in can download.

    I would put this shortcode inside an element button.

    thanks!

    Plugin Author Lana Codes

    (@lanacodes)

    Yeah, I’m starting to understand your idea. I think the easiest way is to copy the add_shortcode(‘lana_download’) function and transform it according to your own idea. And you do an add_shortcode(‘custom_download’) and you have a [custom_download url=””] shortcode.
    You need programming knowledge, but a freelancer can easily do it for you.

    Because what you write is not included in my plugin.

    Thread Starter ofmarconi

    (@ofmarconi)

    Ok!

    Thx so much

    ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How can I generate Shortcode to protect my public links to Dropbox? (?dl=1)’ is closed to new replies.