Search Results for 'download link'

Viewing 25 results - 1,776 through 1,800 (of 9,349 total)
  • Author
    Search Results
  • #169714

    In reply to: A few questions..


    Lethal Clarke
    Participant

    Hi @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, 2 months ago by Lethal Clarke.
    #169711

    Albert Trevino
    Participant

    That 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”

    #169687

    Ikram Dirujii
    Participant
    This reply has been marked as private.

    Nayeem Riddhi
    Moderator

    Hello Fredrick,

    I have adjusted the font size for your Image Hover Split link-template, from Downloads > Templates > Link-templates > Image Hover Split CSS section. However, for changing the spinner loading image, you can check the loader.svg image from

    wp-content\plugins\download-manager\assets\images\loader.svg directory and replace it as your requirements. please check and let me know.

    Thank you and regards

    #169651

    Archifibe Inc
    Participant

    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…)


    acason
    Participant
    This reply has been marked as private.

    acason
    Participant
    This reply has been marked as private.
    #169567

    Albert Trevino
    Participant

    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.

    #169558

    Nayeem Riddhi
    Moderator

    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


    Electric Mirror
    Participant

    I cannot get the download button link to center. I am frustrated because this should be an easy format. I purchased this product vs the Avada theme download manager because I thought it would still work.

    My test page is: https://www.electricmirror.com/residential-catalog/

    I saw someone else having the same issue and they were told to place this code in the CSS.

    section.__wpdm_gb_section.__wpdm_gb_package {
    text-align: center;
    }

    I put the code on the specific page in the section for code, I also placed it in the Avada custom css section of the dashboard and the child theme of Avada CSS. None worked.

    #169544

    In reply to: Paypal not working


    Juan Gordo
    Participant

    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

    #169520

    Ikram Dirujii
    Participant

    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’>{$fileTitle}</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’>{$fileTitle}</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 .= “{$fileTitle}” . “<div class=’card-body’><strong class=’d-block’>{$fileTitle}<small>” . wpdm_file_size($sfile) . “</small></div><div class=’card-footer’>”;
    } else
    $fhtml .= “{$fileTitle}” . “<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;

    }

    }


    Nayeem Riddhi
    Moderator

    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


    Saugata Roy
    Participant

    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.

    #169416

    In reply to: Unable to update


    Humayon
    Spectator

    Hello @asandage,

    I hope you are well.

    You can acquire your license key by following the below link.

    License

    Thanks

    #169400

    Albert Trevino
    Participant

    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.

    #169282

    Tanvir
    Spectator

    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

    #169278

    Tanvir
    Spectator

    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

    #169191

    Tanvir
    Spectator

    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.

    Short-codes

    Link Template

    Thanks

    #169145

    Susan Gillies
    Participant
    This reply has been marked as private.

    midihead7
    Participant

    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.


    web giraudi
    Participant
    This reply has been marked as private.

    web giraudi
    Participant

    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

    #168978

    Nayeem Riddhi
    Moderator
    This reply has been marked as private.
    #168968

    Nayeem Riddhi
    Moderator

    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

Viewing 25 results - 1,776 through 1,800 (of 9,349 total)