I found the solution in case someone else is in the same situation.
If you use 2 different versions of jquery on your site you need to add a “noconflict”.
For example like this:
<script src=”here the second jquery script loaded”></script>
<script>
var $somename = $.noConflict(true);
</script>
<script>
here your script. You need to name it like above (somename)
</script>
I can use packages if all of the files in the package are either free or protected.
But I have cases where inside a package some files are free and some protected. If I have to create a package for each individual file I cannot link to a page where all files are listed. This would be very complicated and long for me to do.
Thanks!
Hello,
Yes that’s what I want. In some cases I do not want to create a package but just protect the file. This is much faster.
What do you mean by “can be loaded form cache for you”. Is this a server side issue?
Normally the modal login should pop up, I guess?
Thanks
Yes, that was my question actually. What can I do to make it work on every page? The referred page is especially important because it is there that the people see the Login Link when a file is protected and they cannot download it if not connected.
There must be a conflict with the script I am importing but it’s just a simple jquery. There should be a workaround?
Thank you, but you are trying on the Homepage.It always worked there.
Can you go to the link I sent you? It is not working there..
Yes, it’s there. I changed the backend in english for you:
If you go to Appaerence > Menus, then choose the menu “Top”.
It is a custom link with css class wpdmloginmodal-trigger.
No, what I put there is this as a css class (as a menu item), as in your description:
wpdmloginmodal-trigger
I’m sorry, it’s changed!
I have another question. I’m not sure if I am supposed to open a threat for that:
In the media library I protect a file so only subscribers are allowed to download it.
When I then click on the download button for this protected file, I get a message “File not found” instead being redirected to a login page for example. Is this normal behavoir?
Thanks
Yes, this one in the top menu: wpdmloginmodal-trigger
Tried those two on the page:
[wpdm_modal_login_form label="Login" class="btn btn-info" redirect=""] (this one displays as shortcode)
This one displays ok but does not work:
Login
This is only on the pages where the above jqery is embedded. Works fine on other pages. I do need the jquery though on those pages.
Thanks