wenjay tew

Forum Replies Created

Viewing 25 posts - 1 through 25 (of 86 total)
in reply to: Email lock approval via email. #201416

wenjay tew
Participant

Hi, i have customize it.. how do i save it so next time when new version update.came up it wont overite it?

in reply to: Email lock approval via email. #201393

wenjay tew
Participant

That will be great .. thanks

in reply to: Email lock approval via email. #201382

wenjay tew
Participant
This reply has been marked as private.
in reply to: Email lock approval via email. #201379

wenjay tew
Participant
This reply has been marked as private.
in reply to: Email lock approval via email. #201368

wenjay tew
Participant

image

look its already there..
wat i mean is I need to get email notified.
where do I set that? i as an admin need to know who downloaded my items.. and get notified so I can come to the subscriber page to approve them for download..

in reply to: Email lock approval via email. #201367

wenjay tew
Participant

I did change to that.. u didnt get my question right

in reply to: Download not getting index by google. #198341

wenjay tew
Participant

Hi i already on it by default .. but stil not getting indexed

https://snipboard.io/KpfD8A.jpg
you may refer this in early message

in reply to: Download not getting index by google. #198328

wenjay tew
Participant
This reply has been marked as private.
in reply to: Download not getting index by google. #198247

wenjay tew
Participant
This reply has been marked as private.
in reply to: Download not getting index by google. #198118

wenjay tew
Participant

which mean if copy then send to people.. they can open but they can’t download it right?

in reply to: Download not getting index by google. #198105

wenjay tew
Participant
This reply has been marked as private.
in reply to: How do i use child theme #193261

wenjay tew
Participant

do you have detailed instructions? i seems not so clear. do you have video instruction?

in reply to: How do i use child theme #193257

wenjay tew
Participant

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?


wenjay tew
Participant

Thanks!


wenjay tew
Participant

<!–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


wenjay tew
Participant
This reply has been marked as private.

wenjay tew
Participant

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

wenjay tew
Participant

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

in reply to: send notification email issue #192731

wenjay tew
Participant

Thanks!

in reply to: send notification email issue #192729

wenjay tew
Participant
This reply has been marked as private.
in reply to: send notification email issue #192725

wenjay tew
Participant
This reply has been marked as private.

wenjay tew
Participant

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.

in reply to: send notification email issue #192719

wenjay tew
Participant
This reply has been marked as private.
in reply to: send notification email issue #192707

wenjay tew
Participant
This reply has been marked as private.

wenjay tew
Participant
This reply has been marked as private.
Viewing 25 posts - 1 through 25 (of 86 total)