-
Search Results
-
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.zipWhen 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.
I’m developing a theme, and I always want the user to land on the custom login page if it is defined…so I want to redirect the user to the login page from wp-login.php.
Here is the code that I’m added for my purposes…your mileage may vary (I didn’t include the UI toggle, obviously…)
/** * Redirect the user to the Download Manager's login page instead of wp-login.php. */ add_action( 'login_form_login', array( $this, 'redirect_to_custom_login' ) ); function redirect_to_custom_login() { if ( $_SERVER['REQUEST_METHOD'] == 'GET' ) { //Only when the form is being called, not posted if ( is_user_logged_in() ) { wp_redirect( self::$dashboard_url ); } else { wp_redirect( self::$login_url ); } } } /** * Set a static constant for the login URL so I don't have to do it on every single tpl page... */ function set_login_url() { $login_id = get_option('__wpdm_login_url'); if( $login_id > 0) $login_url = get_permalink( $login_id ); else $login_url = wp_login_url(); $redirect_to = ( isset($_GET['redirect']) && 'referer' == $_GET['redirect'] ) ? $_SESSION['HTTP_REFERER'] : null; $redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : $redirect_to; if ( !empty( $redirect_to ) ) { $login_url = add_query_arg( 'redirect_to', $redirect_to, $login_url ); } self::$login_url = $login_url; }It’s a great feature….but It took me two hours to figures out how to customize the Login Required Message (in Basic Settings) in order to get the redirect – the request is fairly simple:
- Document the available shortcode handles in the UI – [loginform],[this_url], [package_url]. I had to dig deep into the code (line 147 in wpdm functions) before i discovered these handy-dandy handles!
- I felt that [this_url] should have given a fully-qualified domain name, but maybe that’s just me
- there’s a lot of HTML is what i came up with for what is surely a pretty basic requirement – to come back to where I started, so maybe add another handle or shortcode which handles all this extra stuff for you
Example code – seems a bit of an effort for a basic requirement:
<a class="required-login-msg" href="http://mydomain.com/wp-login.php?redirect_to=http://mydomain.com[this_url]">Free Registration is Required in Order to Download Resources</a>Topic: logout page
How/where do I set the page for when a user logs out of the dashboard?
It defaulted to:
/sitename/download-dashboard/logout/
…which was a 404 – Page not found.
I created a page titled ‘logout’ and it will redirect there, but it does not actually log me out. I am still logged in as a WP User and I can type in a package address in the URL window and get to it.
NOTE: I do not want to go to the WP User logout page. I either want to got to a customer page that looks like Download Manager or go to the homepage.
Topic: WPDM remove row
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,
Hi Team
What files would I need to edit to add an onclick to the link of the [download_link_popup] button?
I would like to add onclick=’goog_report_conversion(‘$linkURL’)’ to be able to track the download conversion.
( Google code required: https://support.google.com/adwords/answer/6331304?hl=en-GB&authuser=0)
Thank you
Warm regards
Mark
Topic: file not found
Hi,
URL: http://be.iko.com/technische-fiches/
I’m using Download manager already for a long time and I purchased it already for a few sites.
On the URL above you’ll see 5 tabs.
The downloads on the 1st 4 tabs works fine.
I added the 5th tab only recently and the downloads are not working. I always get ‘file not found’.I add the files by ‘Bulk import’.
When I add a file manually 1 by 1, than it does work.
Also I don’t t see the map tree structure anymore on the bulk import page and when I add the URL of the files, he shows me all files, but in the last column I see size: 0.00MbI already updated to the latest version but that didn’t helped.
I was thinking on some security restriction but then it’s strange that it is working for 1 file.
I can give admin login in Private message.
thanks for a quick response!
Hi, I have asked for this problems several time but still do not have a solution for this.
If I use AWS S3 add-on and try to create a bucket or try to access to an existing one, I do receive the following error message.
“Fatal error: Uncaught Aws\S3\Exception\PermanentRedirectException: AWS Error Code: PermanentRedirect, Status Code: 301, AWS Request ID: 9DD9EEAEE56E308B, AWS Error Type: client, AWS Error Message: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint: “superspirit.ffm.s3.amazonaws.com”., User-Agent: aws-sdk-php2/2.7.17 Guzzle/3.9.2 curl/7.38.0 PHP/7.0.14-1~dotdeb+8.1 thrown in /var/customers/webs/Superspirit/wp_harmonics/wp-content/plugins/wpdm-amazon-s3/aws/Aws/Common/Exception/NamespaceExceptionFactory.php on line 91″