[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ansel
Subject:    Re: [ansel] Watermark replaceable text - what variables
From:       "Heath S. Hendrickson" <heath () outerspaceconsultants ! com>
Date:       2004-03-19 18:54:23
Message-ID: 405B41DF.2040306 () outerspaceconsultants ! com
[Download RAW message or body]

Chuck Hagenbuch wrote:

> Quoting "Heath S. Hendrickson" <heath@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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic