Reply To: Different protection for different levels?

Forums General Different protection for different levels? Reply To: Different protection for different levels?

#708
Carole Asselin
Participant

So, i got this shortcode first to account for the local storage:

[s2File download="Webinars/InTheNewsWithPSP.zip" storage="local" count_against_user="no"]

Then, since i needed that in html format (for a link) i found this code while digging deeper in the documentation:

<a href="<?php echo s2member_file_download_url(array("file_download" => "Webinars/InTheNewsWithPSP.zip", "file_storage" => "local", "skip_confirmation" => true)); ?>"><img class="alignnone" src="http://scrapbookcampus.com/Images/handout1.jpg" alt="" width="128" height="175" align="middle" border="0" /></a>

(i hope this code will display, instead of trying to show the image)

But now, this is a code for everyone, yet, if you and Krum suggest using a conditional for both levels (so the confirmation is skipped for level1 and stays for level 2), how would the code look like? It looks like it will get very convoluted!