Edukid

Forum Replies Created

Viewing 25 posts - 1 through 25 (of 27 total)
Jul 30, 2021 at 3:50 pm
#158693
Participant
Edukid
OP

Anything happening on this? Thx

Jul 30, 2021 at 3:49 pm
#158692
Participant
Edukid
OP

So it works with one way of adding files, but not the other. That’s still 50% not working. I created a patch that seems to work for me with http attachments. Could you check it out and consider adding to the plugin?

Index: src/Package/FileList.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Package/FileList.php b/src/Package/FileList.php
--- a/src/Package/FileList.php	
+++ b/src/Package/FileList.php	(date 1627659974653)
@@ -222,7 +222,8 @@
                 $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) {
+                foreach ($allfiles as $fileID ► $sfile1) {
+                    $sfile = wpdm_is_url($sfile1) ? get_attached_file($fileID) : $sfile1; // for files added as https get file from the FID
                     $fhtml .= "<div class='{$class} col-sm-6 col-xs-6'><div class='panel panel-default card mb-4'>";
                     $ind = $fileID; //\WPDM_Crypt::Encrypt($sfile);
 
Jul 28, 2021 at 12:48 pm
#158499
Participant
Edukid
OP
This reply has been marked as private.
Jul 28, 2021 at 12:47 pm
#158498
Participant
Edukid
OP
This reply has been marked as private.
Jul 27, 2021 at 12:49 pm
#158399
Participant
Edukid
OP

The download button worked now, thanks.

Jul 27, 2021 at 10:06 am
#158391
Participant
Edukid
OP
This reply has been marked as private.
Jul 26, 2021 at 1:13 pm
#158287
Participant
Edukid
OP

Thanks but tags only help if the underlying php code works.
e.g. file size won’t work if file_size() function fails – which it does for the reason stated above.
Did you change the package definition structure from paths to URLs, or is there something strange about our site?

Jul 23, 2021 at 4:29 pm
#158145
Participant
Edukid
OP

It seems be caused by files being passed as URLs to php functions that expect paths e.g. file_size(), file_exists().

Jul 22, 2021 at 3:41 pm
#158079
Participant
Edukid
OP

Bump! (As I said it’s not working on the staging site.)

Jul 18, 2021 at 6:19 pm
#157795
Participant
Edukid
OP
This reply has been marked as private.
Jul 15, 2021 at 3:06 pm
#157585
Participant
Edukid
OP

Thanks. So why is it still saying 0.00?

Jul 15, 2021 at 3:04 pm
#157584
Participant
Edukid
OP
This reply has been marked as private.
Jul 15, 2021 at 3:04 pm
#157583
Participant
Edukid
OP
This reply has been marked as private.
Jul 15, 2021 at 2:48 pm
#157580
Participant
Edukid
OP

Oh… Is package size not automatically calculated?

Jul 15, 2021 at 2:46 pm
#157579
Participant
Edukid
OP
This reply has been marked as private.
Jul 15, 2021 at 12:31 pm
#157561
Participant
Edukid
OP

Thanks, but my problem hasn’t been resolved, I’ve just made a workaround. Please would you help with a proper fix?

Jul 15, 2021 at 11:51 am
#157555
Participant
Edukid
OP

I’ve patched it

`Index: src/__/FileSystem.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff –git a/src/__/FileSystem.php b/src/__/FileSystem.php
— a/src/__/FileSystem.php (date 1626349466779)
+++ b/src/__/FileSystem.php (date 1626349466779)
@@ -260,8 +260,8 @@
if ($zip->open($zipped, \ZIPARCHIVE::CREATE) !== TRUE) {
return false;
}
– foreach ($files as $file) {
– $file = trim($file);
+ foreach ($files as $fid ► $file) {
+ $file = get_attached_file($fid);
$filename = wp_basename($file);
$file = WPDM()->fileSystem->absPath($file);
/*if (file_exists(UPLOAD_DIR . $file)) {

Jul 15, 2021 at 11:35 am
#157553
Participant
Edukid
OP

I can see code in FileSystem::zipFiles() that’s passing URLs of files to ZipArchive::addFile(), but I think it expects a file path? The result is each addFile fails and the created zip is empty.

Jul 15, 2021 at 11:12 am
#157551
Participant
Edukid
OP

To clarify:
If I click “Download” on individual files it works.
If I click “Download” button for the package I download a 0-length zip.

Feb 16, 2021 at 6:15 pm
#146805
Participant
Edukid
OP

I’m also having trouble with this update. Is it possible to update the plugin in place, or do I need to download the zip from your site and upload manually?

Dec 14, 2020 at 10:25 am
#142932
Participant
Edukid
OP

U was a bit slow to understand there. but it fixed it.

This is what I did:
1 Go to “Downloads” + “Settings” in admin menu
2 Click “License” tab on left.
3 Click “Save settings”

Thanks!

Nov 30, 2020 at 3:46 pm
#141909
Participant
Edukid
OP

More or less… My requirements are: exclude/prevent the count of downloading the packages BY my staff from the download-stats

Nov 30, 2020 at 3:13 pm
#141905
Participant
Edukid
OP
This reply has been marked as private.
Nov 30, 2020 at 1:10 pm
#141893
Participant
Edukid
OP

Let me explain the problem again.

The good bit: I can see the download stats, e.g. who is downloading, which downloads are most popular etc.
No problem there.

However the stats are misleading; I am only interested in downloads done by customers, but the stats also include downloads done by our staff. If a member of staff (with role editor) downloads a document from the website I do not want that increment the download count for that document.

Does that make sense?

Nov 30, 2020 at 11:26 am
#141872
Participant
Edukid
OP

Your questions dinner make sense. I honestly don’t know if you have understand my question!

Viewing 25 posts - 1 through 25 (of 27 total)