Gossamer Forum
Home : Products : Links 2.0 : Customization :

Emailizer update

Quote Reply
Emailizer update
EMAILIZER (r.1.10b) is on
http://web-linker.com/lepolinks

with this minor update you can insert the %%expire%% tag into your bulk emails. (Expirator plugin needed)


let me know if everything works fine.

byebye

lepo
Quote Reply
Re: Emailizer update In reply to
I am interested in calculating the expiration date of a link, based on the Modified tag (a date) and the Expire tag (number of days), and using this as another tag which I'll refer to as Expire_Date.

According to Lepo, this should be possible. He provided me an equation for doing this but, as I am not a programmer, I am stumped.

Based on the reply he's provided below, would someone be willing to work up some code that I could cut/paste into Emailizer to do this?

Thanks tremendously in advance!

--
> yes.
> you can do it but you have to play with dates.
> just
> use procedures:
>
> unix_to_date
> date_to_unix
>
> you should transform the date into the UNIX system then add the expire value
> (transformed either in seconds)
> so...
>
> $unix_date = &date_to_unix($date) + ($expire * 86000);
>
> # 86000 are seconds in a day.
>
> then re-trasform the UNIX date again to the HUMAN date...
>
> $expiration_date = &unix_to_date($unix_date);
>
> this is only an exaple you should use all appropriate variable.
--
Quote Reply
Re: Emailizer update In reply to
Would a better place to ask this be in the Perl/CGI Forum?