Re: [SMARTY] hello again :)

From: Date: Mon, 25 Nov 2002 21:28:40 +0000
Subject: Re: [SMARTY] hello again :)
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6547@lists.php.net to get a copy of this message
put an echo "DEBUG"; statement in the fuction.img.php file, see if is even getting loaded. On a hunch, the path has "www.synapse-audio.xcom" in it. Is that a typo, maybe it should be "www.synapse-audio.com" ? Monte On Mon, 2002-11-25 at 07:17, 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 > > > > ______________________________________________________________________ > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.general (#6547) next »