Another thing I tried. Go to the Packages menu and check the Email notification inside a single WPDM Package Post and save the post. That doesn’t work too. No email, nothing.
Plus, I don’t want to check every single post for notifications. I will use notifications on all WPDM posts.
Tried that but it seems I can’t write PHP code to the templates. It just strips the PHP code. Even a simple echo won’t work. I need to fix thumb tags from the source. Because they aren’t being resized or not using pre-resized images. Everytime just pulls the main full size image.
Thans Shaon, will try this now. Though there was a second problem, thumb tag wasn’t resizing the image. I put a thumb tag for 60×60 but the image was showing in full size.
Edit: I guess thumb for 60×60 is not working because it is not one of the thums created by my theme? I should enter a number that is prepared thumbnail image before?
The problem here is this:
Users who will upload the files only have certain permissions. They can only access Posts. They have no way to access New Package Menu and also they want to make their jobs very fast. So even if they had permission going through different menus, they won’t do that.
It has to be done from same place where they create their posts. So TinyMCE button is very useful here but lacking for me.
I wish you guys will put it on the to-do list at least some easy things like “Version”, “Description” field etc..
In the meantime i will try to write custom code in TinyMCE area.
I see, thanks Shaon. If I don’t use the shortcodes, then they won’t give me any problem.
Unfortunately that plugin is very expensive. Nearly the price of the original Pro plugin. So this is not an option for me.
One other option coming to mind that you can remove every other template from the filesystem.
I see, that’s too bad. So a custom code will be required after every update.
There is a function for that in WP but problem is normally WP uses the awful Gravatars and you can disable it in UM and make use of local avatars. get_avatar_url function doesn’t work in that situation. Still trying to grab Gravatar link and it results with a broken image.
So for now UM users, please use the function I shared in the first post. Maybe if i find time, I can write a simple plugin or functions.php code for this matter.
Great!
Is there any plans for supporting Custom Post Types? Because they are much more flexible and allows you customize your site greatly.
“each package is attached to a category etc and that should be included in the download information so users can see the most popular category”
I second that. Also there should be widget support for it. So we can place the most popular downloads for the mentioned category page. Not overall downloads. There are some easy things you can make for this plugin even greater. Just listen to your users.
If you are using Ultimate Member the code for getting the user avatar is this:
Open download-manager/libs/class.Package.php line 48.
Change:
$post_vars[‘avatar_url’] = get_avatar_url($author->user_email);
To:
$post_vars[‘avatar_url’] = um_get_avatar_uri( um_profile(‘profile_photo’), 32 );
Now when you are using avatar_url you will get your profile photo.
Hope Download Manager team will make it completely compatible with UM. Two great plugins should work together.
What is “Add to Favourites”? When user added to favorites where he/she can see the favourites? Using Ultimate Member Pro version.
In download page getting 404 on this:
/downloads/file/index.php?_nonce=3e9321492&id=3874
Is this a problem?
There are free plugins like:
wpdm-button-templates
wpdm-color-button
wpdm-colorbox
wpdm-download-button
wpdm-page-template
What are they actually? Extra templates?
Is there a way to put a thumbnail to the link template? Is it possible from TinyMCE button? I added a featured image on Edit Package but it shows very big, and at the top of the link. I want something integrated into the link template. Like this:
https://cdn.wpdownloadmanager.com/wp-content/uploads/2014/01/WPDM_Pro_4_Demo_%C2%BB_Ready_Templates1.png
I copied the code of this link template but it didn’t work on my site like this.
Yes it is not. Solved the issue.
Folder permission should be set to 775 not to 755. Because in 755 the web server can’t write to that folder. I’ve first tried to upload the file to /temp directory by changing the move_uploaded_file function argument. And it worked. Then changed the permission on download_manager_files to 775 and voila!
But you really need to put a control on move_uploaded_file function. It doesn’t check if it succeeds or fails. It fails silently. Also you can put a permission test on front-end to make sure the upload dir is ready.
Will test other parts of the plugin now and make sure everything is working as intended.
Console error on admin panel trying to add a file:
When uploading the file, it first uploads file first in the system temp dir? I will try to track the file. Is there any log file of the plugin?
Can we solve this here? Just tell me what to check and I’ll look into it.
Thanks, finally i can use the plugin. But I can’t use yet because:
“download-manager-files” directory permission is set to 755 but still no files appear. How can we debug this? Maybe other directories that need permission change?
The problem solved by the author of the Justified Image Grid.
In justified-image-grid-core.php file line number 901:
Change:
if(!is_admin() && stripos($_SERVER["SCRIPT_NAME"], strrchr(wp_login_url(), '/')) === false){
to
if(!is_admin()){
It works without any errors now!
2 more questions:
1-) I was planning to use Downloads without links but now I want to use them all with links. Completelhy the reverse. Is there a way to disable the download on click but always open the link in new page?
2-) Is there a way to open a pop-up saying “Your download will start soon.” when users clicked the download?
Oh and also how can I make the “disable the link” perminent. Because users will upload too (not from front-end) and i want this behaviour by default.
But how can it work alone with no problem and crash after installing Download Manager? What does it mean? I am trying to understand the logic of it? What is the conflict we are talking here really?
Which permissions are suggested?
Yes they both work single, but they don’t work together. Thing is i need JIG, and it also a paid plugin. I notified JIG author and waiting for an answer.
How can plugins conflict like that? Are they using the same class name or something? I don’t understand how can this crash the whole site.
Ok, i can put any page, but is there a way to disable the download package to open on a different page when clicking?
When using default settings, I don’t see any file in that directory? It says upload completed succesfully and also see the shortcode and generated template but when click no file downloads. Then look again to uploads/download-manager-files directory, no files there.
I need to fix this ASAP. 3 days passed and still can’t use the plugin I’ve bought. If we fix this, and all goes smooth, I am planning to buy Newsletter plugin. Both the conflict and upload path problem. Because the uploaded files disappears on filesystem and can’t download them.
I’ll also ask another thing about the usage of the plugin. Is it possible to create a short-code and insert it into a post and it will generate a link? I don’t want full seperate page for download package. I just want to create a shorcode link contains the package that can be copy/pasted anywhere? Is it possible to do it?
Also I see in Admin Panel there are Subscribers Menu. How can I let users subscribe to a package?
In Download Manager Settings->Frontend there is settings for Login Page, Register Page and some shortcodes. What is the use of these things?
Where the files are uploaded, from TinyMCE Plugin? Where can I choose the upload directory? (It is not in the setting I see, can you tell the file, so i can change the default PATH from code directly?)
I can use the remote file just fine, but when I upload a file i can’t download it, i searched the whole server for the file but it can’t be find. It can’t move it to the right directory after uploading in temp finishes. Possibly a permission issue. Changed line below in download-manager.php, but it didn’t work:
define(‘UPLOAD_DIR’,$content_dir.’/some/directory’);
After disabling the welcome page errors I have seen clearly that, it conflicts with Justified Image Grid (JIG). Final error is this:
Fatal error: Uncaught Error: Call to a member function get_page_permastruct() on null in wp-includes/link-template.php:357
Stack trace:
#0 wp-includes/link-template.php(320): _get_page_link(Object(WP_Post), false, false)
#1 wp-includes/link-template.php(144): get_page_link(Object(WP_Post), false, false)
#2 wp-content/plugins/download-manager/libs/class.Apply.php(742): get_permalink(Object(WP_Post))
#3 wp-includes/class-wp-hook.php(298): WPDM\libs\Apply->loginURL(‘https://www….’, ”, false)
#4 wp-includes/plugin.php(203): WP_Hook->apply_filters(‘https://www….’, Array)
#5 wp-includes/general-template.php(350): apply_filters(‘login_url’, ‘https://www…’, ”, false)
#6 wp-content/plugins/justified in wp-includes/link-template.php on line 357
Do you have any idea how to get rid of this error?
Problem occurs on get_permalink call, but why?