Hi, i have customize it.. how do i save it so next time when new version update.came up it wont overite it?
That will be great .. thanks
I did change to that.. u didnt get my question right
Hi i already on it by default .. but stil not getting indexed
https://snipboard.io/KpfD8A.jpg
you may refer this in early message
which mean if copy then send to people.. they can open but they can’t download it right?
do you have detailed instructions? i seems not so clear. do you have video instruction?
plugins/wpdm-advanced-access-control/tpls/wpdm-my-downloads.php
im doing customization on wpdm-my-downloads.php (my downloads page) also known as: udb_page=my-downloads
plugin: Advance access control add-on
i changed a lot of things on the “wpdm-my-downloads” page, and i was scared when there was an update, it would be lost after the update replaced my customization.
how do I keep my changes after the update of the plugin?
i have added in child theme it doesnt work when i change the code on child theme. you can refer to screenshot above.
is there a proper way to do it?
Thanks!
<!–Eddited by Wenjay to change to float–>
<?php
$file_size = wpdm_package_size($file->ID); // Assuming this function returns the file size with units (KB or MB)
$file_size_int = intval($file_size); // Convert the file size to an integer
if (strpos($file_size, ‘MB’) !== false) {
// If the file size contains ‘MB’, concatenate ‘MB’ to the integer value
$file_size_display = $file_size_int . ‘ MB’;
} elseif (strpos($file_size, ‘KB’) !== false) {
// If the file size contains ‘KB’, concatenate ‘KB’ to the integer value
$file_size_display = $file_size_int . ‘ KB’;
} else {
// If the file size doesn’t contain either ‘MB’ or ‘KB’, just display the integer value
$file_size_display = $file_size_int;
}
?>
<td class=”file-size” style=”width: 10%;text-align: right”><?php echo $file_size_display; ?></td>
<!–Eddited by Wenjay to change to float–>
i change the code to inside wpdm-my-download it seems work<
is this the correct way? not sure it would damage amything
Hi this code works on file package page,
but unfortunately. it doesn’t change the filesize to int on the user dashboard – my downloads page.
https://pasteboard.co/83yNLjlXfFZi.png
i have modified the code to work for my downloads page. it doesnt seems works well… why?
here’s my modification.
add_filter("wdm_before_fetch_template", function ($vars, $template, $type) {
$vars['package_size'] = explode(" ", $vars['package_size']);
$vars['wpdm_package_size'][0] = (int)$vars['wpdm_package_size'][0];
$vars['file'] = $vars['package_size'] = implode(" ", $vars['package_size']);
return $vars;
}, 10, 3);
any ideal how do i changed it with a filter to paste on fucntion.php
could you provide me the code to paste on it. so it would change all size to KB as a default without decimal point and as a whole digit.
im stuck with it. ๐ pls help me
Thanks!
i cant be setting it 1 by 1.. i have left it to auto detect. thats becus our files are all changes overtime.
is there posible to leave it auto update when any files has change.