Ikram Dirujii

Forum Replies Created

Viewing 25 posts - 1 through 25 (of 208 total)
Nov 11, 2022 at 1:52 am
#180288
Participant
Ikram Dirujii
OP

i was expected the same response from you. however plz guide me on how to stop saving files cache data in wp-content/uploads/wpdm-cache

https://uploadnow.io/files/dPBtVtK

Nov 10, 2022 at 5:09 am
#180240
Participant
Ikram Dirujii
OP

also your media-download.php file has malware, please fix this

Oct 17, 2022 at 12:50 pm
#179392
Participant
Ikram Dirujii
OP

Sir nayeem I’m too much disappointed that a person like you are telling that it’s not possible.
It’s a bit work for you ppls if you want. White space removing is not a big deal for a php expert if he really wants to do. I was know the manual solution but it’s not possible for thousands of files Sir. Please help me to remove the white space. Same like if we’ll important files from Cpanel so white space not showing.

Oct 17, 2022 at 8:10 am
#179355
Participant
Ikram Dirujii
OP
This reply has been marked as private.
Oct 14, 2022 at 8:41 am
#179287
Participant
Ikram Dirujii
OP

So it is mean if we will not renew the support so no one will help us? and the wpdm is useless then? it is too much unfair that my request is pending for 3 days, you ppls replying to others but not to my post.

Oct 12, 2022 at 6:38 pm
#179237
Participant
Ikram Dirujii
OP

Please anyone can help me with my problem?

thank you

Oct 11, 2022 at 12:06 pm
#179138
Participant
Ikram Dirujii
OP
This reply has been marked as private.
Sep 26, 2022 at 6:44 am
#178387
Participant
Ikram Dirujii
OP

Sir Tanvir the Download limit is also needed, is this any other solution?

also, there is another Rows creating in wp options tables with the name of something like this (wpdm_ad_user_dlc_..).
and these rows also become in thousands. please help me regarding how to stop these or how to limit these rows.

May 27, 2022 at 11:35 pm
#172592
Participant
Ikram Dirujii
OP

I did Sir

May 8, 2022 at 7:24 am
#171920
Participant
Ikram Dirujii
OP

yes Sir Naeem, Now Everything Is Ok. thank you so much for your time

May 7, 2022 at 12:05 am
#171904
Participant
Ikram Dirujii
OP
This reply has been marked as private.
May 7, 2022 at 12:03 am
#171903
Participant
Ikram Dirujii
OP
This reply has been marked as private.
May 5, 2022 at 10:43 am
#171869
Participant
Ikram Dirujii
OP

ON THE REGISTRATION AND LOGIN PAGE IT IS JUST GOING WAITING AND WAITING. I ALSO DEACTIVATED ALL PLUGINS AND CHECK BUT SAME

YOU CAN CHECK THE REGISTERATION PAGE HERE SIR

May 5, 2022 at 4:41 am
#171857
Participant
Ikram Dirujii
OP
This reply has been marked as private.
Mar 12, 2022 at 9:56 am
#169687
Participant
Ikram Dirujii
OP
This reply has been marked as private.
Mar 11, 2022 at 7:55 pm
#169671
Participant
Ikram Dirujii
OP
This reply has been marked as private.
Mar 11, 2022 at 1:00 pm
#169653
Participant
Ikram Dirujii
OP

RESP SIR, I Am Using 6.0.4 and I Am Happy with That Version Because I Am Using Mostly My Custom Design. so Please Adjust the Code in My Current Version. Also Please Send Me the New Version Changes Lin.

Mar 9, 2022 at 9:23 am
#169520
Participant
Ikram Dirujii
OP

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;

}

}

Mar 8, 2022 at 8:54 am
#169451
Participant
Ikram Dirujii
OP

Thank you Dear Sir Nayeem for Your kind Response.

Nov 14, 2021 at 9:44 pm
#164504
Participant
Ikram Dirujii
OP

Yes Sir if it’s easy for you, so just do it for mobile display. Because on laptop size there is no matter. The problem is on small size screen you can see. Because button and title is on the same inline. So if we’ll move the button from the total line so it will looks good. Same like I draw the design Sir.

I can do almost all design but I can’t change anything on file list design.

Thank you so much.

Nov 13, 2021 at 8:44 pm
#164479
Participant
Ikram Dirujii
OP

Sie Nayeem after checking these all thins I was posted here. unfortunately, it is not working. sir leave this and please give me another favor.

I am using a file list for some of my files all is well but the file list is not looking good on mobile devices when the file name is lengthy. you can see in the below picture. so I want to show the download button below the package title so it would look good. so sir please give a script for that design. I would be very thankful for that.

View post on imgur.com

Nov 12, 2021 at 1:57 pm
#164442
Participant
Ikram Dirujii
OP

Sir Nayeem thanks for your effort. I add the code in the function file but it did not work.

View post on imgur.com

Nov 12, 2021 at 3:48 am
#164423
Participant
Ikram Dirujii
OP

Sir please explain a bit. I didn’t understand

Nov 10, 2021 at 2:15 pm
#164380
Participant
Ikram Dirujii
OP

Sir Nayeem you did not get my point. I already uploaded all the files, and I want to hide that specific string .zip from all of the uploaded files. I know there is an option to rename the file name when we will uploading a new file but I want to hide the .zip string for my already uploaded files.

Nov 2, 2021 at 1:48 pm
#164121
Participant
Ikram Dirujii
OP
This reply has been marked as private.
Viewing 25 posts - 1 through 25 (of 208 total)