Hey there Shaon,
I was working on integrating my script fully into my copy of WPDM and ran into an issue. I’ve been trying to debug but haven’t traced the issue yet.
After testing my script on their own separate pages, and liking how it worked, I decided to see if I could integrate it into my copy of WPDM.
first I did this, this worked just fine:
/*///////////////////////////////////////////////////////////////
//in: list-files.php
+:
[replaces][div class="button-group"](near line 119 w/ applied source formatting)
creates a new button for "Refresh Package" on the Download Package Management back-end page, and inserts a line break () in button-group div
so that all the buttons fit in the table cell
//////////////////////////////////////////////////////////////*/
<a class="button" href="admin.php?page=file-manager&task=RefreshPackage&id=" style="color: #90F">Refresh Package
<a class="button" href="admin.php?page=file-manager&task=EditPackage&id=">Edit
<a class="button" href="admin.php?page=file-manager/add-new-package&clone=" style="color: #336699">Clone
<a class="button" target="_blank" href='' style="color: #005500">View
<a href="admin.php?page=file-manager&task=DeleteFile&id=" class="button submitdelete" style="color: #cc0000" rel=" " title="Permanently">Delete
/*///////////////////////////////////////////////////////////////
But then, I changed wpdm.php to include a new action of “refreshpackage()”.
I just copied EditPackage(), and renamed the function. I intended on testing my newly created Refresh Package button by having it include a new .php file with my script in it. I hadn’t set it up to pass variables yet, that was next.
/*///////////////////////////////////////////////////////////////
//in: wpdm.php
+:
[appended][fuction RefreshPackage()](added near line 409 w/ applied source formatting)
adds function for "Refresh Package" button to refresh the package's item
//////////////////////////////////////////////////////////////*/
function RefreshPackage(){
global $wpdb, $current_user;
get_currentuserinfo();
$cond_uid = wpdm_multi_user()&&!wpdm_is_custom_admin()?"and uid='{$current_user->ID}'":"";
$id = $_GET['id'];
$table_name = "{$wpdb->prefix}ahm_files";
$file = $wpdb->get_row("SELECT * FROM {$table_name} WHERE `id` = {$id} $cond_uid", ARRAY_A);
if(!$file[id]) {
$error = "Sorry, You don't have permission to edit that file!";
include("error-page.php");
return;
}
include('refreshremotepackage.php');
}
The first commit worked just fine. But after the second commit, and placing the refreshremotepackage.php file, suddenly my Downloads menu for WPDM is gone. I have attempted reinstalling with a fresh download from your site, and repairing my DB. I inspected my DB tables too, but couldn’t find anything amiss. Any ideas? Something with licensing perhaps?
I had the FREE version, deleted it, downloaded, installed and activated the pro version but the ‘downloads’ directory does not show up as indicated in your demo. Luckily I had not closed another browser where my old installation of download mgr free was, I clicked on the file mgr tab and it allowed me to put in the license code for the pro version. That’s the last I have seen of the program. Deactivated the plugin, activated again,
still nothing. Tried all 4 browsers.
Hi, i did buy the Pro Version + alot of Plugin’s.
here is a list of my Problems.
1. I did a translation with the .po File.
After a day of Translation i found out that still alot of stuff will be displayed in english.
Is this a known problem ?
2. When i Display the Archive-Page it doesn’t show the ICON’s of the choosen content inside the Categorie
seems like somethink wrong with the ICON Adress.
Right now it is :
https://download.medidok.net/index.php/alle-downloads/%3Cimg%20width=48%20class=’wpdm_icon’%20align=’left’%20src=’https://download.medidok.net/wp4mddown/wp-content/plugins/download-manager/file-type-icons/download2.png’%20/%3E
If i open a Categorie by the Widget
3.
I Ordered first the Pro Version with Plugin and then i Ordered again the speed Control Plugin
what Key should i use? I have 2 key’s now.
When i look inside my account here it doesn’t have a domain ?! normal ?
4. I had Problems with the permalink structure
The Site is https://download.medidok.net
The content is https://download.medidok.net/wp4mddown/
I had to change the Startsite inside WP to https://download.medidok.net/index.php
After that i could use /%postname%/ inside permalink settings.
Beside that i did change inside download-manager/modules/ the file canonical-url.php
under function wpdm_flat_url
i did change every .site_url to .home_url
I’m note sure if that was really needed but i’ve done it to get it working
I’m Using IIS7.5 and WP3.51 on php 5.3.21 (Fast-CGI)
hopefully i can get some help here
my client would like to add checkboxes to the listing template and a button that allows selected files to be downloaded (either as one zip file or individually, if possible).
any ideas if that’s feasible?
thanks
I have some install applications that I need to have hosted on the site. I FTP the files onto the server, and set up the package for the download. When anyone tries to download on of the files it gives them a zero length file and nothing really downloads. I need to get this fixed ASAP. We just released a new version and now I have no way to get it to my customers for upgrades.
the button seems to work and a file downloads but there are no files in the zip when I try and unzip it
We will not be selling any files for the foreseeable future, however I’ve moved us from WordPress Download Monitor and I need to still have one page where: folks can search for all documents/files, they can visually see all grouped by the categories…AND I want to be able to have them download more than one file at a time. It would seem like a need the Premium Addon for the shopping cart feature to do multiple downloads, however does that also give the view of all the files grouped by category or where the user can filter them…or do I have to also buy the Directory Add-on for that? This feature here: http://nthouses.ee/kvaliteet-ja-sertifikaadid/
Thanks!
Hi there,
I’m moving my site onto a different server – same domain. At the moment, it’s reachable via IP address and we’re testing the site using the hosts file on individual PC’s. However, the downloads and archive page don’t seem to be working – I’m assuming that it’s a licensing thing as it’s not technically on the same domain any more; is this the case?
However, I can’t switch the domains over until the client has seen the site working. Given this, is it possible to add a temporary licence for a week pointed at an IP address?
Thanks,
Angela
Hello I am facing a problem with Daily Downloads. Everything seems to work great but the only problem is that the maximum number of downloads per day doesnt function and everybody gets the daily-download-limit.txt file.
Is there a way to fix this and give my members to download the minimum of files everyday? The maximum files allowed for download are 2 and it doesnt work.
Please help me.
Hi,
I just purchased this after being impressed by the free version but now having so many problems with PRO version. I’ve uploaded the file and everything but when I want to download it downloads a file called ‘fie not found.txt’.
Had such high hopes for this plugin but really disappointed now.
If I set:
Allow only ‘Editor’ and upper level users to administrate this plugin
Multi-User ‘Disabled’
then Downloads does not appear for Editors.
If I set:
Allow only ‘Editor’ and upper level users to administrate this plugin
Multi-User ‘Enabled’
then Downloads does appear for Editors but they can’t see packages that an Administrator has added.
Is there a way to let Editors manage packages that administrators have added?