Button template already shows title on the button:
https://demo.wpdownloadmanager.com/wpdmpro/button-templates-add-on-free/
You can show a title linked to download as a button in following way:
<a href="[download_url]" class="btn btn-success btn-lg">[title]</a>
When a file is locked ( where you applied lock option like password, facebook, email or any other ) you need to use the same value for link label as the title.
I know it will take time to customize it, which is why I’m asking for the predefined CSS classes so that I can do it myself.
At first you provided some of the code which I really appreciated, but every time you asked for a screenshot or url to suggest the remaining code you then tried upselling me for either a custom upgrade or add-on.
I’m not sure why as a paid Pro user I can’t make a simple customization to the form layout without paying for an additional add-on?
All I’m asking for are the predefined CSS classes. You say it’s not easy to explain, but even with the free Genesis eNews Extended plugin I’m able easily customize the form inputs with a simple .enews-widget input
class which is openly available to use.
Why am I not allowed to do the same as a paid Download Manager Pro user?
You don’t need separate pages for project A and Project B. All your need to do is:
Please let me know if anything is not clear here.
Yes, had to add parameter flaturl=0
with short-code. ok now.
You can do it manually in this way:
<a href="//your-site-url/?wpdmdl=[ADD_FILE_ID]">[your custom button image or text]</a>
Or, use short-code:
[wpdm_package id="[ID]" template="link-template-button.php"]
And use the following add-on to add your custom button image:
Thanks Shaon.
The url is: http://atesolutions.co.uk.gridhosted.co.uk/module-testing/flex-10/
On the right hand side there are a number of download links.
The first one is attempting to use the shortcode.
The next four are the original buttons with no shortcode.
The bottom button labelled ‘Download’ is using your shortcode but added via a text widget. This proves the shortcode works normally when not used in a custom field. However as I need different buttons on each page I cannot add them using the text widget.
I have added the following code to my page template used for that page:
echo apply_filters('the_content', get_post_meta($post->ID,'pdf_download_button', true));
The name of the custom field is: Pdf Download Button
Thanks for taking the time to help.
Kind Regards,
David
Thank you very much Shaon, as I get familiar with this product while setting up my new site I see that it is every bit as valuable and well built as I expected.
It is forcing me to extend my coding skills too. I’ve read up on the Combinators for Selectors so I completely get the formatting now. Because you’ve laid everything out so well it is really actually quite easy.
The last question I have for this thread is this:
I cannot get the font color to change for the actual [Page_Link]. I this becasue it is inside a shortcode?
I thought the complete identifier for the css element was:
.col-md-6 .thumbnail .media .media-body .h4 {
color:blue;
}
But no combination gets the font color to respond.
My Link Template code:
<div class="col-md-6">
<div class="thumbnail">
<div class="media">
<a class="pull-left" href="[page_url]">[icon]</a>
<div class="media-body">
<h4 style="padding-top: 70px;border:0px;margin:0px;">[page_link]</h4>
[download_link] <i style="margin: 2px 0 0 5px;opacity:0.5" class="fa fa-th-large"></i></br>
[file_size] <i style="margin: 2px 0 0 5px;opacity:0.5" class="fa fa-download-alt"></i></br>
[download_count] downloads
</div>
</div>
</div>
</div>
.
I adjusted the CSS code and added here:
https://www.evernote.com/l/AV38cVoojEVIuba1tTkr8D4hg7bmQwPiPPoB/image.png
If you still didn’t get your desired looks, please give me your URL where I can see the shortcode you using :).
Hi @Shaon
I’ll address the options one by one:
1) version (from download-manager.php) – “define(‘WPDM_Version’,’4.6.3′);” – is that sufficient proof I’m on latest version? if not let me know where to go search/what to get
2) curl not active – please see these proofs of viability:
– “in the clear” curl : https://www.homeownersmarketingservices.com/curlhttp.php
– SSL based curl: https://www.homeownersmarketingservices.com/curlhttps3.php
Both GET this url “www.wpdownloadmanager.com/terms-and-conditions” so you can see for yourself by trying them
3) server firewall blocking wpdownloadmanager.com – N/A
– I don’t have a firewall on this server, we have a firewall at the egress of our network aggregating traffic
– I can reach wpdownloadmanager.com from any computer on that network, including the server itself – isn’t that a proof?
4) license key applied in a site – I guess you mean another site..?
well, I just purchased, downloaded and tried to activate it – so unless you sold it twice… it’s the only use its ever seen
ALSO – TO REMIND YOU WHY I AM HERE – I had version 2.9 working fine, until one day I worked on the download dashboard and it said “license invalid” (which is another sign for you the change that broke it was not on my side..) – so I bought the latest in hope it will solve it
SO – what’s my next move?
send you my license key?
It seems like, the URL is coming from archive page add-on, however, we added “noindex” for next update.
Hello @dru77ster, I found all of your data is there, however, I adjusted license issue changing url from http to https for the license server, however, to update the plugin, it will be safe to do it using ftp without deleting current version. Here, after I install latest version and setup migration add, you will be able to migrate all data easily, but, after migration completed, as WPDM Pro v4 using custom post type, so after import, all package ID will be different. We had no way to keep IDs same. So you will have to change package shortcodes from anywhere you used to set proper package ids.
Thank you for the link. I am aware of and have started working with the templates.
But there is nothing in the post about changing the format or adding css.
I just need one solid example of how the css gets defined in the tempalte.
Or a list of the css tags to change for a template.
Do I just drop in new css definitions into the the top of the tempalte and add my own tags?
/* MY CODE */
Body {
background-color: lightblue;
}
media {
color: white;
text-align: center;
}
media-body {
font-family: verdana;
font-size: 20px;
}
/* YOUR CODE */
<div class=”media”>
[icon]
<div class=”media-body”>
<h4 class=”media-heading” style=”padding-top: 0px;border:0px;margin: 0px;”>[page_link]</h4>
[download_link] <i style=”margin: 2px 0 0 5px;opacity:0.5″ class=”icon icon-th-large”></i> [file_size] <i style=”margin: 2px 0 0 5px;opacity:0.5″ class=”icon icon-download-alt”></i> [download_count] downloads
</div>
</div>
License error may happen for following reason:
If answers are “No” for all of the points above, the license will work just fine. Still, only 10 or fewer users in total were facing the issue due to the reasons mentioned above, which is less than 1% of our new user of any single day. However, we are taking care of every issue anyone having there, but you know, it is sometimes hard to find the reason without checking it where it is exactly happening.
So, as you are facing license issue, here are the steps to follow:
@joeldault, the license should work fine now.
@carl5243, ok now, problem was, curl was not working well on your server, however, I applied an alternative approach to adjust this. However, I also added it on my side for next update.
I tested URLs http://www.openresources.org/rescuing-ambition and http://www.openresources.org/like-a-diamond, downloads seems working fine.
Also tested individual download page http://www.openresources.org/download/out-of-darkness-week-1-audio, however, I’ve adjusted login message from settings and the page template to make it working.
Additionally, if you select only specific user roles for a package, then, user must login before download and only users under selected roles will be able to download the item, but if you want to allow everyone to download an item, only select “All Visitors” for “Allow Access” field.
Please let me know if you need assistance anywhere else.
After a long night, I figured out if I attached the file to the package via url (same file, same location) and not via the uploader or the file browser, it works for me without an issue. I’ve been reading alot about my web host (GoDaddy) and it looks like they’re very strict about php scripts running for longer than 120 seconds despite giving the option of changing the max_execution_time. For anybody else on Godaddy, here’s a workaround for now but I hope to find a way to fix it soon.
All you need to do is adding shortcode [wpdm_file_cart]
on a page to show file cart, And keep single file download activate with packages. Additionally, you need to keep [file_list]
tag in link or page template to show file list.
“How do you get rid of the file name – “name.pdf”” <— may you please explain it a little with an example URL.
Hi again, now I’m working with plugin and I’m having some problems.
Yesterday I post in the fórum for problema with interrupted downloads and decide to update to a new versión, 4.6.2
Well, after update can’t add any file beause the plugin don’t add the base dir, example.
In configuration I put this base path: /var/mydomain/files
And when navigate adding the file select dir: Windows/tutorials.zip
The final URL for the file is: Windows/tutorials.zip
And the real location is: /var/mydomain/files/Windows/tutorials.zip
When you try to download, evidently, the file can’t download because the path is incorrect.
Now I return to 4.6.0 and Works again.
Because, sometime, updating plugin reset permalink rules, however, you can avoid it by adding flaturl=0
with short-code.
@ManuelPalachuk, please zip jobber.pem then upload. BTW, add list api url is https://www.wpdownloadmanager.com/?wpdm_api_req=getPackageList
, it is public.
@m-piotrowicz, in 4.6.2, license key should work fine, please give me your license key in a private reply.
Try following code,
$ID = get_the_ID(); $package = \WPDM\Package::get($ID); echo $package['author_name']; echo $package['author_profile_url'];
I just added the $ID = get_the_ID();
above your code.
I’m not using it anywhere at the moment because I took it out. I was using the code provided to me to create a new column in the show all files shortcode template wpdm-all-downloads.php which I’ve duplicated in my theme folder.
$package = \WPDM\Package::get($ID);
echo $package['author_name'];
echo $package['author_profile_url']; ?>
So basically I’ve added a new header <th> called Author and cells <td> that should output the package’s author name and a URL to the author’s profile.