Hi all,
is there an action of some sort that can make a hyperlink expire (not able to be clicked on) after a certain day and time?
I have a .pdf document on my website that changes each week.
The students have until Friday to do it.
THought maybe there was an action I could put on the link so if it is clicked on after a certaan day and time it would not work or give a message.
just wondering.
Thanks,
Barry
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
There isn’t an action but you could use some PHP scripting to do this.
You want the PDF to only be available for 1 week and then another the next week I assume.
Is this a repeatable cycle.
This example http://www.deltadesign.co/fw_examples/php/picofmonth.php will display a certain picture depending on the month but could be adapted to a weekly cycle.
This one http://www.deltadesign.co/fw_examples/php/daily-deals.php displays a different offer depending on which day it is.
David
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Dave,
I kind of wanted this…
- I have a link to a .pdf that the kids can access from Sunday night (when I upload it) to Friday.
- I wanted after Friday at 3pm for it to expire.
- THen I will change the .pdf Sunday night again for the new week and put a new expiration date of the coming Friday at 3pm again.
Not really needed; was more wondering…
Barry
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
At 19:44 -0400 18/5/13, Barry Hoffman wrote:
Dave,
I kind of wanted this…
- I have a link to a .pdf that the kids can access from Sunday
night (when I upload it) to Friday.
- I wanted after Friday at 3pm for it to expire.
- THen I will change the .pdf Sunday night again for the new week
and put a new expiration date of the coming Friday at 3pm again.
Not really needed; was more wondering…
It sounds is if you are asking if a link on a page can expire rather
than the destination. There is no way built into HTML that can do
that.
As has been suggested you can make the target link be served as a PHP
page and so deliver content according to the date/time of the click,
but I don’t think that’s what you’re asking. The two solutions I can
see are:
-
Make the page refresh automatically at intervals so that
after the ‘zero hour’ it is refreshed without the tag, or even
the link in its entirety. This needs PHP.
-
Add a JavaScript hover trigger to modify the DOM and remove
the link. This is less satisfactory as the link may be initially
visible and the disappear when the visitor tries to use it.
Both of these could be made to work such that viewed one day and
‘used’ at a later date will still do what I think you want. Doing
them in Freeway is an excercise for the user
David
–
David Ledger - Freelance Unix Sysadmin in the UK.
email@hidden
www.ivdcs.co.uk
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
This example will display a link between certain time periods
http://www.deltadesign.co/FW6Test/phplink.php
It uses a little bit of PHP scripting to do it.
While not an action only the actual link itself would need to be changed on a weekly basis.
D
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options