Yes, I am using 3.0.1. Please advise.
Thanks, the user reviews add-on was the cause of it! Any idea what needs to be fixed to prevent that conflict from occurring?
Thank you. I tried using that code, I am able to include posts (when using main WP tag slug) but cannot filter out posts when using the main WP tag ID number. Please advise if the code works on your end for excluding posts by tag.
Ok. Thank you.
1) To support the custom tag, is it just a matter of doing a search and replace in that PHP file? If so, what do I need to search for and what do I need to replace it with?
2) I did a test using a regular tag and the similar downloads are now being displayed. How do I change the link template that is used for [similar_downloads]? Is there somewhere where I can configure the settings?
Thanks.
Thanks. I ended up finding the notification in my spam settings. However, when I opened the email, it just contains the following text (no links or anything to click on):
**********************************
Subject: Review Notification!
A new review has been posted by Test. Approve this review here
Reviewer’s Name: Test
Reviewer’s Email: test@testing.com
Rating: 5
Review Content: Testing
**********************************
Is it supposed to actually include a link for me to click to approve the rating? If so, it wasn’t provided in the email message.
Also, is the email message supposed to say which package received the rating? If so, that also was not included in the email message.
Thanks
Thanks. Yes, I followed those steps and only have the ability to select from “author” and “status” (see here: https://prnt.sc/q22ghb). The comments dropdown does not exist for changing the comments.
Thanks. For the older packages, I don’t have an option to bulk update the comment option. See here for my available options: https://prnt.sc/q22ghb
However, when I go to my regular blog posts, I DO have the option to bulk enable or disable comments (just not on my download packages). Any idea why?
Thanks
Yes, I am planning to use the Premium Package Add-On.
I have a couple of follow up questions:
1) Is there a separate download button shortcode that is used to show the free file download button? I tried adding a free product to the package that has a price associated with it, but am only seeing the add to cart button. How does the user see the free download button for accessing the free file?
2) Is there a way that I can make it so that the free file version can only be accessed if you at least have a minimum membership (i.e., a free basic membership)? The reason why I ask is that we require all of our users to at least have a free basic membership to download our free files and we restrict the number of files that they can download per month using the download limit addon.
Please let me know. Thanks!
Thanks. Sorry, maybe I wasn’t clear in my post, but what I am looking for is the ability to just display the download button only (not the entire link template that is assigned to that package). Is there a way to just display just the download button only?
https://pasteboard.co/IId7pzg.png
Thanks
Thanks for your reply and for updating the code.
In regards to your reply to #3, I have the following questions:
A) Does this mean that it would not be possible to do something like this: tags=”plugin,59,61″ which would tell it to show everything tagged with plugin, but to exclude anything tagged with id 59 or 61?
B) If that is not possible, then are there any other workarounds to accomplish what I am trying to do?
C) If there are not any other workarounds then is there any thing else that I can assign to a product (other than a tag or a category) that I can use as a filter to include/exclude when using the categories shortcode?
D) Lastly, for the code that you provided, would this same code be used if I am only using the custom WPDM tags (download-tag) instead of the main WP tags? Or does it need to be edited to reflect the use of the WPDM tagging system?
Thank you!
Thanks so much. I have three follow-up questions:
1) Will this new code prevent me from ever being able to use the category shortcode to only INCLUDE certain tags that fall into that particular category (i.e., only show a particular product that falls under a particular tag and category)? What I mean is with this new code, will I now only have the option of EXCLUDING tags and never be able to INCLUDE tags in the category shortcode?
2) Can this new code be used to exclude certain tagged items from being shown in the archive directory shortcode? Or is it only for excluding tags in the category shortcode?
3) I have come to realize that on some of my category pages I will need the ability to use both an inclusion tag and an exclusion tag simultaneously (e.g., include tag 59, but exclude tag 61 on the same category page). What modifications to the code would be required to allow both the inclusion and exclusion of a tag?
Thanks again for all of your help.
I would also love to see the tag filtering support added to the archive page add-on!
Thanks for updating the code. That did the trick! Works great now.
Thanks. Can you also provide an example of the code that would be needed if I wanted to display everything EXCEPT for those products that are tagged with “plugin”?
Thanks
Sorry… I thought that the updated code you had provided was working properly (https://www.wpdownloadmanager.com/support/topic/differentiating-files-by-membership-level/#post-114375), but it still needs an adjustment. I only want the tag displayed when the minimum required membership level needed to access the package is “Premium” or “Premium Plus”. As of now, it is putting the “Premium” label on a product that only requires a minimum level of “Basic” to access it.
It should be like this:
– Basic Membership (no tag displayed when “Basic” is minimum required membership)
– Premium Membership (display “Premium” tag if “Premium” is minimum required membership level)
– Premium Plus Membership (display “Premium Plus” if “Premium Plus” is minimum required membership level)
Hope that makes sense. Please let me know if you have any questions.
Thanks
Thanks so much. That worked great. I’m also saving the old code here in case I ever need to revert back to showing it for all member levels:
****************************************************************
function wpdm_package_membership_levels($vars){
global $wp_roles;
$roles = array_reverse($wp_roles->role_names);
$membership_levels = get_post_meta($vars[‘ID’],’__wpdm_access’, true);
$role_orders = array( ‘guest’, ‘subscriber’, ‘basic_subscriber’, ‘premium_subscriber’, ‘premium_plus_subscriber’, ‘editor’, ‘administrator’ );
$package_roles = array();
if( in_array(‘guest’, $membership_levels))
$package_roles[] = “Guests”;
foreach( $role_orders as $role ) {
if( in_array($role, $membership_levels ) )
$package_roles[] = $roles[$role];
}
//$vars[‘membership_levels’] = implode(‘, ‘, $package_roles );
$vars[‘membership_levels’] = $package_roles[0];
return $vars;
}
add_filter( ‘wdm_before_fetch_template’, ‘wpdm_package_membership_levels’, 10, 1 );
****************************************************************
I have 2 questions:
1) Can you please elaborate on what you mean when you say the Download Limit Add-on works with free files only?
2) For the pre paid credits option, it is possible to have the number of pre-paid credits reset each month for members, so that it works similar to how the download limit addon works? For example, paid member is given 20 pre-paid credits to use each month? Each month they are automatically given a fresh batch of 20 pre-paid credits to use? Thanks.
Thank you. The CSS worked.
Yes, I only want the tags to be displayed for products that require a Premium or Premium Plus membership level (No tag displayed for Guest level products or Basic level products). Thanks.
Thanks so much for your help with this! The updated code is working great.
I have one additional question:
What tweaks would be needed to the above code if we wanted to exclude the tag label from being shown on products that are under our Basic membership level (basic_subscriber), but still show the tag label for products requiring a Premium membership (premium_subscriber) and Premium Plus membership (premium_plus_subscriber) levels?
I have gone ahead and wrapped the code in my template like this: <div class=”wpdm-tag-label”>[membership_levels]</div>
Thanks again.
Thanks. That worked great. However, once I do CSS change, the page no longer acknowledges that my shortcode is configured for the archive to show 3 columns (it is now displaying it as 4 columns instead of 3 columns). Here is the shortcode that I am using:
[wpdm-archive cat_view=”extended” cols=”3″ button_style=”default” link_template=”5d277d746310d” order_by=”post_title” order=”asc” items_per_page=”12″]
Please advise if additional css changes are needed to have a 25% and 75% configuration and still use 3 columns.