Ikram Dirujii

Forum Replies Created

Viewing 25 posts - 1 through 25 (of 208 total)
in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #180288

Ikram Dirujii
Participant

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

in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #180240

Ikram Dirujii
Participant

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

in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #179392

Ikram Dirujii
Participant

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.

in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #179355

Ikram Dirujii
Participant
This reply has been marked as private.
in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #179287

Ikram Dirujii
Participant

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.

in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #179237

Ikram Dirujii
Participant

Please anyone can help me with my problem?

thank you

in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #179138

Ikram Dirujii
Participant
This reply has been marked as private.
in reply to: wpdm_reset_time table #178387

Ikram Dirujii
Participant

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.


Ikram Dirujii
Participant

I did Sir


Ikram Dirujii
Participant

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


Ikram Dirujii
Participant
This reply has been marked as private.

Ikram Dirujii
Participant
This reply has been marked as private.

Ikram Dirujii
Participant

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


Ikram Dirujii
Participant
This reply has been marked as private.
in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #169687

Ikram Dirujii
Participant
This reply has been marked as private.
in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #169671

Ikram Dirujii
Participant
This reply has been marked as private.
in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #169653

Ikram Dirujii
Participant

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.

in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #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;

}

}

in reply to: DEAR WPDM TEAM NEED YOUR HELP PLEASE #169451

Ikram Dirujii
Participant

Thank you Dear Sir Nayeem for Your kind Response.

in reply to: Want to Hide a Specific String from Package Titles #164504

Ikram Dirujii
Participant

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.

in reply to: Want to Hide a Specific String from Package Titles #164479

Ikram Dirujii
Participant

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

in reply to: Want to Hide a Specific String from Package Titles #164442

Ikram Dirujii
Participant

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

View post on imgur.com

in reply to: Want to Hide a Specific String from Package Titles #164423

Ikram Dirujii
Participant

Sir please explain a bit. I didn’t understand

in reply to: Want to Hide a Specific String from Package Titles #164380

Ikram Dirujii
Participant

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.

in reply to: WPDM PRO CREATING PROBLEMS IN GOOGLE SEARCH ENGINE #164121

Ikram Dirujii
Participant
This reply has been marked as private.
Viewing 25 posts - 1 through 25 (of 208 total)