I am getting tired of all the "send me the mod" requests for the infamous expirator mod for links 2.0 so i will start a new thread to hopfully end all the "me too's"
In my application of my Recip Link Checker I use it to check the validate.db and periodically email users who are requesting to be added once per week (each week with a custom email) if there is not a reciprocal link
I was wondering why this couldn't do the job. I also have a recip link checker to delete from the live links.db using our simple cgi script we all have in our installed version of links
first you have to add a new field "expired" where you ask the user "how many days will the link be active" say for example you add this as links[999] defined in links.def
now, theorhetically, could one not use the
$daysold = &days_old($links[3]); (again found already in links) to count the days the link has been in the database
compare it with a simple
if($daysold == links[999]){
#then use the delete subroutine to delete it?
}
in the most basic sense, one could use a separate script to delete manually
print "<form action=admin.cgi METHOD=POST><input type=hidden name=db value=links>\n";
<input TYPE=CHECKBOX NAME=$links[0] VALUE=\"delete\">
print "<INPUT TYPE=SUBMIT name=delete_records VALUE=Delete Checked Link(s)> <INPUT TYPE=RESET VALUE=Reset>\n";
well, that's all i have to say about the expirator. i don't plan on using it anytime soon, but feel free to play with my ideas. i don't know why you can't use the the delete sub and the date modifier in conjunction with a new links.def field to get the job done
hope to see more postings
In my application of my Recip Link Checker I use it to check the validate.db and periodically email users who are requesting to be added once per week (each week with a custom email) if there is not a reciprocal link
I was wondering why this couldn't do the job. I also have a recip link checker to delete from the live links.db using our simple cgi script we all have in our installed version of links
first you have to add a new field "expired" where you ask the user "how many days will the link be active" say for example you add this as links[999] defined in links.def
now, theorhetically, could one not use the
$daysold = &days_old($links[3]); (again found already in links) to count the days the link has been in the database
compare it with a simple
if($daysold == links[999]){
#then use the delete subroutine to delete it?
}
in the most basic sense, one could use a separate script to delete manually
print "<form action=admin.cgi METHOD=POST><input type=hidden name=db value=links>\n";
<input TYPE=CHECKBOX NAME=$links[0] VALUE=\"delete\">
print "<INPUT TYPE=SUBMIT name=delete_records VALUE=Delete Checked Link(s)> <INPUT TYPE=RESET VALUE=Reset>\n";
well, that's all i have to say about the expirator. i don't plan on using it anytime soon, but feel free to play with my ideas. i don't know why you can't use the the delete sub and the date modifier in conjunction with a new links.def field to get the job done
hope to see more postings