Hi there,
This works. It solves the problem, but it creates a new issue. Now the icons aren’t appearing in the way they used to. Here is my template code. I’m wanting the icon to act as a link to the document. Can you please help me out? Please note you still have access to the site. Thanks!
<div class=”media”>
[icon]
<div class=”media-body”>
<h4 class=”media-heading” style=”padding-top: 0px;border:0px;margin: 0px;”>
[title]
</h4>
<div class = “file-size wrapper”><p class = “file-size”>[file_size] </p></div>
</div>
</div>
Hi there,
Trying to denote what is and what isn’t premium content by adding a star to the title via font awesome or an image and both ways are being stripped from the code below. Is there a trick to this? Or is there a way to add a differentiating icon of sorts to certain downloads perhaps based on category?
<div class=”media”>
[icon]
<i class=”fa fa-star” title=”Premium Lynx Content”></i>
<div class=”media-body”>
<h4 class=”media-heading” style=”padding-top: 0px;border:0px;margin: 0px;”>[page_link]</h4>
<div class=”dm-exerpt”>[excerpt_150] </div>
</div>
</div>
[version]
Hello,
I am only selling 1 product, is it possible to “pre fill” the cart page? I know that I can use an url like this to fill the cart:
http://www.mywebsite.com/?add_to_cart=643&quantity=1
Is there something similar when I use a shortcode? This exactly: [wpdmpp_cart]
Thanks.
Please check the answers in the same order,
1 ) Column title for the URL/files is files
2 ) Not possible yet from core importer ( will add support soon ). Currently requires advanced CSV importer https://www.wpdownloadmanager.com/download/advanced-csv-importer/
3 ) Column title is individual_file_download
and value for global is -1
4 ) Column title is cache_zip
and value for global is -1
5,6 ) Requires advanced CSV importer https://www.wpdownloadmanager.com/download/advanced-csv-importer/
7 ) Not possible yet.
Thanks.
Hi there,
In a recent update, a client’s document library seemed to break.
Instead of pulling up the file linked with the package, [download_url] pulls up a generic, empty file called “download-manager-file.”
We can solve this problem by making any minor modification to the package and saving it. Then the package works as expected.
You can see the issue at work on this page. https://wanewamericans.org/additional-citizenship-resources/#. Click on Citizenship Day fliers then click on Samples of completed N-648s – For medical providers
I’m making this request on behalf of my client. Please email your response to eric@shew-design.com.
Thank you!
The preview was messed up by Animate Lazy Load WordPress Plugin. It was replacing the preview icon URL. I have disabled it, the preview is working now.
Added custom CSS to change the badge background color.
Hi,
Looks like there are some CSS conflicts with your theme or another plugin. Could you please send me the page URL to suggest required CSS to fix this? Or just send wp-admin login info in private reply. I will add required CSS in theme option or theme’s stye.css file.
Thanks.
You can add custom CSS to change the colors.
Here is the required CSS to change the white text color. Adjust the color code to match your style.
#inp { color: #f00; }
If you want to change any other color please send me the page URL and let me know which ones.
Hi
I purchaced WPDM Pro and WPDM Accordion plugin in order to display some pdf files to out site visitors
We use DIVI theme from elegant Themes
The accordion shortcode either generic or generated by tinymce addon are not working.
If i change the theme to Twenty Seventeen , WPDM Accordion addon works as it should (with basic CSS formating of course)
Can you please help to solve this issue?
url https://experts2web.gr/%CE%AD%CE%BD%CF%84%CF%85%CF%80%CE%BF-%CF%85%CE%BB%CE%B9%CE%BA%CF%8C/
(The site is in Greek Language but in WPDM Packages the Title is hybrid (englisg/Greek))
Please send me the URL to check. I will suggest required CSS that you can add to change download link color. You can also use Image Button add-on to show beautiful download buttons instead of just links.
Looks like new uploads and newly created packages aren’t allowing file upload at all when looking for the file in FTP.
On this page: https://cls.welsrc.net/download-cls/general-documents/
Now, when adding a NEW file to a download package, both URLS
now appear as FILE-NOT-FOUND.txt (37 bytes)
File added: Purchasing Center Fee Schedule
Backend Link Icon URL –
https://cls.welsrc.net?wpdmdl=3106&ind=1530107725720
Frontend Download button URL –
https://cls.welsrc.net/download-cls/general-documents/?wpdmdl=3106&ind=1530107725720
I cleared cache both WPDM and Server – no difference.
I reset server file permissions – no difference.
Existing file uploads work just fine. Example of…
Exisiting File: Thoughts of Faith Newsletter
Frontend:
https://cls.welsrc.net/download-cls/general-documents/?wpdmdl=3106&ind=1523374274611
Backend:
https://cls.welsrc.net?wpdmdl=3106&ind=1523374274611
Looking at the file via FTP, the file doesn’t exist. I tried uploading a file as admin and it did not upload to the dir /wp-content/uploads/download-manager-files/
The file size is 131 KB and the WPDM Upload Setting limit is 1024KB chunk size.
I tried uploading on one of the other sub sites (technology) and had the same outcome.
Next, I created a new download package and that also had the same outcome.
It is possible but requires plugin customization. Add the following code after line 26 to get the category icon. Then include the variable as shown in the screenshot ( marked 2 )
$category_obj = get_term($term->term_id);
$category_metadata = maybe_unserialize( get_option( "__wpdmcategory" ) );
$category_image_url = isset( $category_metadata[ $category_obj->term_id ][ 'icon' ] ) ? $category_metadata[ $category_obj->term_id ][ 'icon' ] : '';
$cat_icon = $category_image_url != '' ? '
' : '';
https://www.evernote.com/l/AUe5midDEhlM47lbBsgABfOpNQyeBWS5F_MB/image.png
If you want to keep your changes unaffected by plugin update then copy the customized file and place it in /active-theme/download-manager/
directory.
Hi,
It is possible to keep the package download button open in the same session once the package is unlocked. You can add the following code after line 193 in /download-manager/libs/class.PackageLocks.php
to apply it,
if( isset( $_SESSION[ '_wpdm_unlocked_'.$package['ID'] ] ) == 1 ) {
$download_url = \WPDM\Package::expirableDownloadLink( $package['ID'] );
$link_label = get_post_meta($package['ID'], '__wpdm_link_label', true);
$link_label = trim($link_label) != '' ? $link_label : __('Download', 'wpdmpro');
$data = "";
}
But it will require very lengthy modification to unlock single file links. For now, use this modification. We will consider what you proposed for the future release of WPDM.
Thanks.
I downloaded the pro version yesterday.
I can’t seem to attach files to a package.
Dragging files to the “Drop files here” doesn’t add the file to the “Attached Files” list, and using the “Select Files” button allows me to browse to a file, but selecting the file also does not add it to the Attached Files list.
The “Browse” tab is empty.
I can add a URL to the Attached Files list, but doing so still doesn’t allow a user to download the file.
How can I get this basic functionality to work, please?
Hi Matt,
Thanks for choosing Download Manager.
About the logout issue, Where does it redirect now? I have to check your installation to find where the issue is coming from. Please send temporary wp-admin login in private reply.
Or
You can add the following code in your theme’s functions.php file to redirect logged out users to the Homepage,
add_action('wp_logout', 'wpdm_logout_redirect');
function wpdm_logout_redirect(){
wp_redirect(home_url(""));
exit();
}
Best regards.
Setting up guest order page is pretty simple. Create a page and place this shortcode there [wpdmpp_guest_orders]
To add this guest order page URL in your purchase confirmation email you have to edit the purchase-confirmation
template from Downloads Templates Email Template page. Replace the [#order_url#]
with the guest order page link and that’s it.
After payment is made PayPal redirects the user to the return URL you set on Premium Package PayPal settings. We will check this issue before the next update of the add-on.
Please add the following code to your theme’s functions.php file and use [wpdm_download_tags cols="4" icon="tag" btnstyle="default"]
shortcode to show the custom download tag created by the code I posted above.
add_shortcode( 'wpdm_download_tags', 'wpdm_download_tags');
function wpdm_download_tags($params = array()){
global $wpdb;
@extract($params);
$parent = isset($parent)?$parent:0;
$args = array(
'orderby' ► 'name',
'order' ► 'ASC',
'hide_empty' ► false,
'exclude' ► array(),
'exclude_tree' ► array(),
'include' ► array(),
'number' ► '',
'fields' ► 'all',
'slug' ► '',
'parent' ► $parent,
'hierarchical' ► true,
'child_of' ► 0,
'get' ► '',
'name__like' ► '',
'pad_counts' ► false,
'offset' ► '',
'search' ► '',
'cache_domain' ► 'core'
);
$categories = get_terms('download-tag',$args);
$pluginsurl = plugins_url();
$cols = isset($cols)&&$cols>0?$cols:2;
$scols = intval(12/$cols);
$icon = isset($icon)?"":"";
$btnstyle = isset($btnstyle)?$btnstyle:'success';
$k = 0;
$html = "";
foreach($categories as $id►$category){
$catlink = get_term_link($category);
if($category->parent==$parent) {
$ccount = $category->count;
if(isset($showcount)&&$showcount) $count = " ($ccount)";
$html .= "";
$k++;
}
}
$html .= "
";
if($k==0) $html = '';
return "".str_replace(array("\r","\n"),"",$html)."
";
}
You need to add those CSS codes to custom CSS option with theme customizer. Please give me the URL to suggest your required CSS changes, you can also add temporary wp-admin login info in a private reply if you want me to adjust it for you.
Hi Shahriar, theme looking good!
These are probably easy to do, but not sure how to:
1. Homepage: “Explore Categories” text is slightly cut off at the top and bottom.
2. Members (Customers) logged in page: Can you please disable the Toolbar when customers are logged into their dashboard i.e. automatically uncheck the “Show Toolbar when viewing site” for all new subscribers (customers).
3. Contact page – no map or form showing – can we please show these.
https://www.creativeonlinepublishing.com/contact/
I have added the variables to the “contact us” customise section.
– Do I need to add a separate form plugin (Ninja forms or similar)
4. Stripe works well; Paypal is not returning automatically to merchant:
I’ve Set Paypal IPN:
Current settings
Notification URL https://www.creativeonlinepublishing.com/?action=wpdmpp-payment-notification&class=Paypal
Message delivery Enabled
Many thanks 🙂
Please check now. The issue is actually coming from your editor plugin. When you are entering edit mode your plugin is not calling the wp_head but enqueuing all frontend scripts from other plugins. So, some files are missing the required variable initialization.
However, I have added the following code in /wpdm-premium-packages/assets/js/wpdmpp-front.js
to handle this situation,
if(wpdmpp_base_url == undefined ) var wpdmpp_base_url = '';
This reply has been marked as private.
This reply has been marked as private.
Please add the following code to the bottom of your active theme’s functions.php file to redirect users to the homepage,
add_action('wp_logout', 'wpdm_logout_redirect');
function wpdm_logout_redirect(){
wp_redirect(home_url(""));
exit();
}
Please add the following text to your robots.txt
User-agent: *
Disallow: /*?wpdmtask=get_downloads
That would block any URL with ?wpdmtask=get_downloads
from being indexed by a crawler.