-
Search Results
-
Topic: Some more problems
Sorry for all the topics but some other problems seem to pop up.
1. ReCaptcha, most of the times when I want to verify the captcha before downloading I get a message saying it can’t contact recaptcha.
2. I want users to be logged in before they can download, I have these settings, tried to download after logging out and I can download it…

3. I want to display the total amount of files & downloads somewhere on my site is there a shortcode somewhere or how could I do this?
4. WPDM Color Box Plugin, It would be nice if you could just use the keyboard arrows to navigate instead of having to close and open every image.
5. The User Level on the user-dashboard is empty, what is this supposed to show? The current user role?
6. user-dashboard pages have dissapeared, I can access the dashboard but once I click ‘Download History’ ‘Edit Profile’ or Log Out it say’s the page isn’t found? All files are still there just checked. *Fixed, Restored a earlier page revision and it seems to work again now.
Topic: Parse Error
Hi-
I just updated my downloads manager plugin and received this error: “Plugin could not be activated because it triggered a fatal error. Parse error: syntax error, unexpected T_STRING in /home/content/72/4997172/html/thefashionprofessor/wp-content/plugins/download-manager/download-manager.php on line 12”Not sure what to do – my clients cannot receive any of their downloads. Please help.
Thank you –
Dinna
————————–<?php
/*
Plugin Name: Download Manager
Plugin URI: http://www.wpdownloadmanager.com/purchases/
Description: Manage, Protect and Track File Downloads from your WordPress site
Author: Shaon
Version: 2.8.92
Author URI: http://www.wpdownloadmanager.com/
*/namespace WPDM;
if(!isset($_SESSION))
@session_start();define(‘WPDM_Version’,’2.8.92′);
$content_dir = str_replace(‘\\’,’/’,WP_CONTENT_DIR);
define(‘WPDM_ADMIN_CAP’,’manage_options’);
define(‘WPDM_MENU_ACCESS_CAP’,’manage_options’);
define(‘WPDM_BASE_DIR’,dirname(__FILE__).’/’);
define(‘WPDM_BASE_URL’,plugins_url(‘/download-manager/’));
define(‘UPLOAD_DIR’,$content_dir.’/uploads/download-manager-files/’);
define(‘WPDM_CACHE_DIR’,dirname(__FILE__).’/cache/’);
define(‘_DEL_DIR’,$content_dir.’/uploads/download-manager-files’);
define(‘UPLOAD_BASE’,$content_dir.’/uploads/’);
include_once(dirname(__FILE__) . “/wpdm-functions.php”);
include(dirname(__FILE__).”/wpdm-core.php”);
ini_set(‘upload_tmp_dir’,UPLOAD_DIR.’/cache/’);
if(!$_POST) $_SESSION[‘download’] = 0;
class WordPressDownloadManager{
function __construct(){
register_activation_hook(__FILE__, array($this, ‘Install’));
add_action( ‘init’, array($this, ‘registerPostTypeTaxonomy’), 1 );
add_action( ‘plugins_loaded’, array($this, ‘LoadTextdomain’) );
add_action( ‘wp_enqueue_scripts’, array($this, ‘EnqueueScripts’) );add_action( ‘wp_head’, array($this, ‘wpHead’) );
add_action( ‘wp_footer’, array($this, ‘wpFooter’) );spl_autoload_register( array( $this, ‘AutoLoad’ ) );
new \WPDM\libs\UserDashboard();
new \WPDM\libs\Apply();
new \WPDM\admin\WordPressDownloadManagerAdmin();
new \WPDM\libs\ShortCodes();}
/**
* @usage Install Plugin
*/
function Install(){
global $wpdb;delete_option(‘wpdm_latest’);
$sqls[] = “CREATE TABLE IF NOT EXISTS
{$wpdb->prefix}ahm_download_stats(
idint(11) NOT NULL AUTO_INCREMENT,
pidint(11) NOT NULL,
uidint(11) NOT NULL,
oidvarchar(100) NOT NULL,
yearint(4) NOT NULL,
monthint(2) NOT NULL,
dayint(2) NOT NULL,
timestampint(11) NOT NULL,
ipvarchar(20) NOT NULL,
PRIMARY KEY (id)
)”;$sqls[] = “CREATE TABLE IF NOT EXISTS
{$wpdb->prefix}ahm_emails(
idint(11) NOT NULL AUTO_INCREMENT,
emailvarchar(255) NOT NULL,
pidint(11) NOT NULL,
dateint(11) NOT NULL,
custom_datatext NOT NULL,
request_statusINT( 1 ) NOT NULL,
PRIMARY KEY (id)
)”;require_once(ABSPATH . ‘wp-admin/includes/upgrade.php’);
foreach($sqls as $sql){
//$wpdb->query($sql);
dbDelta($sql);
}$this->RegisterPostTypeTaxonomy();
flush_rewrite_rules();
self::CreateDir();}
/**
* @usage Load Plugin Text Domain
*/
function loadTextdomain(){
load_plugin_textdomain(‘wpdmpro’, WP_PLUGIN_URL . “/download-manager/languages/”, ‘download-manager/languages/’);
}/**
* @usage Register WPDM Post Type and Taxonomy
*/
public function registerPostTypeTaxonomy()
{
$labels = array(
‘name’ ► __(‘Downloads’, ‘wpdmpro’),
‘singular_name’ ► __(‘File’, ‘wpdmpro’),
‘add_new’ ► __(‘Add New’, ‘wpdmpro’),
‘add_new_item’ ► __(‘Add New File’, ‘wpdmpro’),
‘edit_item’ ► __(‘Edit File’, ‘wpdmpro’),
‘new_item’ ► __(‘New File’, ‘wpdmpro’),
‘all_items’ ► __(‘All Files’, ‘wpdmpro’),
‘view_item’ ► __(‘View File’, ‘wpdmpro’),
‘search_items’ ► __(‘Search Files’, ‘wpdmpro’),
‘not_found’ ► __(‘No File Found’, ‘wpdmpro’),
‘not_found_in_trash’ ► __(‘No Files found in Trash’, ‘wpdmpro’),
‘parent_item_colon’ ► ”,
‘menu_name’ ► __(‘Downloads’, ‘wpdmpro’));
$args = array(
‘labels’ ► $labels,
‘public’ ► true,
‘publicly_queryable’ ► get_option(‘__wpdm_publicly_queryable’, 1),
‘show_ui’ ► true,
‘show_in_menu’ ► true,
‘show_in_nav_menus’ ► true,
‘query_var’ ► true,
‘rewrite’ ► array(‘slug’ ► ‘download’, ‘with_front’ ► (bool)get_option(‘__wpdm_purl_with_front’, false)), //get_option(‘__wpdm_purl_base’,’download’)
‘capability_type’ ► ‘post’,
‘has_archive’ ► (get_option(‘__wpdm_has_archive’, false)==false?false:sanitize_title(get_option(‘__wpdm_archive_page_slug’, ‘all-downloads’))),
‘hierarchical’ ► false,
‘taxonomies’ ► array(‘post_tag’),
‘menu_icon’ ► ‘dashicons-download’,
‘exclude_from_search’ ► (bool)get_option(‘__wpdm_exclude_from_search’, false),
‘supports’ ► array(‘title’, ‘editor’, ‘publicize’, ‘excerpt’, ‘custom-fields’, ‘thumbnail’, ‘tags’, ‘comments’,’author’));
register_post_type(‘wpdmpro’, $args);
$labels = array(
‘name’ ► __(‘Categories’, ‘wpdmpro’),
‘singular_name’ ► __(‘Category’, ‘wpdmpro’),
‘search_items’ ► __(‘Search Categories’, ‘wpdmpro’),
‘all_items’ ► __(‘All Categories’, ‘wpdmpro’),
‘parent_item’ ► __(‘Parent Category’, ‘wpdmpro’),
‘parent_item_colon’ ► __(‘Parent Category:’, ‘wpdmpro’),
‘edit_item’ ► __(‘Edit Category’, ‘wpdmpro’),
‘update_item’ ► __(‘Update Category’, ‘wpdmpro’),
‘add_new_item’ ► __(‘Add New Category’, ‘wpdmpro’),
‘new_item_name’ ► __(‘New Category Name’, ‘wpdmpro’),
‘menu_name’ ► __(‘Categories’, ‘wpdmpro’),
);$args = array(
‘hierarchical’ ► true,
‘labels’ ► $labels,
‘show_ui’ ► true,
‘show_admin_column’ ► true,
‘query_var’ ► true,
‘rewrite’ ► array(‘slug’ ► ‘download-category’),
);register_taxonomy(‘wpdmcategory’, array(‘wpdmpro’), $args);
}
/**
* @usage Create upload dir
*/
public static function createDir()
{
if (!file_exists(UPLOAD_BASE)) {
@mkdir(UPLOAD_BASE, 0755);
}
@chmod(UPLOAD_BASE, 0755);
@mkdir(UPLOAD_DIR, 0755);
@chmod(UPLOAD_DIR, 0755);
self::setHtaccess();
if (isset($_GET[‘re’]) && $_GET[‘re’] == 1) {
if (file_exists(UPLOAD_DIR)) $s = 1;
else $s = 0;
echo “<script>
location.href='{$_SERVER[‘HTTP_REFERER’]}&success={$s}’;
</script>”;
die();
}
}/**
* @usage Protect Download Dir using .htaccess rules
*/
public static function setHtaccess()
{
\WPDM\FileSystem::blockHTTPAccess(UPLOAD_DIR);
}/**
* @usage Enqueue all styles and scripts
*/
function enqueueScripts()
{
global $post;wp_enqueue_script(‘jquery’);
wp_enqueue_script(‘jquery-form’);$wpdmss = maybe_unserialize(get_option(‘__wpdm_disable_scripts’, array()));
//if((is_object($post) && has_shortcode($post->post_content,’wpdm_frontend’)) || get_post_type()==’wpdmpro’ )
if (!in_array(‘wpdm-font-awesome’, $wpdmss))
wp_enqueue_style(‘font-awesome’, WPDM_BASE_URL.’assets/font-awesome/css/font-awesome.min.css’);if(is_object($post) && ( has_shortcode($post->post_content,’wpdm_frontend’) || has_shortcode($post->post_content,’wpdm-package-form’) || has_shortcode($post->post_content,’wpdm_user_dashboard’) || has_shortcode($post->post_content,’wpdm-file-browser’) ) ){
wp_enqueue_script(‘jquery-ui’);
wp_enqueue_script(‘jquery-ui-datepicker’);
wp_enqueue_script(‘thickbox’);
wp_enqueue_style(‘thickbox’);
wp_enqueue_script(‘media-upload’);
wp_enqueue_media();
}if(get_post_type()==’wpdmpro’ && is_single()){
wp_enqueue_script(‘wpdm-datatable’, plugins_url(‘/download-manager/assets/js/jquery.dataTables.min.js’), array(‘jquery’));
}if (!in_array(‘wpdm-bootstrap-css’, $wpdmss))
wp_enqueue_style(‘wpdm-bootstrap’, plugins_url(‘/download-manager/assets/bootstrap/css/bootstrap.css’));wp_enqueue_style(‘wpdm-front’, plugins_url() . ‘/download-manager/assets/css/front.css’);
if (!in_array(‘wpdm-bootstrap-js’, $wpdmss))
wp_enqueue_script(‘wpdm-bootstrap’, plugins_url(‘/download-manager/assets/bootstrap/js/bootstrap.min.js’), array(‘jquery’));wp_enqueue_script(‘frontjs’, plugins_url(‘/download-manager/assets/js/front.js’), array(‘jquery’));
wp_enqueue_script(‘jquery-choosen’, plugins_url(‘/download-manager/assets/js/chosen.jquery.min.js’), array(‘jquery’));
//wp_enqueue_style(‘choosen-css’, plugins_url(‘/download-manager/assets/css/chosen.css’), 999999);}
/**
* @usage insert code in wp head
*/
function wpHead(){
?><script>
var wpdm_site_url = ‘<?php echo site_url(‘/’); ?>’;
var wpdm_home_url = ‘<?php echo home_url(‘/’); ?>’;
var ajax_url = ‘<?php echo admin_url(‘admin-ajax.php’); ?>’;
</script><?php
}/**
* @usage insert code in wp footer
*/
function wpFooter(){
if(is_single()&&get_post_type()==’wpdmpro’){
?>
<script>
jQuery(function($){
$.get(‘<?php echo ‘index.php?_nonce=’.wp_create_nonce(‘__wpdm_view_count’).’&id=’.get_the_ID(); ?>’);
});
</script>
<?php
}
}/**
* @param $name
* @usage Class autoloader
*/
function AutoLoad($name) {
$name = str_replace(“WPDM_”,””, $name);
$name = str_replace(“WPDM\\”,””, $name);
$relative_path = str_replace(“\\”, “/”, $name);
$parts = explode(“\\”, $name);
$class_file = end($parts);
if(file_exists(WPDM_BASE_DIR.”libs/class.{$name}.php”)){
require_once WPDM_BASE_DIR.”libs/class.{$name}.php”;
} else if(file_exists(WPDM_BASE_DIR.str_replace($class_file, ‘class.’.$class_file.’.php’, $relative_path))){
require_once WPDM_BASE_DIR.str_replace($class_file, ‘class.’.$class_file.’.php’, $relative_path);
}
}}
new \WPDM\WordPressDownloadManager();
Topic: Not Functioning Properly
There are a few issues that we are experiencing, maybe they are all related.
First, the file upload button will not allow me to upload any files. It appends something to the end of the URL, but never loads the uploader.
Second, when I want to select members it won’t load any of the users that are already on my site…I can type, but it doesn’t load like in your video.
Third, when I use [wpdm_my_downloads] after purchase of the add-on, it shows all files when I am not logged in, even those some were set to different roles.
I am on the most current version of WordPress.
I have a Downloads page set up with multiple categories and it’s displaying a nested Log In form for each, which is destroying the look of the page (and of course, shouldn’t be there)
http://www.fortex.co.uk/downloads/
Would you be able to tell me what’s happening here? All of the files have ‘All Visitors’ selected in the ‘Allow Access’ section.
Hello,
The search results page is showing ‘No download found!’ whenever I search the term ‘icon’. If I submit a blank search, it shows all downloads.
Please help.
Thanks.
Hello! I’m in need of some advice about displaying videos in a modal.
I am using WPDM Pro. I have some attachments that have a corresponding video. The video does not need to be downloaded by the end user, but I would like for the user to be able to easily view it when they download the file.
I don’t have any trouble doing this when the Link Template takes the user to a Page Template to view and download. The embedded video in the “description” field works just fine.
However, my preferred method (in use for all other downloads) is to use the [popup_link] shortcode in my Link Template. So the information about the download pops up in a modal window which contains some details about the file, and a download link. This way, the user never leaves the page or gets confused about navigation.
My challenge is that the embedded video does not work in the modal window.
The modal seems to be “basic HTML” only, so I get links and minor formatting. But so far, all my attempts to embed video just display the link to the video as plain text. If I upload the video to the media library, I get basically a screenshot from the video in the modal…there is no way to play the video.
I would like the video to actually be embedded and play in the modal, so the user can watch it and also download the attached file at the same time, without leaving the page.
Do you know of a way to make that work?
Topic: WPDM Newsletter
Hi
I have just purchased WPDM Newsletter to help me notify Subscribers when updates to to a package are available however It doesn’t work as I expected.
http://www.wpdownloadmanager.com/doc/post-subscription/ – This page talks about “Pressing Submit” however there is no such thing?
I have noticed that there are two levels of “Subscribers”. If a user visits my site and downloads a package that has an email lock, then they will appear as a “Subscriber” under Downloads > Subscribers. However, they do not appears in Campaign > Subscribers. I’m aware that you can “Import Registered Users” but visitors to my site are not registering. They are simply providing their email to access the download.
In an ideal world, when I used the feature “Send Message To Subscriber” it would send a message to those that are contained within Downloads > Subscribers. It would also actually have a submit button!
Help!
Topic: Paging in Download Lists
Hi,
I am using different list formats for indicating downloads (http://silicon.software/know-how/downloads/, Tabs “Recent Downloads” and “Search Downloads”). One is generated by the short-code generator, using “wpdm_packages”, the other one with “wpdm-archive”. Both are using a paging (paging=”1″) at the bottom of the page.
Both short-codes are using a different paging style (icon and words for previous and next, size of fonts) and also have a different bahaviour, even they are following CSS modifications.Functionally the paging version of the “wpdm-archive” short-code is working correctly: the list with the next hits is displayed, a “loading” button appears for a short time.
The paging function in “wpdm_packages” is not working at all with me. The mouse-over displays a correct link (copied to new windows, the list is displayed correctly), but there is no execution of the link.If it is possible to use the working paging function from “wpdm-archive” in “wpdm_packages”, it would be helpful for me.
Maybe you have a work-around.Best regards,
MichaelI have installed OK, but when i insert the shortcode to a page, although it generates a list of the package files with individual download buttons when I click them, I get a pop up as follows:
“You have chosen to open
[blank line]
which is: Plain Text Document (0 bytes)”Also I cannot find where to change the individual file list download buttons.
I have the image button plugin and that works for the package button on the link and on the page, but does not allow me to change the individual files download button.
Topic: All download links broken
Hi, I started getting messages yesterday that my downloads were not working. I saw that I needed to update my subscription, and I did so, deleting/reinstalling the plugin, but the links are all still broken. I’m using Download Manager Pro 4.5.4. I can send my specific website and pages, if needed. Please help!
Hi
After the update today, which did solve the bulk import to some degree, it stopped importing after the 9th zip file. All of which are just zipped images in folders so nothing over 2MB.
Secondly, the error keeps appearing and stopping me doing anything now.
Call to undefined function remove_meta_box() in /xxxxx/xxxxxx/xxxxxx/wp-content/themes/akita/framework/admin/functions/general.php on line 128
Now I know you will say its the theme, but its only started after update of downloads manager 4.5.4. I have listed the error with the theme creator also, but any ideas on both.
This is now running on a live site, so I would expect this has been tested to the hilt when released. As I find the odd spelling mistake or errors appear. I like may others have paid in excess of $200 for the plugin and expect it to run, not create problems.
thanks
i set the downloadspeed from all roles to 20 kb/s but the downloads still run full speed
solved
as i have read in the changelog after installing new version there was written that the downloads can be locked with a reCAPTCHA to prevent bots to download.
I can’t find such a setting?after update this morgning to 4.5.4. all singe file downloads are broken.
Links to single file look like
http://www.nowload.de/details/another-reminder-1-2-2/?wpdmdl=677&ind=am39f2R-ZHFMTs_g9jLnhayYB85JrFgWEoFn7hBi_80bTMtQbb6Peuv-ctJ8wY3_uZVyXQzEfBBhDe274Nhcw46MTqQ9OeCBanDekU__hAGkF9IMj9XV1APDmanihzF3FpoCyCto26hKLjCaGxcUjAChrome browser gives the following answer, please see screenshot.
Firefox starts a download of a file named “EhqU9NYc.txt” with 0 Bytes.
Please fix this Bug quick.
Hi,
After the latest plugin update, i noticed that the packages I created using the “Attach Dir” option dont work.
These packages are mp3 files.When i click on “Download”, i get a blank page.
When i click on the “play” triangle, nothing happen.I turned on the console (by pressing F12 in Chrome), and found out that when i click play, i get an error 500 internal server error.
However, all other types of downloads are working (for example when i attach a file to a download package).
Is there something that can be done in this?
Here are some example for the non working packages using “Attach Dir”:
http://coptic-treasures.com/wp/download/%d8%b3%d9%84%d8%b3%d9%84%d8%a9-%d8%b9%d8%b8%d8%a7%d8%aa-%d8%b9%d9%86-%d8%a7%d9%84%d8%b5%d9%88%d9%85_%d8%a7%d9%84%d9%82%d9%85%d8%b5-%d8%aa%d8%a7%d8%af%d8%b1%d8%b3-%d9%8a%d8%b9%d9%82%d9%88%d8%a8-%d9%85/and
Here is an example of a WORKING package, where i used “Attach File” option:
and
thanks