Having problem linking onedrive addon with my MS onedrive
I have ‘registered app’ as per the documentation provided with onedrive addon.
I have created redirect url as per that documentation.
I have guessed at Client Id / client secret. Addon document says to use the link https://account.live.com/developers/applications
But this takes me back to the page where i registered my app. No mention of client secret on this page but one hint suggests that “client id” and “application id” might be the same. So i guess that “client secret” and “password/public key” might also be the same thing.
But when i add these 3 values into the addon settings page and click ‘save settings’ the ‘wheel spins’ and never returns response to my web page.
Chrome ‘inspect’ gives this error when ‘save settings’ is clicked.
“Failed to load resource: the server responded with a status of 400 () …………..(edited)…….wp-admin/admin-ajax.php?_fs_blog_admin=true”
Please follow this tutorial, and for redirect off to dashboard please select none selected from settings frontend login page. And for disable logout confirmation follow this.
For navigation function please see the gist file from here.
And to show log out in any page use this PHP code <?php echo wp_logout_url( $redirect ); ?>
1. You can get the name and email with the login. In that case, you can disable the billing address from Downloads Settings Premium Package frontend settings. Otherwise you can remove the fields from wp-content\plugins\wpdm-premium-packages\templates\checkout-cart\checkout-billing-info.php.
2. You need to use [wpdm-pp-cart] shortcode on a page to show the cart on that page for the premium package.
3. You can use default WordPress logout URL in the menu items, you need to add a custom function to change the navigation for logged in and logged out users.
I am having an issue on my site acuitypro.com with my downloads. They are coming from Dropbox and are password protected. However, after the user enters the correct password and gets the green download button, if they do not click it quickly the page reloads to a content security policy error. This is happening in both Firefox and Chrome.
I have been working with WP Engine to try and resolve this issue but they are telling me that the downloads should come from dl.dropbox.com and not from dropbox.com to avoid loading the download in a frame.
Can someone point me in the right direction for how to get the Dropbox add-on to download from the correct URL to avoid this? Or another way to resolve this?
First of all, I am really sorry that you had to deal with all these unexpected difficulties.
I see that you have modified the Prime theme. I checked the style.css file which was missing the theme info like version, name etc.
There is another old theme in wp.org with the same name. As the WPDM Prime version was missing WordPress was showing ‘Update Available’ message by confusing our theme with the wp.org theme. So, I think someone updated the theme by clicking the ‘update’. And as a result, our theme was removed and the wp.org Prime theme was installed. And all of these happened due to the missing Prime theme info.
Now, I have added the theme info again in the style.css file which removed the ‘update available’ notice from the Prime theme. So, the issue shouldn’t happen again.
Another thing is, you should use a child theme if you want to modify theme feature or look. That will keep your modification safe when there is a theme update available.
About the search issue, are you using a custom search from there? The form code should look like the following snippet,
1. WPDM Block Hotlink add-on will help you to block hotlink to download URL from the external site. You must have to click on download button placed in your site to download packages. The external site can only place the link with your page.
You can try putting the download link on another domain site and see if it can be downloaded. Because the plugin will block the download.
2. If you want to show you packages on any page or homepage, you can try shortcodes like All packages list, here’s the demo. Or You can use category shortcode on the page, here is the demo.
I am using a category short-code to display all the packages in a category as cards. The packages included in this category have titles that vary in length. Some of the titles are long enough that they are displayed on multiple lines (wrap text) and others are only one line. This causes the cards to not display properly in a 4 x 3 grid. I tried fixing the height of the [page_link], but then the size of the browser window can cause some of the titles to be hidden.
Is there a way to make the top of the cards in each row line up no matter how long the titles are?
Here is my catergory display short-code:
[wpdm_category id="infrastake" title="InfraStake" desc="These are InfraStake files" toolbar="1" order_by="title" order="asc" item_per_page="12" template="5a94448318a7e" cols=4 colspad=2 colsphone=1]
Here is my card template code:
<div class=”list-group wpdm-lt-card” style=”margin: 0 0 15px 0″>
<div class=”list-group-item”>
[thumb_500x250]
Hey everyone – just a heads up, I have a work around for this bug. In your template (for example: /wp-content/themes/yourtheme/download-manager/page-templates/product.php)
Edit your code by adding “download” as described here. <a class="btn" href="[download_url]" download>DOWNLOAD FILE <i class="fa fa-download" ></i></a>
thank you very much. Just another question. Is it correct that the buttons „Browse, URL, Lock-Options and Icons“ does not work at Frontpage-Uploader.
If I click on “Add download package“ at Frontpage-Uplader the file will be uploaded, but the field contents in the individual input fields will remain. Is this normal?
1 ) Save only the image URL in the custom field. Then use this URL in your custom template to show the image via the img tag.
2 ) Sory, Not sure what you meant. If you want you can activate the download archive ( from the option in your screenshot 1 ).
Yes, you can show only the category. Add following code in your theme’s functions.php to add a custom template tag for categories with no link,
– Category archive page URLs look like https://www.site.com/downloads/package-category/ Here downloads is category URL base. I meant before you can change this URL base if you want from Dashboard Settings Basic URL Structure Panel.
-You can set login required or permission denied message ( when the user can’t access the package ) from settings. But your link/page template should have [download_link] tag for that.
– https://www.dxf-downloads.de/category/downloads/3d-drucker-stl/ is the archive for your post category 3D Drucker .stl It is not download category archive. Download category archive url will look like this https://www.dxf-downloads.de/downloads/download-category
you can change the url slug downloads from WPDM Basic settings.
Some of your files only for premium users that means the “premium user” custom option is empty in other packages. So, you can utilize that in your custom link/page template.
When a field is empty you can hide that by adding a class in the template code. example: adding this [hide_empty:version] in the wraping element/div of version will hide the element if version is empty.
Please send me the URL to suggest required CSS adjustments. Send temporary wp-admin login info in private reply if you want me to check the custom template code and make the premium field visible only when there is a value.
Scroll down to the “Case Studies” section (after videos).
Each of the thumbnails on this page link to whitepapers tracked by WPDM. They are just regular images with captions, linked to the packages, not using the WPDM link template.
An example of one existing package in working order, without any need for an email lock, this uses the WPDM Page template above:
What I want is to create a “download” button on a page, which then requires the user to provide email address before downloading. The PDF preview shown in the above example is not required, I just used it because it’s our standard template.
I’m fine with a direct download or email link……but the problem is that I can’t get the email input form to display anywhere in this process and I’m not sure what part of the sequence I’ve got wrong.
Using a custom thumbnail image for the custom icon does not work. I tried adding a custom thumbnail image and the icon displayed is the unknown.svg icon, not the thumbnail image that was added. Does the custom icon URL work with jpg files?