Help - Search - Members - Calendar
Full Version: Custom Plugin Conversion
Movable Type Community Forum > Additional Resources > Plugin Development and Usage
gs_joris
Hello all,

I wrote this nice little Smarty plugin for MT 3.35 that creates a tag that displays a commenters age. More or less.
Truth to be told, it wasn't as much of a plugin as it was just a simple tag.
For 3.35 I just had to put the file in 'cgi-bin/php/plugins/function.MTCommenterAge.php' and it worked. For 4.2... it's different.
Has 4.2 given up smarty support? I can't find guides/tutorials/howto's for creating smarty plugins for 4.x _anywhere_. Nor the knowledge that is has been abandoned.

So I'd like to know if it's possible to use my good ol tag by moving it around, just registering it in perl, or have to rewrite it to perl alltogether.
Hope someone can shed some light on this.
gs_joris
For anyone having the same problem;
The key is to move the file to the right path with the right filename convention.
In other words;
'cgi-bin/php/plugins/function.MTCommenterAge.php'
becomes
'cgi-bin/php/lib/function.mtcommenterage.php'

.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.