I don't recommend you to do such modification directly into the core code, since you will lose the ability to do upgrades when new Links SQL versions are released!
I strongly recommend to write own plugin or buy an existing plugin for that task.
Otherwise yes, the build_reset_hits is called at each build, but this function has other goals, and using it also for link expiration, deletion, is a serious design problem.
The build_reset_hits function is used for double hit protection of jump or rate features, and may not modified to handle link deletion.
You are free to do what you want, but you should be aware of these facts...
I suggest you to look around already existing plugins.
Andy has a cheap expiration plugin released (named as: Expire_Links plugin),
as well I'm working on an expensive plugin named as: Advanced Link Expirator plugin (ALE) (the linked thread contains development news of my plugin).
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
I strongly recommend to write own plugin or buy an existing plugin for that task.
Otherwise yes, the build_reset_hits is called at each build, but this function has other goals, and using it also for link expiration, deletion, is a serious design problem.
The build_reset_hits function is used for double hit protection of jump or rate features, and may not modified to handle link deletion.
You are free to do what you want, but you should be aware of these facts...
I suggest you to look around already existing plugins.
Andy has a cheap expiration plugin released (named as: Expire_Links plugin),
as well I'm working on an expensive plugin named as: Advanced Link Expirator plugin (ALE) (the linked thread contains development news of my plugin).
Best regards,
Webmaster33
Paid Support from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...