MyDownloads
v2.0
Hacks
0 (0 reviews)
201 views
WHEN DEVELOPING A DATALIFE ENGINE SITE I REALIZED THERE WAS NOT A SHORTCODE FOR DISPLAYING THE LOGGED IN USERS AVAILABLE DOWNLOADS OUTSIDE OF THE MY ACCOUNT PAGE. SO I DEVELOPED THIS SIMPLE PLUGIN WHICH ADDS THE SHORT CODE. IT IS SIMPLE AND EFFECTIVE. IT DISPLAYS THE NEWS AND THE FILE NAME IN AN UNORDERED LIST.
<script src=\"https://cdn.jsdelivr.net/npm/sweetalert2@10\"></script>
<script>
$(document).ready(function () {
$(\"#savefile\").submit(function (event) {
event.preventDefault();
$.ajax({
type: $(this).attr(\'method\'),
url: $(this).attr(\'action\'),
dаta: new FormData(this),
contentType: false,
cache: false,
processdаta: false,
success: function (result) {
//alert(result);
json = jQuery.parseJSON(result);
if (json.url) setTimeout(redirect, 2000, json.url);
Swal.fire({
title: json.header,
text: json.message,
icon: json.status,
showConfirmButton: false,
footer: \'<a href=\"/mydownloads.html\">Browse downloaded files</a>\',
});
}
});
});
});
function redirect(url) {
window.location.href = url;
}
</script>
Price
Free
-
Quality assured
-
Free updates
-
Support included
Features
5- Clean Unordered List Output.
- Fully Customizable.
- Lightweight & Fast.
- Secure.
+1 more features
Tags
Hacks
v2.0
Free
Version
v2.0
Category
Hacks
Requirements
No requirements specified.
What is new
Updated to version 2.0
Feb 17, 2026
Released
Oct 20, 2023
License details
License type
Standard license
Delivery
Instant delivery
Updates
Free updates
Support
Support included