[ansel] Watermark replaceable text - what variables
Heath S. Hendrickson
heath at outerspaceconsultants.com
Fri Mar 19 10:54:23 PST 2004
Chuck Hagenbuch wrote:
> Quoting "Heath S. Hendrickson" <heath at outerspaceconsultants.com>:
>
>> I'm just using the standard PHP strreplace($search, $replace, $sting)
>> function... it's very easy and flexible. To add more placeholders, just
>> extend the $search and $replace arrays. I might try and put both
>> $search and $replace into an associateive array to make it easier to map
>> one to the other... but it's not critical at this point with only a
>> handful of placeholders. I'll submit a patch for image.php shortly.
>
>
> I'm not sure you really took Jan's point - I agree with him. Pass it
> through
> strftime, then do the strreplace call to get any others like name.
>
Sorry about that. I think I get it now... my only possible problem is
that it takes up a lot of the placeholder values... luckily %N and %L
aren't taken by strftime()... so it's not an issue now.
I'll submit a patch that uses strftime() shortly.
h
More information about the ansel
mailing list