Hi,
I am working with a friend on a website with your Download Manager Pro and we have a problem with the Alert Message in the download Link, if you have set up the download to only be active from a speacil day. We don’t need the time and want to delete this from the alert message. I allready got it working on the first page, when the side is loading first time but if you have too many download files and use more pages in the download widget then on the second and every follow up page the time stamp is back again.
Is there any way to disable the time at all?
Greetings
Matthias
Hello Matthias,
Hope you are well. Can you please elaborate more on your issue? if possible please share the related URL or you can also share a screenshot. if possible, can you please, give your temporary wp-admin login details in a private reply for checking the issue?
Thank you and regards
Hi Nayeen,
and thx for your response. with the following Link you can see a screenshot.
In English the message would be “Download will be available from 31. December 2099 02:00 AM. The page where we use your plugin is a closed page so I am not able to give you access to it. Because of the Server Time the shown time is wrong and we want do delete the time information in the alert-message.
Is there a way to do this?
I found a way to change the alert-message string when the page is loaded first time. Here I use the following code in a html-modul on the page.
<script>
// Wählen Sie alle Elemente mit der Klasse “alert” aus
const alertElements = document.querySelectorAll(‘.alert’);
// Schleife durch alle Elemente und aktualisiere den Textinhalt
alertElements.forEach(alertElement ► {
let alertText = alertElement.textContent;
alertText = alertText.slice(0, -9);
alertElement.textContent = alertText;
});
</script>
But if you have more downloads then to be shown on the page, you have to change pages inside the download modul and then it is not working any more because the main page is not loading again.
And that is my big problem.
Best thing would be to get a configuration point where you can select if you want to have the time shown or not.
Greetings
Matthias
Hello Matthias,
Can you please let me know, are you trying to say the time is making the issue and the available time is not correctly showing as expected? please check and let me know
Thank you and regards
Hi Nayeem,
the available time is not correct shown. We allready tried to change Server time but with that other plugins not working any more. so the best for us would be that the available time is not shown in the alert-message so that the message would be like “Download will be available from 31. December 2099”.
Thank you for helping.
I already tested this but changing the time there is destroying other plugins time settings.
I think you may have to change time settings for other plugins too. please check and let me know
Thank you again and regards
The topic ‘Download Link Alert Message without Timestamp’ is closed to new replies.