Re: Re: [SMARTY] hello again :)
| From: | Rasmus Schultz | Date: | Mon, 25 Nov 2002 19:52:34 +0000 |
| Subject: | Re: Re: [SMARTY] hello again :) | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6541@lists.php.net to get a copy of this message | ||
oops :) ... no I'm not worried, just really forgetful ;)
here it is - and once I get it work, I do of course intend to
share it with anyone who wants it :)
--- At 2002-11-26, 04:22:00, Robert Amos <bok@ausmac.net> wrote:
>Perhaps if you include the plugin in the email? We wont steal it promise
>:) Just up to the start of the function if you're worried...
>
>-Robert
>
>On Mon, 25 Nov 2002, Rasmus Schultz wrote:
>
>> Hi,
>>
>> You may not remember me? I was on the list earlier - I was
>> the braindead moron who tried to make plugins to undertake
>> all sorts of functionality, like database access and
>> sending emails - shame on me, crazy kitten. But I finally
>> came to my senses, and cleaned up my act. No more functional
>> plugins for me, no Sir.
>>
>> Anyhow.
>>
>> For the first time, I now have a real need for a plugin -
>> I want a plugin to use instead of <IMG> tags, which examines
>> the width and height of the image, and inserts the correct
>> WIDTH and HEIGHT properties into the tag. A real noble cause
>> this is, and a real timesaver it would be, right? Nobody's
>> going to bite off my head this time, I think - not that I
>> wasn't asking for it earlier ;) ...
>>
>> Sadly though, it doesn't work - I've been looking at my
>> previous plugins, and if there's a difference between what
>> I've done this time, and what I did before, I don't see it.
>>
>> Usage within a template should be simple enough, right?
>>
>> {img src="my.gif"}
>>
>> But all I get is this:
>>
>> Smarty plugin error: [in main.tpl line 16]: plugin function smarty_function_img() not found
>> in C:\Files\Websites\www.synapse-audio.xcom\plugins\function.img.php in
>> C:\Files\Websites\www.synapse-audio.xcom\Smarty.class.php on line 2005
>>
>> And the file really is named and located exactly as the error
>> message says, and the function is called just that, but it
>> just won't work.
>>
>> You don't have to do anything in particular to get the plugin
>> to load, right? just drop it in the plugins folder?
>>
>> I must be some kind of idiot :/
>>
>> Best Regards,
>> Rasmus Schultz
>>
>>
>>