HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: How to create custom Smarty functions
Hi @R_J, I am using vanilla 2.5, I have tried to use this guide but it does not work, I put the code to you please if you can guide me. Directory Theme Boostrap: * /theme/bootstrap/class.bootstrapthemehooks.php <?php defined('APPLICATION') or die();/** * Sample implementation of a theme hooks class to show * the use of… -
How to create custom Smarty functions
If you are creating your own theme, you might come to the point where you would need PHP code to achieve something that isn't possible with the existing Smarty functions in /library/vendors/SmartyPlugins/ - you will need your own custom function. Here is a way to create them as reusable files in a separate folder. You may… -
Re: How to create custom Smarty functions
Thks @r_j I have read the documentation 1000 times but it does not work, I really do not understand what I do wrong I add the error and the function maybe I am doing something wrong and I do not see it. /theme/bootstrap/SmartyPlugins/function.custom_discussions_link.php <?php/** * @copyright 2009-2017 Vanilla Forums Inc. *…
3 results