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.
Hello 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
yes, 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
sir, 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;
}
}
Hello 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
Hi,
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.
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,
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.
Thanks
Hello,
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=1
to 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
Hello,
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.
Thanks
I 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 from
User 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-168989
I 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.
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
Hello Nibby,
I have checked that, the download is working fine for your shared package. Here used download_link_extended
template tag. and it does not occur in pop-up/modal for downloading files. please let me know
Thank you and regards
Hi,
As I said I am using the Attire theme, there should not be a conflict Attire is built to work with WPDM.
As mentioned the message button works fine when you access the profile with url: profile/?profile=usernamehere
But when accessing via author/usernamehere/ the message link does not work.
I have only WPDM plugins running and this is still an issue.
I have viewed the page source I can see that this code is missing from the /author/usernamehere/ page.
<div class="row">
<div class="col-md-12 pt-4" id="wpdm-profile-contents">
</div>
</div>
<div class="modal" tabindex="-1" role="dialog" id="wpdm-ppm">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header bg-light">
<h5 class="modal-title p-0 m-0">Send Private Message</h5>
</div>
<form class="form" role="form" method="post" id="messageform" autocomplete="off">
<div class="modal-body">
<input type="hidden" name="__send_to" value="xPGiGpGHT_eEsZeqenXZjgpu8v1JPYf7OHmhaP-4UI4mmU_bGS5gRPB4k09ugxS4FlXKxvjXA6C9mTHYcciekw" />
<div class="form-group">
<input type="text" placeholder="Subject" name="subject" class="form-control input-lg" required />
</div>
<div class="form-group mb-0">
<textarea placeholder="Write Your Message" class="form-control" name="message" id="message"></textarea>
</div>
</div>
<div class="modal-footer bg-light">
<button type="submit" class="btn btn-primary"><i class="fas fa-paper-plane"></i> Send Message</button>
</div>
</form>
</div>
</div>
</div>
So this would explain why it is not working..
I followed these instructions, steps 1 and 2 so why does it not work?
Do I need to complete 3-6 even if I am using the Attire theme?
If so please explain step 5 to me, as the DIR’s mentioned do not exist.
* user-profile dir
* plugins/download-mamager/tpls
Both do not exist…
I cannot provide admin access as site is running localhost till I have finished removing bugs and it is ready.
Please help.
Thanks.
Hi,
I am using the attire theme, when viewing a profile using this link type: http://demo.wpdownloadmanager.com/wpdmpro/profile/?profile=admin the private message button works.
When using /author/username the button does not work.
I have followed this from the link you sent.
Note for theme developers:
If you want to use this shortcode in WordPress native author page ( ...site-url/author/username/ ), please follow the steps:
Create author.php inside you theme dir
Instead of regular loop use following code:
<?php echo do_shortcode('[wpdm_user_profile template="link-template-id" items_per_page=12]'); ?>
@humayon
these are the codes i use
[wpdm_search_result init=1 template="buscador_web" cols=1 items_per_page="80" cols="title,file_count,download_count|categories|update_date|download_link"]
[wpdm_archive_compact template=”buscador_web” order_by=”post_title” order=”ASC” items_per_page=”12″ cols=2]
Yes I used the customization service for the issue. It was the following topic and here is the link to it. All of the notes where wiped out though:
By Nov 18: Auto-generated Membership Change Email