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>
@charles-mcpadden,
License error may happen for following reason:
- You are using older version ( < 4.6.3 )
- cURL is not active on your server
- Server firewall is blocking https://www.wpdownloadmanager.com
- License key already applied in a site
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:
- If you are not using latest version, please update, that resolved the license issue for all major users, who were facing license issue after moved license server from HTTP to https
- If you are using the latest version and still facing license issue, please check if cURL is disabled or not working properly on your server.
- Final steps is to check server firewall, of that is blocking wpdownloadmanager.com
- But if you already applied key on a site and now trying to change the domain, you need to give me the key in a private reply to unlock it.
- And if you can’t detect or decide what it is, you need to allow us to access your site to check the issue and adjust it, that is the regular way when customers need support, nothing unusual there, but we respect individuals decisions and privacy policy.
@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.
This reply has been marked as private.
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.
This reply has been marked as private.
@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.
Use [#download_url#] tag in email template to send download url. In latest version of plugin this is added in default template.
I mean each time you add a package, for the attached file, I add an URL for the file to download (on an external server, i don’t use the “upload” function), this URL is set by me.
now all my packages have a URL http://ns32……… but i’m moving all my files to a server named http://ns42….. (still an external server, not the one where WordPress is set)
so all my downloads will not work, i can actually go inside each packages 1 by 1 to update the link to the new server, but doing than more than 3000 times is not what i want.
I tryied to modify those packages link directly into the database, but when i do that, when i edit a package, attached file URL is empty.
What are my solutions?
If you added remote URLs in your package zip download will not work, as files need to be in same server to create zip.
Hi,
I need your help on the following :
1- I need to remove category / create date row
2- I need to link icon to package detail -> i found this but don’t know where to add it
a href=”[page_url]”>[icon]
The example above will link icon with package details page URL
-> here’s the link -> http://www.regies.ch/espace-coproprietaires/
Thanks in advance for ur return
Best,
Category RSS feed url is [category url]/feed/, ex: http://www.wpdownloadmanager.com/downloads/ecommerce-add-ons/feed/ , but “Package visibility in main RSS feed” option adds wpdm package with main RSS feed, ex: http://www.wpdownloadmanager.com/feed/ , you can enable it from wpdm Settings Frontend tab.