Different protection for different levels?

Forums General Different protection for different levels?

Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #678
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    I currently have various tutorials available with ccaps, but everything is at Level 1.

    I want to make an all-access pass (as a Diamond member), but i want to restrict the number of downloads. With the Level 1, it was not necessary as every product was protected by its own ccap.

    I set up the files correctly, and as i test with a test account set to Level 2, i get the expected popup warning about the number of downloads and then proceed to the download. That is perfect.

    However, when i test with the Level 1 test account, the same link is redirecting me to the Membership Options page. That is not what i want. I want any Level 1 to simply honor the ccap, and not take the number of downloads into account.

    Can i do that? Am i doing something wrong?

    #680

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    There’s an attribute for the download link/shortcode that lets you not count it. I guess you’d need to use a conditional that adds that attribute when the level is 1. See: WP Admin -> s2Member -> Download Options -> Shortcode Attributes -> count_against_user

    #684
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    The problem is not whether it counts or not, but whether the link is considered valild or not since it redirects to the Membership Option page.

    #687

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    The MOP redirection means the user didn’t have the required permission. What do the MOP vars say about the restriction applied in that case?

    #690
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    Where do i see what the MOP vars say?

    #692

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    In the URL (in the browser’s address bar) after the redirection to the MOP page.

    Make sure they’re enabled. WP Admin -> s2Member -> General -> Membership Options Page -> Enable MOP Vars

    See also: WP Admin -> s2Member -> Scripting -> Membership Options Page Variables

    #694
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    OK after a little tweaking, i noticed that i had to put a download limit on the Level 1, even if i didn’t need a limit (since everything would be dripped and limited by ccaps and such), so i added a download limit of 99999 for 365 days. That works EXCEPT for the fact that it will show a popup saying “you have downloaded 4 files out of a download limit of 99999….” or something to that effect.

    Ideally, i would want that popup for those who REALLY have a limit (Level2) but not the others (Level1). But if i can just remove the popup for both, it might be the plan B (and i know there is a code for that).

    Now, is there an easy way to generate that popup ONLY for the Level2? If not, i’ll just fall back on Plan B.

    #696
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    OK, i know what the shortcodes i want to use:

    I want to use storage=”local” to identify that a specific file is available in the s2m protected folder at least i was testing that)
    and i want to use count_against_user=”no” so that the popup won`t appear.

    However, i can’t figure out the syntax to put them all together. Probably a super simple question, but how do i add that to the initial:

    Testing download limit

    How do I put them together? With a comma? a semi-colon? Neither one worked so i am missing that .. “punctuation”.

    #697
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    OK i realized that i was trying to add the shortcode attributes to an html code, which obviously didn`t work.

    Now, trying to use the shortcode, i have no clue how to add a shortcode so that the text or the image is clickable (i often have an image to click on).

    So, how do i get this shortcode:

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

    to replace my current html code that is :

    #698

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    to replace my current html code that is :

    I don’t see the image you posted there, the link seems broken.

    Do you want to have those variables in the URL instead of a shortcode? Not sure if that’s what you’re asking, could you explain a bit more? Thanks!

    #699
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    Yes, i was wondering how to incorporate the “shortcode attribute” into a url, but i figured out that it needs to be wrapped. That works.

    However, is there a way to have that popup about the number of downloads appear for one level, and not for another level? In the case of the “all-access” pass (Level 2), i want to avoid someone from downloading hundreds of files at once, but on the dripped access (Level 1), there is no need for it, since they would not even have that many to download anyways. Is that possible?

    #700
    Krum Cheshmedjiev
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    May try to use [s2If condition_for_level] inside the [s2File] shortcode to add the attribute when needs. Any shortcode may stay inside any text, include other shortcodes.

    #701
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    May try to use [s2If condition_for_level] inside the [s2File] shortcode to add the attribute when needs. Any shortcode may stay inside any text, include other shortcodes.

    I think that might become quite complex as a code, especially since i’ll have to add that to 500+ current links! Maybe i’ll just approach it from a different angle, and have either the same popup for all, or none at all (and those going over the limit will just be the greedy ones!)

    #702

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    Right, with a condition. If you use the s2If shortcode, then you’d wrap the s2File shortcode with it. You can’t use a shortcode inside of another one, so if you want to change the s2File attribute only, then you’d use a PHP condition there.

    #703
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    All that for a link!
    I think i would need a sample of what a linked image code would look like. All those codes are just jumbled in my head right now.

    #704

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    A linked image? Do you mean this?

    <a href="http://example.com/image.jpg" target="_blank"><img src="http://example.com/image.jpg" alt="Image" /></a>

    #705
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    Yes that is exactly what i am looking for. How would i get everything from that embeded shortcode to link on an image?

    #707

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    How would i get everything from that embeded shortcode to link on an image?

    What embeded shortcode? Could you paste it here inside code tags?

    #708
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    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!

    #709
    Krum Cheshmedjiev
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    Try this:

    <a href="<?php echo (current_user_is("s2member_level2"))?s2member_file_download_url(array("file_download" => "Webinars/InTheNewsWithPSP.zip", "file_storage" => "local")):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>

    #710
    Carole Asselin
    Participant

    Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /nfs/c09/h02/mnt/138233/domains/s2member.net/html/wp-includes/functions.php on line 4773

    WOW… i’ll try that, now, since i ALSO have the drip timer combined to that, this will be a big job! But i’ll still try.

Viewing 21 posts - 1 through 21 (of 21 total)
  • You must be logged in to reply to this topic.