...Create temporarily available content
There is often an objective to limit the access to the content with a set time. This article will tell you just how to do that.
This can be done using our proxy-link that can be added to the button.
If you add to the functions "proxy", "proxy_date", "proxy_timeout" an additional parameter that is not equal to 0, then the link becomes a single-use one.
When the user tries to click on the link for the second time, they’ll see a message telling them it was available only once.
"proxy_date": the link is transferred to this function, then it returns the link with the notification about the click. The second and the third parameters are date and time, when the link stops working. If you put after minutes another parameter not equal to 0, then the link will be one-off as well.
Again, if the person tries to access the link at a later time or for the second time, they will be notified that the link expired.
"proxy_timeout": the link gets transferred to this function, then the function returns it with the notification about the click. The additional parameter is the amount of minutes the link works for. If you put after minutes another parameter that is not equal to 0, then the link will be one-off as well.
The user will get notified if they try to access the link once it expires as well.
All short links can be created without a callback, i.e. by classic short links.
There are functions for that with the same parameters but without callbacks.
proxy with the callback - short without the callback proxy_timeout with the callback - short_timeout without the callback proxy_date with the callback - short_date without the callback
remove_links() - deactivation of all short links sent to the client remove_one_time_links() - deactivation of all one-off links sent to the client remove_timer_links() - deactivation of all temporarily available links sent to the client
Example of use: