I would like to be able to write my own smarty plugins for use with serendipity, and keep these plugins in a separate "myplugins" directory.
To do this, I need to be able to access the smarty object serendipity is using and change the designed plugins directory settings -- but I can't find where that object is initialized by serendipity.
Can anyone point me in the right direction?
where is serendipity's smarty initialization
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: where is serendipity's smarty initialization
Sure: include/functions_smarty.inc.php - function serendipity_smarty_init(). 
Have fun,
Garvin
Have fun,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
I am trying to set the plugin_dir to an array that will point to the default plugin directory AND a plugin dir off my template directory.
The following seems like it should work, but it doesn't:
$serendipity['smarty']->plugin_dir = array($serendipity['serendipityPath'] . PATH_SMARTY_COMPILE, $serendipity['smarty']->template_dir . "/plugins");
Thanks for any suggestions.
The following seems like it should work, but it doesn't:
$serendipity['smarty']->plugin_dir = array($serendipity['serendipityPath'] . PATH_SMARTY_COMPILE, $serendipity['smarty']->template_dir . "/plugins");
Thanks for any suggestions.