Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Newsletter Email Question..

Quote Reply
Newsletter Email Question..
Hello;
I've recently installed links and have a question re; the newsletter email.

When it loads all the links and has "New for date" as the subject, I was thinking that would be something you could send out nightly, with new links for that day.

But I have "what's new" set to 14 days, so it lists last 14 days links in there, and seems to want to keep sending them out everyday, instead of just sending that days.

Is there a way to send just that days links everyday, but still have the what's new section set to 14 days?

Thanks for any help!
Quote Reply
Re: Newsletter Email Question.. In reply to
In db_utils.pl, find the sub build_new_links. This is the routine that determines what is going to be included in the newsletter. As it currently is written, it includes any link that has 'isNew' set to 'Yes'.

Right after this line:

Quote:
@data = &split_decode($_);

Add this line:

Quote:
my $days_old = &days_old($data[$db_modified]);

Then, change:

Quote:
if ($data[$db_isnew] eq 'Yes') {

to read:

Quote:
if (($data[$db_isnew] eq 'Yes') and ($days_old <= 1)) {

I hope this helps.
Quote Reply
Re: Newsletter Email Question.. In reply to
ok thanks for help; I'll try it out now.