Marketing NSW

Forum Replies Created

Viewing 25 posts - 1 through 25 (of 86 total)
Nov 14, 2024 at 2:46 am
#201416
Participant
Marketing NSW
OP

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

Nov 13, 2024 at 12:29 pm
#201393
Participant
Marketing NSW
OP

That will be great .. thanks

Nov 13, 2024 at 11:09 am
#201382
Participant
Marketing NSW
OP
This reply has been marked as private.
Nov 13, 2024 at 10:43 am
#201379
Participant
Marketing NSW
OP
This reply has been marked as private.
Nov 13, 2024 at 9:09 am
#201368
Participant
Marketing NSW
OP

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..

Nov 13, 2024 at 9:04 am
#201367
Participant
Marketing NSW
OP

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

Aug 27, 2024 at 5:59 am
#198341
Participant
Marketing NSW
OP

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

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

Aug 27, 2024 at 2:31 am
#198328
Participant
Marketing NSW
OP
This reply has been marked as private.
Aug 23, 2024 at 2:43 am
#198247
Participant
Marketing NSW
OP
This reply has been marked as private.
Aug 19, 2024 at 10:07 am
#198118
Participant
Marketing NSW
OP

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

Aug 19, 2024 at 6:07 am
#198105
Participant
Marketing NSW
OP
This reply has been marked as private.
Feb 22, 2024 at 11:04 am
#193261
Participant
Marketing NSW
OP

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

Feb 22, 2024 at 10:06 am
#193257
Participant
Marketing NSW
OP

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?

Feb 6, 2024 at 10:32 am
#192905
Participant
Marketing NSW
OP

Thanks!

Feb 6, 2024 at 10:27 am
#192903
Participant
Marketing NSW
OP

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

Feb 6, 2024 at 2:32 am
#192883
Participant
Marketing NSW
OP
This reply has been marked as private.
Feb 2, 2024 at 3:32 am
#192804
Participant
Marketing NSW
OP

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);
Feb 1, 2024 at 10:23 am
#192787
Participant
Marketing NSW
OP

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

Jan 30, 2024 at 10:52 am
#192731
Participant
Marketing NSW
OP

Thanks!

Jan 30, 2024 at 10:43 am
#192729
Participant
Marketing NSW
OP
This reply has been marked as private.
Jan 30, 2024 at 9:52 am
#192725
Participant
Marketing NSW
OP
This reply has been marked as private.
Jan 30, 2024 at 9:40 am
#192724
Participant
Marketing NSW
OP

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.

Jan 30, 2024 at 8:33 am
#192719
Participant
Marketing NSW
OP
This reply has been marked as private.
Jan 30, 2024 at 2:02 am
#192707
Participant
Marketing NSW
OP
This reply has been marked as private.
Jan 29, 2024 at 11:14 am
#192698
Participant
Marketing NSW
OP
This reply has been marked as private.
Viewing 25 posts - 1 through 25 (of 86 total)