1) Targhet blan for download
I try to edit single-wpdmpro
<div class=”pull-right qdl”>
<?php echo $pack[‘download_link’]; ?>
</div>
But i can’t set targhet blank
2) Related download don’t work
For ex http://basikaraokegratis.com/download/adriano-celentano-yuppi-du-midi/
Artist are Adriano celentano but related download are bruno martino
http://basikaraokegratis.com/download/bobby-solo-non-si-cresce-mai-ft-little-tony-midi/
Related bruno martino
New file: http://basikaraokegratis.com/download/eros-ramazzotti-fuoco-nel-fuoco-midi/
no related download
3 Change home
are possible have a right sidebar?
I want show only tilte, are possible? (see image)
I believe I have identified a bug of long standing in the WPDM Directory add-on (aka the wpdm-archive-page plugin) code. I have a local development copy of a site that uses WordPress Download Manager Pro plus several add-on plugins, including WPDM Directory. The site root is set up in PhpStorm as the project root because I am also doing feature updates to a couple of custom plugins. One of the other uses of this site, and what I have been concentrating on first, was to get the version of WPDM Pro updated from the old (and hacked by a previous developer) WPDM Pro version 4.2.2 up to the current release plus update the installed WPDM Pro add-ons that are equally out of date.
In the course of testing the WPDM updates, I came across the bug in question. It was triggered by going to the WPDM Pro settings page in the back end. I always keep tabs on the error_log files, especially when updating plugins, in case something is not working properly – aside from it being a good practice – and found the following warning and call stack:
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP Warning: Invalid argument supplied for foreach() in /home/xxxxxx/public_html/wp-content/plugins/wpdm-archive-page/wpdm-archive-page.php on line 590, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP Stack trace:, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 1. {main}() /home/xxxxxx/public_html/wp-admin/edit.php:0, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 2. require_once() /home/xxxxxx/public_html/wp-admin/edit.php:10, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 3. do_action() /home/xxxxxx/public_html/wp-admin/admin.php:222, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 4. call_user_func_array:{/home/xxxxxx/public_html/wp-includes/plugin.php:524}() /home/xxxxxx/public_html/wp-includes/plugin.php:524, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 5. WPDM\\admin\\menus\\Settings->UI() /home/xxxxxx/public_html/wp-includes/plugin.php:524, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 6. include() /home/xxxxxx/public_html/wp-content/plugins/download-manager/admin/menus/class.Settings.php:37, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 7. call_user_func:{/home/xxxxxx/public_html/wp-content/plugins/download-manager/admin/tpls/settings.php:26}() /home/xxxxxx/public_html/wp-content/plugins/download-manager/admin/tpls/settings.php:26, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 8. WPDM\\admin\\menus\\Settings->Basic() /home/xxxxxx/public_html/wp-content/plugins/download-manager/admin/tpls/settings.php:26, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 9. include() /home/xxxxxx/public_html/wp-content/plugins/download-manager/admin/menus/class.Settings.php:126, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 10. do_action() /home/xxxxxx/public_html/wp-content/plugins/download-manager/admin/tpls/settings/basic.php:341, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 11. call_user_func_array:{/home/xxxxxx/public_html/wp-includes/plugin.php:524}() /home/xxxxxx/public_html/wp-includes/plugin.php:524, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
2016-09-08 17:03:03 192.168.22.196 mod_fcgid: stderr: PHP 12. WPDM_ArchivePage->LinkTemplateOption() /home/xxxxxx/public_html/wp-includes/plugin.php:524, referer: http://xxxxxxxx.xxx/wp-admin/?sucuriscan_lastlogin=1
The above has been redacted.
Looking at line 590 ad a couple of lines prior, in the wpdm-archive-page.php, one finds the following code:
$templates = unserialize(get_option("_fm_link_templates",true));
foreach($templates as $id►$template) {...
A search of the options table turns up nothing for that option. I tried forcing an update in the WPDM settings panel by changing the select list value from Default and saving, still no option. I ran a scan of all of the site files and there are calls to get_option, but never any update_option or add_option call.
The only problem is, the option table value: _fm_link_templates.
The version of the add-on is the latest, 2.8.3. Since I still have a staging site that is a copy of the live site, I checked there. The add-on version on the staging and live sites is 2.4.2. Scanning the error logs for those sites shows the same bug was indeed present at least as far back as that version of the WPDM Directory plugin. A different line number of course, but the same code fragment.
I am using the Pro version on a Multisite install on localhost, activated on one site only.
If I load the Frontend page (created without a parent) using the shortcode [wpdm_frontend] in a normal WP page, it loads OK and shows existing uploaded files in a list.
– When I click the download icon it correctly takes me to the file and its meta-info
– But when I click the Edit Package icon though I get a 404 error at this URL:
http://localhost/folder_name/site_name/docs-upload/edit-package/401/
/folder_name/ is a replacement for what I actually call the folder it is installed in.
/site_name/ is a replacement for the Site Name
‘docs_upload’ is what the page name is where I have used the shortcode.
I have correctly set the page name in the Admin section for ‘Frontend Uploader Page’
I’ve tried emptying the cache in Safari and I have tried logging in in Chrome as well, same issue.
Thanks.
Hi,
If I create a page and enter the short code [wpdf_frontend] I get to see the upload page and, if I click ‘Add New’, I get to a page that allows me to upload a file.
If however I code a php template file to be used for the page and use the code do_shortcode(‘[wpdm_frontend]‘) … the ‘Add New’ link returns a 404 error.
Closest link I found was here but it hasn’t solved things:
Thanks.
Hi,
Currently I have the Download Manager Pro set up. I have the login page working properly, however I do not want people to register themselves. I have set up a live form (from you guys) and have all the required fields I want a person to register. My issue is though, how do I set the link of the page where I have the live form as my registration link, than the form already provided.
So I have set up the correct page but it says registrations are disabled. I am assuming this is because I have set my wordpress to not allow people to register themselves. My question is, can we add a link or code to your registration page to go to the form we want.
Alternatively, if this is not allowed, how do we disable the register tab?
The link I want people to register at is http://www.policiesrus.com.au/client-registration/ and the client login is http://www.policiesrus.com.au/client-log-in/
Regards,
Phillip