*

Cephas

  • ***
  • 54 posts
I want only logged in users to be able to download files.
« on: March 08, 2024, 02:01:58 AM »
Hello,

I want only logged in users to be able to download the files. How can I do that? As it is now, anyone on the website can download the free digital files.

*

MB Themes

Re: I want only logged in users to be able to download files.
« Reply #1 on: March 08, 2024, 03:21:10 PM »
Show button just when user is logged in (check hUser helper)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Cephas

  • ***
  • 54 posts
Re: I want only logged in users to be able to download files.
« Reply #2 on: March 12, 2024, 08:37:37 AM »
What is hUSer helper? Would you Please clarify.

*

MB Themes

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Cephas

  • ***
  • 54 posts
Re: I want only logged in users to be able to download files.
« Reply #4 on: March 13, 2024, 05:39:18 PM »
Thank you. I will try that.

*

MB Themes

Re: I want only logged in users to be able to download files.
« Reply #5 on: March 13, 2024, 07:22:08 PM »
Code: [Select]
<?php if(osc_is_web_user_logged_in()) { ?>
  <a href=... button ... </a>
<?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots