-
AuthorSearch Results
-
Mar 14, 2022 at 12:59 pm #169793
brett polakowskiParticipantThis reply has been marked as private.Mar 14, 2022 at 12:53 pm #169792
brett polakowskiParticipantHello,
We completely re-worked our website with a new theme, look, feel and functionality. We went live yesterday with the site with the intent of making our Downloads page live after the site changed over.When I go to import the csv file from the old site, it shows the ‘Uploading’ progress bar, then ‘Importing 1%’ and never progresses any further.
I’m using Divi theme if that makes a difference. I’ll follow up with a reply with credentials and a link to the csv file in a private message.
Thanks,
BrettMar 13, 2022 at 8:02 am #169727Topic: Template Question
in forum Download Manager Pro
Michael K.ParticipantGood Morning,

https://www.dxf-downloads.de/downloads/neueste-uploads/– On my Linkpage the Downloads were smaller and smaller. Where can I change it.
– And the Thumbs show not correctly. I want to show the width 100%.
– On my Page Template. How can I change the Background to transparent btw. white. Not grey. For example after Uploader “Wolfgang968”
Hope anybody can help me. Thanks a lot.
Regards
Mar 12, 2022 at 10:38 pm #169714In reply to: A few questions..
Lethal ClarkeParticipantHi @Nayeem Riddhi,
I noticed my mistake, I forgot the link/templates folder.
Everything is now more or less how I’d like it (other than the fact downloads still don’t open in a new tab/pop-up and redirect my visitor away from my site to mega.nz).
Final question: How do I use full width on the page-template-default template? It seems to have an empty sidebar “Hot Topics” on the right, I wish to remove this and use full-width so the download’s description isn’t so compact/limited.
I’ve tried WPDM Page Templates but doesn’t work with my theme OceanWP I only have default template (page.php) and Landing Page… my template/theme is set to “Full Width” in settings but Download Manager ignores this as the page isn’t manage by WP (it’s created by Download Manager*).
* If a download “Sample Download” is created via Dashboard > Downloads > Add File the page it creates is mywebsite.com/download/sample-download. The page is handled by Download Manager so isn’t under Dashboard > Pages so i’m unable to set full-width. When I preview the page is Dashboard > Appearance > Customise there is NO sidebar which is telling me Download Manager is adding the sidebar (Hot Topics) itself?
Thanks.
-
This reply was modified 3 years, 11 months ago by
Lethal Clarke.
Mar 12, 2022 at 8:44 pm #169711In reply to: Column Width in Tables not working
Albert TrevinoParticipantThat works for the most part. I do have questions.
How do I do this for the other fields? I just added one called year from a custom field. I couldn’t do it before because nothing was spacing right.
What about the fields that are not from the custom fields? The first and last column for example are directly from the package details. One is the “post_content” and the other is the “download_link”
Mar 12, 2022 at 9:56 am #169687In reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE
Ikram DirujiiParticipantThis reply has been marked as private.Mar 11, 2022 at 6:12 pm #169667
Nayeem RiddhiModeratorHello Fredrick,
I have adjusted the font size for your Image Hover Split link-template, from
Downloads > Templates > Link-templates > Image Hover SplitCSS section. However, for changing the spinner loading image, you can check theloader.svgimage fromwp-content\plugins\download-manager\assets\images\loader.svgdirectory and replace it as your requirements. please check and let me know.Thank you and regards
Mar 11, 2022 at 12:08 pm #169651Topic: Carrousel shortcode not working
in forum Download Manager Pro
Archifibe IncParticipantI installed extended shortcode add-on for caruosel shortcode, to be able to use this shortcode:
[wpdm_carousel items_per_page=4 template=”fresh_card” wrap=0 items_total=12]
But when I try it, i don´t get the fresh_card template like the example who show the featured image of the package.
Do i have to do something more?
Thks
This is your example where it´s aparently working:
https://try.wpdownloadmanager.com/carousels/
(Also note that in this link, there is an error of spelling in caruosel, instead of carousel…)Mar 10, 2022 at 3:41 pm #169599
acasonParticipantThis reply has been marked as private.Mar 9, 2022 at 8:25 pm #169570
acasonParticipantThis reply has been marked as private.Mar 9, 2022 at 7:24 pm #169567Topic: Column Width in Tables not working
in forum Download Manager Pro
Albert TrevinoParticipantI have tried so many different way to get this to work and it doesn’t.
My shortcode:
[wpdm_all_packages
thumb=0
items_per_page="20"
categories="test"
jstable=1
order_by="title"
order="ASC"
cols="post_content|acf_ProductInfo_Artist|acf_ProductInfo_Title|acf_ProductInfo_Version|acf_ProductInfo_BPM|acf_ProductInfo_genre|acf_ProductInfo_Credits|download_link"
colheads="|Artist::5px|Title::10px|Version::500px|BPM::1px|Genre::1px|Credits::1px|Download::1px"]
I tried so many different values and it seems to not work in adjusting any of the column widths. This is why I put a 1px on some of them to see if it would even adjust to that, it doesn’t.
All the columns are evenly spaced.
How do you get this to work properly.
Mar 9, 2022 at 5:30 pm #169558In reply to: Center Download Button Link using Avada Theme
Nayeem RiddhiModeratorHello Adams,
I have checked that, it is not wrapped by any other div for the download link. However, please try with the below code in your theme
Customizer > Additional CSS.wpdm-download-link.btn.btn-primary { width: 40%; margin: 0 auto; display: flex; justify-content: center; }I hope it will be worked properly then. please let me know
Thank you and regards
Mar 9, 2022 at 4:41 pm #169544In reply to: Paypal not working
Juan GordoParticipantyes, same link really, try to purchase the test item https://members.ateb-group.co.uk/download/wpdm-test-3/ and check out still has the dissapearing Paypal window for me in both safari and chrome.
So what solution is suggested then? can you solve whatever conflict is happening? I need both systems to be able to use Paypal if WPDM cant integrate TutorLMS
Mar 9, 2022 at 9:23 am #169520In reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE
Ikram DirujiiParticipantsir, it is giving an error. please i ma sending my PHP file please add the code
`<?php
namespace WPDM\Package;
use WPDM\__\__;
use WPDM\__\Crypt;
use WPDM\__\Session;class FileList
{/**
* @var null Package
*/
private $package = null;function __construct($package = null)
{}
private function fileEntrySimple()
{}
/**
* @usage Callback function for [file_list] tag
* @param $package
* @param bool|false $play_only
* @return string
*/
public static function table($ID, $play_only = false)
{$current_user = wp_get_current_user();
$package = WPDM()->package->init($ID);
$fileinfo = maybe_unserialize(get_post_meta($ID, ‘__wpdm_fileinfo’, true));
if (function_exists(‘wpdmpp_effective_price’) && wpdmpp_effective_price($ID) > 0) return self::premium($ID, $play_only);
$files = maybe_unserialize($package->files);
$permalink = get_permalink($ID);
$sap = strpos($permalink, ‘?’) ? ‘&’ : ‘?’;
$fhtml = ”;
$idvdl = $package->isSingleFileDownloadAllowed();
$pd = $package->avail_date ? strtotime($package->avail_date) : 0;
$xd = $package->expire_date ? strtotime($package->expire_date) : 0;$nodl = $play_only ? ‘style=”display: none”‘ : “”;
$permalink = get_permalink($ID);
$sap = strpos($permalink, ‘?’) ? ‘&’ : ‘?’;
$download_url = $permalink . $sap . “wpdmdl={$ID}”;$cur = is_user_logged_in() ? $current_user->roles : array(‘guest’);
if (($xd > 0 && $xd < time()) || ($pd > 0 && $pd > time())) $idvdl = 0;
$button_label = apply_filters(“single_file_download_link_label”, __(“Download”, “download-manager”), $package);
if (count($files) > 0) {
$pwdlock = (int)get_post_meta($ID, ‘__wpdm_password_lock’, true);
//Check if any other lock option applied for this package
$olock = 0;
$noaccess = 0;$swl = 0;
if ($package->quota <= 0) $package->quota = 9999999999999;
if (is_user_logged_in()) $cur[] = ‘guest’;
if (!$package->userCanDownload()) {
$noaccess = 1;
}
if ($package->isLocked()) {
$olock = 1;
}$pwdcol = $dlcol = ”;
if ($noaccess === 0) {
if ($pwdlock && $idvdl) $pwdcol = “<th>” . __(“Password”, “download-manager”) . “</th>”;
if ($idvdl && ($pwdlock || !$olock)) {
$dlcol = “<th>” . __(“Action”, “download-manager”) . “</th>”;
$swl = 1;
}
}$allfiles = $files;
$cattr = $data = “”;
if (count($allfiles) > 5)
$data = ‘<input placeholder=”‘ . __(“Search File…”, “download-manager”) . ‘” style=”margin:10px 0;border-radius: 0″ type=”search” class=”form-control bg-white wpdm-pack-search-file” data-filelist=”#wpdm-filelist-area-‘ . $ID . ‘” />’;
$fhtml = “<div {$cattr} data-packageid='{$ID}’ id=’wpdm-filelist-area-{$ID}’ class=’wpdm-filelist-area wpdm-filelist-area-{$ID}’ style=’position:relative’>{$data}<table id=’wpdm-filelist-{$ID}’ class=’wpdm-filelist table table-hover’><thead><tr><th>” . __(“File”, “download-manager”) . “</th>{$pwdcol}{$dlcol}</tr></thead><tbody>”;
if (is_array($allfiles)) {
$pc = 0;
foreach ($allfiles as $fileID ► $sfile) {$individual_file_actions = $individual_file_actions_locked = ”;
$individual_file_actions = apply_filters(“individual_file_action”, $individual_file_actions, $ID, $sfile, $fileID);
$individual_file_actions_locked = apply_filters(“individual_file_action_locked”, $individual_file_actions_locked, $ID, $sfile, $fileID);$ind = $fileID; //\WPDM_Crypt::Encrypt($sfile);
$pc++;//if (!isset($fileinfo[$fileID]) || !@is_array($fileinfo[$fileID])) $fileinfo[$fileID] = array();
$filePass = wpdm_valueof($fileinfo, “{$fileID}/password”);
$fileTitle = wpdm_valueof($fileinfo, “{$fileID}/title”);
$fileTitle = $fileTitle ?: preg_replace(“/([0-9]+)_/”, “”, wpdm_basename($sfile));
$fileTitle = wpdm_escs($fileTitle);
$fileVersion = wpdm_valueof($fileinfo, “{$fileID}/version”);
$fileVersion = $fileVersion ? ” — {$fileVersion}” : ”;
$lastUpdate = wpdm_valueof($fileinfo, “{$fileID}/update_date”);
$lastUpdate = $lastUpdate ? ” — Updated on {$lastUpdate}” : ”;if ($swl) {
$mp3 = explode(“.”, $sfile);
$mp3 = end($mp3);
$mp3 = strtolower($mp3);
$play = in_array($mp3, array(‘mp3’)) ? “<i style=’margin-top:0px’ class=’fa fa-play’></i>” : “”;if ($filePass == ” && $pwdlock) $filePass = $package->isPasswordProtected();
$fhtml .= “<tr><td>{$fileTitle}{$fileVersion}{$lastUpdate}</td>”;
$passField = ”;
if ($pwdlock && !$noaccess)
$passField = “<input style=’width:150px’ onkeypress=’jQuery(this).removeClass(\”input-error\”);’ size=10 type=’password’ value=” id=’pass_{$ID}_{$ind}’ placeholder='” . __(“Password”, “download-manager”) . “‘ name=’pass’ class=’form-control input-sm inddlps d-inline-block’ />”;
//$fhtml .= “<td width=’120′ class=’text-right’><input onkeypress=’jQuery(this).removeClass(\”input-error\”);’ size=10 type=’password’ value=” id=’pass_{$ID}_{$ind}’ placeholder='”.__( “Password” , “download-manager” ).”‘ name=’pass’ class=’form-control input-sm inddlps’ /></td>”;
if ($filePass != ” && $pwdlock && !$noaccess)
$fhtml .= “<td style=’white-space: nowrap;text-align: right’>{$passField}<button class=’inddl btn btn-primary btn-sm’ data-pid='{$ID}’ data-file='{$fileID}’ rel='” . $permalink . $sap . “wpdmdl={$ID}” . “&ind=” . $ind . “‘ data-pass=’#pass_{$ID}_{$ind}’><i class=’fa fa-download’></i> ” . $button_label . “</button> {$individual_file_actions}</td></tr>”;
else {
$ind_download_link = “getDownloadURL($ID, array(‘ind’ ► $ind, ‘filename’ ► wp_basename($sfile))) . “‘>” . $button_label . ““;
$ind_download_link = apply_filters(“wpdm_single_file_download_link”, $ind_download_link, $fileID, (array)$package);
$fhtml .= “<td style=’white-space: nowrap;’ class=’text-right’>{$ind_download_link}{$play} {$individual_file_actions}</td></tr>”;
}
} else {
$fhtml .= “<tr><td>{$fileTitle}</td><td style=’white-space: nowrap;’ class=’text-right’>{$individual_file_actions_locked}</td></tr>”;
}
}}
$fhtml .= “</tbody></table></div>”;
$siteurl = home_url(‘/’);}
return $fhtml;
}
/**
* @usage Callback function for [file_list_extended] tag
* @param $package
* @return string
* @usage Generate file list with preview
*/
public static function extended($ID, $w = 88, $h = 88, $cols = 3)
{$current_user = wp_get_current_user();
$package = WPDM()->package->init($ID);
$fileinfo = maybe_unserialize(get_post_meta($ID, ‘__wpdm_fileinfo’, true));
if (function_exists(‘wpdmpp_effective_price’) && wpdmpp_effective_price($ID) > 0) return self::premium($ID);
$files = maybe_unserialize($package->files);
$permalink = get_permalink($ID);
$sap = strpos($permalink, ‘?’) ? ‘&’ : ‘?’;
$fhtml = ”;
$idvdl = WPDM()->package->isSingleFileDownloadAllowed($ID); //isset($package[‘individual_file_download’]) ? $package[‘individual_file_download’] : 0;
$pd = $package->avail_date ? strtotime($package->avail_date) : 0;
$xd = $package->expire_date ? strtotime($package->expire_date) : 0;$cur = is_user_logged_in() ? $current_user->roles : array(‘guest’);
$permalink = get_permalink($ID);
$sap = strpos($permalink, ‘?’) ? ‘&’ : ‘?’;
$download_url = $permalink . $sap . “wpdmdl={$ID}”;Session::set(‘wpdmfilelistcd_’ . $ID, 1);
if (($xd > 0 && $xd < time()) || ($pd > 0 && $pd > time())) $idvdl = 0;
$button_label = apply_filters(“single_file_download_link_label”, __(“Download”, “download-manager”), $package);
if (count($files) > 0) {
$pwdlock = (int)get_post_meta($ID, ‘__wpdm_password_lock’, true);
//Check if any other lock option apllied for this package
$olock = $package->isLocked();$swl = 0;
$package->quota = $package->quota > 0 ?: 9999999999999;
if (is_user_logged_in()) $cur[] = ‘guest’;
//if (!isset($package[‘access’]) || count($package[‘access’]) == 0 || !wpdm_user_has_access($ID) || wpdm_is_download_limit_exceed($ID) || $package[‘quota’] <= $package[‘download_count’]) $olock = 1;if ($idvdl && ($pwdlock || !$olock)) {
$swl = 1;
}$allfiles = $files;
$fhtml = “<div id=’xfilelist’><div class=’row’>”;
if (is_array($allfiles)) {$classes = array(‘1’ ► ‘col-md-12’, ‘2’ ► ‘col-md-6’, ‘3’ ► ‘col-md-4’, ‘4’ ► ‘col-md-3’, ‘6’ ► ‘col-md-2’);
$class = isset($classes[$cols]) ? $classes[$cols] : ‘col-md-4′;foreach ($allfiles as $fileID ► $sfile) {
$fhtml .= “<div class='{$class} col-sm-6 col-xs-6′><div class=’panel panel-default card mb-4’>”;
$ind = $fileID; //\WPDM_Crypt::Encrypt($sfile);$filePass = wpdm_valueof($fileinfo, “{$fileID}/password”);
$fileTitle = wpdm_valueof($fileinfo, “{$fileID}/title”);
$fileTitle = $fileTitle ?: preg_replace(“/([0-9]+)_/”, “”, wpdm_basename($sfile));
$fileTitle = wpdm_escs($fileTitle);if ($filePass == ” && $pwdlock) $filePass = $package[‘password’];
$fhtml .= “<div class=’panel-heading card-header ttip’ title='{$fileTitle}’>{$fileTitle}</div>”;
$imgext = array(‘png’, ‘jpg’, ‘jpeg’, ‘gif’);
$ext = explode(“.”, $sfile);
$ext = end($ext);
$ext = strtolower($ext);
$filepath = file_exists($sfile) || __::is_url($sfile) ? $sfile : UPLOAD_DIR . $sfile;
$thumb = “”;$thumb = WPDM()->package->getThumbnail($ID, $fileID, [$w, $h]);
$cssclass = in_array($ext, $imgext) ? ‘file-thumb wpdm-img-file’ : ‘file-thumb wpdm-file wpdm-file-‘ . $ext;
if ($thumb) {
//$file_thumb_attrs = apply_filters(“”, $file, $fileID, $thumb, $w, $h);
$fhtml .= “<div class=’panel-body card-body text-center’></div><div class=’panel-footer card-footer footer-info’>” . wpdm_file_size($sfile) . “</div><div class=’panel-footer card-footer text-center’>”;
} else
$fhtml .= “<div class=’panel-body card-body text-center’></div><div class=’panel-footer card-footer footer-info text-center’>” . wpdm_file_size($sfile) . “</div><div class=’panel-footer card-footer text-center’>”;
if ($swl) {
if ($filePass != ” && $pwdlock)
$fhtml .= “<div class=’input-group input-group-sm’><input onkeypress=’jQuery(this).removeClass(\”input-error\”);’ size=10 type=’password’ value=” id=’pass_{$ID}_{$ind}’ placeholder=’Password’ name=’pass’ class=’form-control inddlps’ />”;
if ($filePass != ” && $pwdlock)
$fhtml .= “<span class=’input-group-btn input-group-append’><button class=’inddl btn btn-secondary btn-light btn-block’ data-pid='{$ID}’ data-file='{$fileID}’ data-pass=’#pass_{$ID}_{$ind}’><i class=’fas fa-arrow-alt-circle-down’></i></button></span></div>”; //rel='” . $download_url . “&ind=” . $ind . “‘
else {
$ind_download_link = “” . $button_label . ““;
$ind_download_link = apply_filters(“wpdm_single_file_download_link”, $ind_download_link, $fileID, (array)$package);
$individual_file_actions = ”;
$individual_file_actions = apply_filters(“individual_file_action”, $individual_file_actions, $ID, $sfile, $fileID);
$fhtml .= $ind_download_link . ” {$individual_file_actions}”;
}
}$fhtml .= “</div></div></div>”;
}}
$fhtml .= “</div></div>”;
$siteurl = home_url(‘/’);
//$fhtml .= “<script type=’text/javascript’ language=’JavaScript’> jQuery(‘.inddl’).click(function(){ var tis = this; jQuery.post(‘{$siteurl}’,{wpdmfileid:'{$ID}’,wpdmfile:jQuery(this).attr(‘file’),actioninddlpvr:1,filepass:jQuery(jQuery(this).attr(‘pass’)).val()},function(res){ res = res.split(‘|’); var ret = res[1]; if(ret==’error’) jQuery(jQuery(tis).attr(‘pass’)).addClass(‘input-error’); if(ret==’ok’) location.href=jQuery(tis).attr(‘rel’)+’&_wpdmkey=’+res[2];});}); </script> “;}
return $fhtml;
}
/**
* @usage Callback function for [file_list] tag
* @param $package
* @param bool|false $play_only
* @return string
*/
public static function premium($ID, $play_only = false)
{if (!function_exists(‘wpdmpp_effective_price’)) return self::table($ID, $play_only);
$current_user = wp_get_current_user();
$package = WPDM()->package->init($ID);
$files = $package->files;$fileinfo = maybe_unserialize(get_post_meta($ID, ‘__wpdm_fileinfo’, true));
$fhtml = ‘<div class=”list-group premium-files premium-files-‘ . $ID . ‘” id=”premium-files-‘ . $ID . ‘”>’;
$currency = wpdmpp_currency_sign();
if (count($files) > 0) {
$post_id = $ID;
$license_req = get_post_meta($post_id, “__wpdm_enable_license”, true);
$license_pack = get_post_meta($post_id, “__wpdm_license_pack”, true);
//wpdmprecho($license_pack);
$fileinfo = get_post_meta($post_id, ‘__wpdm_fileinfo’, true);
$allfiles = $files;if (is_array($allfiles)) {
$pc = 0;
foreach ($allfiles as $fileID ► $sfile) {$individual_file_actions = ”;
$individual_file_actions = apply_filters(“individual_file_action”, $individual_file_actions, $ID, $sfile, $fileID);
$file_price = isset($fileinfo[$fileID][‘price’]) ? number_format((double)$fileinfo[$fileID][‘price’], 2) : 0;
$ind = $fileID; //\WPDM_Crypt::Encrypt($sfile);
$pc++;$fileTitle = wpdm_valueof($fileinfo, “{$fileID}/title”);
$fileTitle = $fileTitle ?: preg_replace(“/([0-9]+)_/”, “”, wpdm_basename($sfile));
$fileTitle = wpdm_escs($fileTitle);$data = $data_prices = “”;
$pre_licenses = wpdmpp_get_licenses();
$active_lics = array();
$zl = 0;
$file_availabiliy_lic = [];
if ($license_req == 1 && is_array($fileinfo)) {
foreach ($pre_licenses as $licid ► $lic) {
$lic[‘price’] = !isset($fileinfo[$fileID][‘license_price’]) || !isset($fileinfo[$fileID][‘license_price’][$licid]) || $fileinfo[$fileID][‘license_price’][$licid] == ” ? (isset($fileinfo[$fileID][‘price’]) && $zl == 0 ? $fileinfo[$fileID][‘price’] : 0) : $fileinfo[$fileID][‘license_price’][$licid];
$prc = number_format((double)$lic[‘price’], 2);
if ($zl == 0)
$file_price = $prc;
$active_lics[$licid] = $lic;
if ($lic[‘price’] > 0) {
$data .= ” data-{$licid}='{$currency}{$prc}’ “;
$data_prices .= ” data-{$licid}='{$prc}’ “;
}
if (isset($license_pack[$licid])) {
if (in_array($fileID, $license_pack[$licid]))
$file_availabiliy_lic[] = “file_avail-{$licid}”;
} else
$file_availabiliy_lic[] = “file_avail-{$licid}”;
$zl++;
}//if(count($active_lics) <= 1)
// $data = $data_prices = “”;
}$file_availabiliy_lic = implode(” “, $file_availabiliy_lic);
if ($file_price > 0)
$fhtml .= “<label class=’list-group-item eden-checkbox premium-file {$file_availabiliy_lic}’><div {$data} class=’badge badge-default pull-right’>{$currency}{$file_price}</div><input type=’checkbox’ {$data_prices} data-pid='{$ID}’ data-file='{$fileID}’ value='{$file_price}’ class=’wpdm-checkbox file-price file-price-{$ID}’> $fileTitle</label>”;
else
$fhtml .= “<label class=’list-group-item eden-checkbox free-file’>$fileTitle</label>”;}
}
}
return $fhtml . “</div>”;
}
/**
* @usage Callback function for [image_gallery_WxHxC] tag
* @param $package
* @return string
* @usage Generate file list with preview
*/
public static function imageGallery($ID, $w = 400, $h = 400, $cols = 3)
{$current_user = wp_get_current_user();
$package = WPDM()->package->init($ID);
$fileinfo = maybe_unserialize(get_post_meta($ID, ‘__wpdm_fileinfo’, true));
if (function_exists(‘wpdmpp_effective_price’) && wpdmpp_effective_price($ID) > 0) return self::premium($ID);
$files = maybe_unserialize($package->files);
$permalink = get_permalink($ID);
$sap = strpos($permalink, ‘?’) ? ‘&’ : ‘?’;
$fhtml = ”;
$idvdl = WPDM()->package->isSingleFileDownloadAllowed($ID);$pd = $package->avail_date ? strtotime($package->avail_date) : 0;
$xd = $package->expire_date ? strtotime($package->expire_date) : 0;$cur = is_user_logged_in() ? $current_user->roles : array(‘guest’);
$permalink = get_permalink($ID);
$sap = strpos($permalink, ‘?’) ? ‘&’ : ‘?’;
$download_url = $permalink . $sap . “wpdmdl={$ID}”;Session::set(‘wpdmfilelistcd_’ . $ID, 1);
//Publish and expire date check
if (($xd > 0 && $xd < time()) || ($pd > 0 && $pd > time())) $idvdl = 0;$button_label = apply_filters(“single_file_download_link_label”, __(“Download”, “download-manager”), $package);
if (count($files) > 0) {
$pwdlock = (int)get_post_meta($ID, ‘__wpdm_password_lock’, true);
//Check if any other lock option apllied for this package
$olock = $package->isLocked();$swl = 0;
$package->quota = $package->quota > 0 ?: 9999999999999;
if (is_user_logged_in()) $cur[] = ‘guest’;if ($idvdl && ($pwdlock || !$olock)) {
$swl = 1;
}$fhtml = “<div id=’wpdm-image-gallery’><div class=’row’>”;
$classes = array(‘1’ ► ‘col-md-12’, ‘2’ ► ‘col-md-6’, ‘3’ ► ‘col-md-4’, ‘4’ ► ‘col-md-3’, ‘6’ ► ‘col-md-2’);
$class = isset($classes[$cols]) ? $classes[$cols] : ‘col-md-4′;foreach ($files as $fileID ► $sfile) {
$fhtml .= “<div class='{$class} col-sm-6 col-xs-6′><div class=’card mb-4’>”;
$ind = $fileID; //\WPDM_Crypt::Encrypt($sfile);if (!isset($fileinfo[$sfile]) || !@is_array($fileinfo[$sfile])) $fileinfo[$sfile] = array();
if (!@is_array($fileinfo[$fileID])) $fileinfo[$fileID] = array();$filePass = isset($fileinfo[$sfile][‘password’]) ? $fileinfo[$sfile][‘password’] : (isset($fileinfo[$fileID][‘password’]) ? $fileinfo[$fileID][‘password’] : ”);
$fileTitle = isset($fileinfo[$sfile][‘title’]) && $fileinfo[$sfile][‘title’] != ” ? $fileinfo[$sfile][‘title’] : (isset($fileinfo[$fileID][‘title’]) && $fileinfo[$fileID][‘title’] != ” ? $fileinfo[$fileID][‘title’] : preg_replace(“/([0-9]+)_/”, “”, wpdm_basename($sfile)));//$fileTitle = esc_html($fileTitle);
if ($filePass == ” && $pwdlock) $filePass = $package[‘password’];
//$fhtml .= “<div class=’panel-heading card-header ttip’ title='{$fileTitle}’></div>”;
$imgext = array(‘png’, ‘jpg’, ‘jpeg’, ‘gif’);
$ext = explode(“.”, $sfile);
$ext = end($ext);
$ext = strtolower($ext);
$filepath = file_exists($sfile) ? $sfile : UPLOAD_DIR . $sfile;
$thumb = “”;if ($ext == ”) $ext = ‘unknown’;
if (in_array($ext, $imgext))
$thumb = WPDM()->fileSystem->imageThumbnail($filepath, $w, $h, true);
if ($thumb) {
//$file_thumb_attrs = apply_filters(“”, $file, $fileID, $thumb, $w, $h);
$fhtml .= “” . “<div class=’card-body’><strong class=’d-block’>{$fileTitle}<small>” . wpdm_file_size($sfile) . “</small></div><div class=’card-footer’>”;
} else
$fhtml .= “” . “<div class=’card-body’><strong class=’d-block’>{$fileTitle}<small>” . wpdm_file_size($sfile) . “</small></div><div class=’card-footer’>”;
if ($swl) {
if ($filePass != ” && $pwdlock)
$fhtml .= “<div class=’input-group input-group-sm’><input onkeypress=’jQuery(this).removeClass(\”input-error\”);’ size=10 type=’password’ value=” id=’pass_{$ID}_{$ind}’ placeholder=’Password’ name=’pass’ class=’form-control inddlps’ />”;
if ($filePass != ” && $pwdlock)
$fhtml .= “<span class=’input-group-btn input-group-append’><button class=’inddl btn btn-secondary btn-light btn-block’ data-pid='{$ID}’ data-file='{$fileID}’ data-pass=’#pass_{$ID}_{$ind}’><i class=’fas fa-arrow-alt-circle-down’></i></button></span></div>”; //rel='” . $download_url . “&ind=” . $ind . “‘
else {
$ind_download_link = “” . $button_label . ““;
$ind_download_link = apply_filters(“wpdm_single_file_download_link”, $ind_download_link, $fileID, (array)$package);
$individual_file_actions = ”;
$individual_file_actions = apply_filters(“individual_file_action”, $individual_file_actions, $ID, $sfile, $fileID);
$fhtml .= $ind_download_link . ” {$individual_file_actions}”;
}
}$fhtml .= “</div></div></div>”;
}$fhtml .= “</div></div>”;
}
return $fhtml;
}
}
Mar 9, 2022 at 7:32 am #169512
Nayeem RiddhiModeratorHello Saugata,
Can you please let us know, where do you want to show the download links table? if possible please provide some screenshots. And do you want to show in the download links table the packages shared with the user, please let me know.
Thank you and regards
Mar 9, 2022 at 6:27 am #169503
Saugata RoyParticipantHi,
I’d like to display the available download links table in the dashboard itself instead of the user having to navigate to “My Downloads” section. Can this be done?
FYI, I’m comfortable with coding in case any code change is required.
Thanks,
Saugata.Mar 8, 2022 at 4:49 am #169416In reply to: Unable to update
HumayonSpectatorMar 7, 2022 at 6:06 pm #169400Topic: No way to update plugin
in forum Download Manager Pro
Albert TrevinoParticipantI see there is an update available for the main Download Manager plugin. In my WordPress admin side, under plugins, I try to update there. It doesn’t work. I go to my account dashboard here for possible download link. No updated download link there.
Please fix it to actually work.
When you have an update, please allow it to update like it is supposed to or post a link for the updated file somewhere.
Please advise on how to update this.
Mar 6, 2022 at 3:24 pm #169282In reply to: File List Title as Download Link
TanvirSpectatorHello,
With demo it is possible by creating multiple packages for downloads.
However, Could you please check the shortcodes demos in the link I provided and tell me if you like any examples or any particular changes?
Then I could suggest you according to that.
ThanksMar 6, 2022 at 2:56 pm #169278In reply to: Download works only for administrators
TanvirSpectatorHello,
Sorry for the delay because of the weekend.However I found that you used this shortcode.
[wpdm_all_packages login=1 items_per_page="20" order_by="title" order="ASC" cols="title|categories|update_date|download_link" colheads="Titolo|Categoria|Aggiornato Il|"]In this shortcode just remove the parameter
login=1to show downloads without login.However, the cache plugin was causing the issue. I have deactivated that, it fixed the issue with a new subscriber role I created.. In this case, it would be appropriate to make an exception for the wpdm page of the cache plugin or disable/change the cache plugin to recheck the issue.
Thanks
Mar 4, 2022 at 4:41 pm #169191In reply to: File List Title as Download Link
TanvirSpectatorHello,
Hope you are well.
Here the website you shared, he uploaded all the files in a download package then the filelist has made the downloads list. But I am sorry there is no way to edit file list without editing the core files of wpdm.You can also check our shortcodes and link templates for the related lists.
https://www.wpdownloadmanager.com/doc/short-codes/
https://www.wpdownloadmanager.com/doc/templates/link-template/Thanks
Mar 4, 2022 at 4:02 am #169145In reply to: Packages pages are blank
Susan GilliesParticipantThis reply has been marked as private.Mar 2, 2022 at 5:39 pm #169059
midihead7ParticipantI had received an email reply to this thread but it doesn’t show here in this actual thread. This is the reply I received:
Humayon Kabir wrote: Hi there, Auto-install sometimes fails due to auth error or server file permission issue. However, you always can download any add-on fromUser Dashboard
and install. Thanks. Post Link: https://www.wpdownloadmanager.com/support/topic/urgent-wpdm-amazon-s3-3-0-3-conflict-with-updraftplus-1-22-5/#post-168989I didn’t say that auto-install wasn’t working, I said that the Free Add-ons no longer show under Settings > Updates. They used to appear using previous versions of Download Manager but stopped showing in a recent WPDM update. My server permissions have not changed since I started using Download Manager years ago. I am aware that I can download the add-ons directly from my Download Manager account but it is inconvenient since I don’t have any easy way to see if there are any newer add-on updates unless I visit each add-ons page on your site to try to find what the latest version is.
Please also note that when I click the yellow Logout button on the Updates screen, nothing happens and I am not actually logged out.
Mar 2, 2022 at 1:27 pm #169045In reply to: Critical error when clicking on ” download package”
web giraudiParticipantThis reply has been marked as private.Mar 2, 2022 at 11:08 am #169029
web giraudiParticipantHello,
I’ve got a problem with all my packages. On front side when we click on the “download package” button (the one generated by the shortcode [download_link] in template) it shows the WordPress error page with message “There has been a critical error on this website.”, nothing else happen.Here the error line on my PHP log :
2022-03-02 10:55:15 Error 176.148.110.217 500 GET /download/dowload-pdf-version/?wpdmdl=87801&refresh=621f4d0f84ad11646218511 HTTP/1.0
Thank you in advance for your help
-
This reply was modified 3 years, 11 months ago by
-
AuthorSearch Results
Search Results for 'download link'
-
Search Results
-
Hello,
We completely re-worked our website with a new theme, look, feel and functionality. We went live yesterday with the site with the intent of making our Downloads page live after the site changed over.When I go to import the csv file from the old site, it shows the ‘Uploading’ progress bar, then ‘Importing 1%’ and never progresses any further.
I’m using Divi theme if that makes a difference. I’ll follow up with a reply with credentials and a link to the csv file in a private message.
Thanks,
BrettTopic: Template Question
Good Morning,

https://www.dxf-downloads.de/downloads/neueste-uploads/– On my Linkpage the Downloads were smaller and smaller. Where can I change it.
– And the Thumbs show not correctly. I want to show the width 100%.
– On my Page Template. How can I change the Background to transparent btw. white. Not grey. For example after Uploader “Wolfgang968”
Hope anybody can help me. Thanks a lot.
Regards
I installed extended shortcode add-on for caruosel shortcode, to be able to use this shortcode:
[wpdm_carousel items_per_page=4 template=”fresh_card” wrap=0 items_total=12]
But when I try it, i don´t get the fresh_card template like the example who show the featured image of the package.
Do i have to do something more?
Thks
This is your example where it´s aparently working:
https://try.wpdownloadmanager.com/carousels/
(Also note that in this link, there is an error of spelling in caruosel, instead of carousel…)I have tried so many different way to get this to work and it doesn’t.
My shortcode:
[wpdm_all_packages
thumb=0
items_per_page="20"
categories="test"
jstable=1
order_by="title"
order="ASC"
cols="post_content|acf_ProductInfo_Artist|acf_ProductInfo_Title|acf_ProductInfo_Version|acf_ProductInfo_BPM|acf_ProductInfo_genre|acf_ProductInfo_Credits|download_link"
colheads="|Artist::5px|Title::10px|Version::500px|BPM::1px|Genre::1px|Credits::1px|Download::1px"]
I tried so many different values and it seems to not work in adjusting any of the column widths. This is why I put a 1px on some of them to see if it would even adjust to that, it doesn’t.
All the columns are evenly spaced.
How do you get this to work properly.
Topic: No way to update plugin
I see there is an update available for the main Download Manager plugin. In my WordPress admin side, under plugins, I try to update there. It doesn’t work. I go to my account dashboard here for possible download link. No updated download link there.
Please fix it to actually work.
When you have an update, please allow it to update like it is supposed to or post a link for the updated file somewhere.
Please advise on how to update this.
Hello,
I’ve got a problem with all my packages. On front side when we click on the “download package” button (the one generated by the shortcode [download_link] in template) it shows the WordPress error page with message “There has been a critical error on this website.”, nothing else happen.Here the error line on my PHP log :
2022-03-02 10:55:15 Error 176.148.110.217 500 GET /download/dowload-pdf-version/?wpdmdl=87801&refresh=621f4d0f84ad11646218511 HTTP/1.0
Thank you in advance for your help