Metzen
Forum Replies Created
-
Forum: Plugins
In reply to: [Smarty for Wordpress] [Plugin: Smarty for WordPress] Plugins Not WorkingOK, I think I figured it out.
About 4 places in smarty-for-wordpress.php there is this line:
$smarty->plugins_dir = get_theme_root().”/”.get_template().”/plugins”;That is overwriting the directory in the plugin folder (smarty-for-wordpress/plugins/) so that ONLY the theme plugins folder is getting checked.
Instead it should ~add~ a plugin folder (so both folders are read) by having the square brackets:
$smarty->plugins_dir[] = get_theme_root().”/”.get_template().”/plugins”;After I made that change everything works as expected (I also had to clear my theme/templates_c/ folder).
Thanks again for a great plugin!
Forum: Plugins
In reply to: [Smarty for Wordpress] [Plugin: Smarty for WordPress] Plugins Not WorkingA little more information on this:
If I copy the files from the plugins/smarty-for-wordpress/plugins/ folder to the theme plugins folder, some things work, but other things cause a “Cannot redeclare” error because it’s trying to include the function in both places.
So having all files in either place or both places doesn’t work.
I think it ~may~ have something to do with only the theme plugin directory being declared, so maybe something like this would work:
$smarty->plugins_dir[] = ‘[wordpress-path]/plugins/smarty-for-wordpress/plugins/’;
$smarty->plugins_dir[] = get_theme_root().”/”.get_template().”/plugins”;But so far no luck. I would love a solution to this since I can’t really proceed without it.