-
AuthorSearch Results
-
Feb 7, 2019 at 6:34 pm #93448
In reply to: Safest way to modify wpdm-functions.php
ShahriarModeratorHi Ariane,
There are some filter hooks available to customize the
[file_list_extended]output.1 )
single_file_download_link_labelCustomize the single file download link label. Default label is ‘Download’2 )
wpdm_single_file_download_linkCustomize the single file download link3 )
individual_file_actionAdd additional options with single file. i.e. add file cart button4 )
file_list_extended_show_thumbsShow / Hide thumb.Or you can just make your own custom tag using the approach suggested above to add more customization.
Thanks.
Feb 7, 2019 at 6:13 pm #93444In reply to: Redirect to login page
ShahriarModeratorDownload Manager has the option to replace the download button with the login page link when a user is not logged in. You can customize this login button from Settings Basic Messages Login Required Message: option. Are you trying to do that?
Or just want to redirect all guest users to the login page from any page in general? Add the following code to your theme’s
functions.phpfile if this is the case. Before adding the code create the login page with WPDM login shortcode[wpdm_login_form logo="your_logo_url"]and set this page as Login Page in Settings Frontend Login Page option.add_action( 'template_redirect', 'wpdm_login_redirect' ); function wpdm_login_redirect(){ if( ! is_user_logged_in() && get_the_ID() != get_option('__wpdm_login_url') ): wp_redirect( get_permalink( get_option('__wpdm_login_url') ) ); exit(); endif; }Feb 7, 2019 at 7:53 am #93422In reply to: Unable to Activate Subsite in Multisite
ShahriarModeratorLooks like the shortcode is coming from some other plugin, not WPDM Accordion add-on ( https://www.wpdownloadmanager.com/download/wpdm-accordion/ )
Here is a sample accordion shortcode,
[wpdm-accordion cats=”catid,” cat_style=”default” subcat_style=”success” template=”link-template-calltoaction2″ orderby=”title” order=”asc”]Feb 7, 2019 at 12:58 am #93410In reply to: File Cart / WPDM Questions
Bob HallParticipantThis reply has been marked as private.Feb 6, 2019 at 9:32 pm #93408In reply to: Add New Files to an old Package from Front-end
ShahriarModeratorUsers can visit the download page to download the file.
It is possible to add the main download button by doing the following customization but it is not guaranteed that it will work. Add the code at line 227 in
/tpls/wpdm-add-new-file-front.phptemplate. ( Make a template file like the previous template file )<?php if( isset( $pid ) ) echo \WPDM\Package::downloadLink($pid, 0, array('template_type' ► 'link')); ?>Feb 6, 2019 at 8:55 pm #93397In reply to: permission denied .txt
ShahriarModeratorThe “Register now” page link is coming from the Custom Link Template. Your plain download links have to be replaced by WPDM Shortcodes. Otherwise, you can’t add the “Register Now” link.
https://www.evernote.com/l/AUcSe2kZuM5K9JWEoFR8dn7M2zqy6k9AnScB/image.png
Actually, as you have to replace all the links, Default Values add-on won’t be much help. This add-on can bulk update any package settings. So, I thought using this you could change the link template of all packages in a single click. But changing the link template in pacakge settings doesn’t have any effect on your plain links. It would have been a great solution if you used shortcodes to show downloads.
Feb 6, 2019 at 8:43 pm #93396In reply to: ARCHIVE PAGE LAYOUT NOT DISPLAYING CORRECT
ShahriarModeratorLatest WPDM is using the latest Font Awesome, so the issue may be arisen from there. However, I have to check your installation to be certain about the origin.
Create a new support ticket to discuss this issue further. And send me the shortcode you are using there. Maybe you are using the wrong parameters. For example the following shortcode will display downloads in 3 columns,
[wpdm-archive cat_view="compact" button_style="inverse" link_template="link-template-calltoaction1" order_by="post_title" order="asc" items_per_page="9" cols=3]Feb 6, 2019 at 10:43 am #93360In reply to: File Cart / WPDM Questions
Bob HallParticipantThis reply has been marked as private.Feb 6, 2019 at 10:40 am #93355In reply to: File Cart / WPDM Questions
Bob HallParticipantThis reply has been marked as private.Feb 6, 2019 at 8:25 am #93351In reply to: permission denied .txt
giovanniParticipantwhen i try to download a 3d or 2d file i need to redirect to this page
https://www.tosconova.com/nuovo/register-now/i’ve add the link and now is ok…
but i can’t understand why i need to add an add on to bulk change the default value and i can’t use the simple download link i have already created for all my 1200 link…
Feb 6, 2019 at 7:31 am #93349In reply to: Pagination and Page Reload
lmobileMemberDear Shahriar
webpage link is: https://www.l-mobile.com Yes we used a custom template for downloads and archive page. How is it possible to create a custom archive page template? We tried to overwrite existing css but as we have problems to find right classes to customise behaviour of category overview.
Best Regards Marc
Feb 6, 2019 at 4:06 am #93347In reply to: File Cart / WPDM Questions
ShahjadaKeymasterHi,
Here are the answers to your queries:1. If files are added as URL ( from local server or remote file ), zip download will not work, as php can’t create zip file from urls.
2. No such option for now, but noted for implementation.
3. You can do that by editing that link/page template. Doc: https://www.wpdownloadmanager.com/doc/templates/Please give me temporary wp-admin login info in a private reply if you want me to check those in details.
Now, your forum posting should work fine, but if you face issue again in forum, please mail to support@wpdownloadmanager.comFeb 5, 2019 at 9:26 pm #93329Topic: File Cart / WPDM Questions
in forum Download Manager Pro
Bob HallParticipantHi There;
I have several items I need help with, probably easy for you pros, but i’m unable to figure them out:
1) Users downloading from their cart get a 15 byte zip file regardless of the number of items in the cart. if they download individually or a complete package it works fine
2) I need to be able to display the file size and / or the file title in the cart vs. the file name – can this be done and if so how?
3) I need to modify the template i created for the package list to do the following:
a) the package title needs to be underlined in red to match the rest of the titles on the site
b) i need to remove the “related downloads” links at the bottom of the pagesthank you!
BobPS: I’ve been trying to post this for a couple of weeks, in firefox, if this works, it’s in safari… I wonder why?
Feb 5, 2019 at 8:00 pm #93317In reply to: Pagination and Page Reload
ShahriarModeratorHi,
Are you using a custom template? Built-in templates shouldn’t create any layout issue. Please send me page link to check the pagination issue, I can suggest custom CSS to hide the pagination numbers and only show next/previous buttons in mobile.
Directory add-on default view has changed in the latest version. The old view ( categories above downloads ) is not available anymore. But it is possible to use that view using a custom template.
Thanks.
Feb 5, 2019 at 7:45 pm #93316In reply to: permission denied .txt
ShahriarModeratorSorry, the option is actually “Login Required Message:” Actually, It was there before but your theme is hiding the
.panelclass, that’s why the login button was hidden. I have removed the div with.panelclass and updated the “Login Required Message:” option. Now the login button is visible.Currently login button is linked to the default WP login page. If you want you can create a page with
[wpdm_login_form logo="your_logo_url"]shortcode to use the WPDM login form. Then set that page as login page in Settings Frontend Access Login Page option.You can use the Default Values Add-on ( https://www.wpdownloadmanager.com/download/wpdm-default-values/ ) to bulk update link template for all packages. The link template option in your first screenshot is meant for a different purpose.
Feb 5, 2019 at 7:40 pm #93315Topic: Domain Address
in forum Download Manager Pro
Pascal DemureMemberHello
May i change domain address linked to Download Manager?
Thanks
Pascal
Feb 5, 2019 at 6:26 pm #93306In reply to: Form Lock add-on not working correctly
AndrewMemberHello Shariar,
downloads never stopped working. I changed them to display the links to the files inline, after submitting the form . But what we really need is to get those links sent via email to the people that submit the form, which is how it was working before the main plugin update to its latest version.
Can you please check this again? I was out for a couple weeks on vacation, but I have to solve this issue this week.
Eventually, if you can confirm this will work with the paid version of the main plugin, we can purchase it, but I would prefer not to spend time on testing if it won’t work as expected.
Let me know, please. Thanks.
Feb 5, 2019 at 5:43 pm #93301In reply to: Delete files when deleting package
ShahriarModeratorAdd the following code to your theme’s
functions.phpfile. This should delete attached files when deleting the pacakge.add_action('before_delete_post', 'wpdm_delete_files_on_package_deletion' ); function wpdm_delete_files_on_package_deletion( $post_id ){ if( get_post_type($post_id ) != 'wpdmpro' ) return; $files = maybe_unserialize(get_post_meta($post_id, '__wpdm_files', true)); if (!is_array($files)) $files = array(); foreach ($files as $id ► $file): if( file_exists( $file ) ) unlink( $file ); if( file_exists( WP_CONTENT_DIR.'/uploads/download-manager-files/'.$file ) ) unlink(WP_CONTENT_DIR.'/uploads/download-manager-files/'.$file ); endforeach; }Feb 5, 2019 at 5:31 pm #93300In reply to: Form Lock add-on not working correctly
AndrewMemberThis reply has been marked as private.Feb 5, 2019 at 7:35 am #93256In reply to: permission denied .txt
giovanniParticipanthi,
sorry but I have not received a message notify
i’ve add to .htacces the code
now i can save the option but if i insert the link
<i class=”fa fa-lock”></i> Login
i save the option and if i return in the page, the option disappear…
– in the front end access i’ve atctivated your custom template…but i see the old version…
i need to change all the download settigs of your template automatically because i’ve a lot of download…
i set the new template (but i neet to see only tet link, not the button)let me know
Feb 4, 2019 at 6:30 pm #93250In reply to: PDF-Stamper not working
wilhelmpbtMemberThis reply has been marked as private.Feb 3, 2019 at 12:01 pm #93208In reply to: Download has stopped working
ShahriarModeratorTested from Chrome too. However, you can use the embedded form instead of popup as you are facing the issue. You have to use a page template with
[download_link_extended]to show the embedded form.The built-in ” Single Column, Image Top, Extended ” uses the embedded form. Or you can clone the current template and replace
[download_link]with[download_link_extended]Feb 3, 2019 at 10:56 am #93206In reply to: Download has stopped working
Ian TownendMemberI originally had the linkage usage set and thought this might be the problem, so I cleared the field. I did not realise that it would default to 0.
However the download still does not work for me.
Using Windows Edge, I get the left hand popup, an overlaid progress wheel and then back to the left popup. I have never seen the right hand popup in your figure (possibly because this is Firefox specific?).I tried deleting all occurrences of my email from the subscribers list but this made no difference.
I tried a different computer and user account and the result was the same
I tried using Internet Explorer 11 and the download popup does not appear (the url is given as http://www.coastalsea.uk/#unlock)I hope this gives you a bit more to go on.
Feb 3, 2019 at 4:31 am #93195In reply to: Download has stopped working
ShahriarModeratorAt first, I got the expired link error because your “Private Download Links Usage Limit:” was set to
0I have increased it to 10.https://www.evernote.com/l/AUcPLgjhf7dL8723txj2zlf5ZcXPt7uHanAB/image.png
Now downloads are working fine for me. Please test the download and let me know if still having an issue.
https://www.evernote.com/l/AUcFCVe9CHFF-oOJjTSFH7U7wbzVKHLHMV0B/image.png
Feb 2, 2019 at 6:10 pm #93191In reply to: Templates missing
ShahriarModeratorPlease check the Downloads Templates page to be certain about the missing templates. However, restoring a backup should restore the custom template considering they existed when the backup was created.
Custom templates are saved in
wp_optionstable under_fm_link_templatesand_fm_page_templatesname. So, you can check those entries in your backup DB in case don’t want to restore the whole site. -
AuthorSearch Results
Search Results for 'download link'
-
Search Results
-
Topic: File Cart / WPDM Questions
Hi There;
I have several items I need help with, probably easy for you pros, but i’m unable to figure them out:
1) Users downloading from their cart get a 15 byte zip file regardless of the number of items in the cart. if they download individually or a complete package it works fine
2) I need to be able to display the file size and / or the file title in the cart vs. the file name – can this be done and if so how?
3) I need to modify the template i created for the package list to do the following:
a) the package title needs to be underlined in red to match the rest of the titles on the site
b) i need to remove the “related downloads” links at the bottom of the pagesthank you!
BobPS: I’ve been trying to post this for a couple of weeks, in firefox, if this works, it’s in safari… I wonder why?
Topic: Domain Address
Hello
May i change domain address linked to Download Manager?
Thanks
Pascal