Jump to content

Smarty plugin path

Recommended Posts



We have some custom made smarty modifiers/plugins.

Before (prior to whmcs6.*) we put them in /includes/classes/Smarty/plugins, but now they don't seem to get picked up by Smarty.


It feels wrong to put them in /vendor/smarty/smarty/libs/plugins because vendor is something that is handled by composer.


Are there another directory configured for custom made smarty plugins?

Or are there any way to configure smarty via whmcs to add another directory for plugins?



(I have created a ticket and will update when I get feedback from there)

Share this post

Link to post
Share on other sites

It feels wrong to put them in /vendor/smarty/smarty/libs/plugins because vendor is something that is handled by composer.


this is where you need to put your plugins, composer will not remove them anyway.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By mfoland
      I made a Square Gateway, which is in the Marketplace. The issue right now, is it's coded with PHP, and has to rely on allowing it to run with the php smarty tags, which aren't recommended. Is there an alternative way to avoid Smarty PHP tags?
    • By Cubeboy
      can anyone help with this code. I want to be able to show and image between a certain date set. but I can't seem to get this to work. can anyone help? in the header.tpl file
                          {include file="$template/includes/navbar.tpl" navbar=$secondaryNavbar}                 </ul>             </div><!-- /.navbar-collapse -->         </div>     </nav> </section> {if $templatefile == 'homepage'}     <section id="home-banner"> #### MY CODE IS HERE         {php}      $sb = date("z");          if ($sb <= 90 and $sb >= 61) { $m_subbanner ="<a href=\"https://XXXXX.COM/site-lock.php/\"><img src=\"subbanner/sl.jpg\"></a>" ;}  else {  if ($sb <= 120 and $sb >= 91) { $m_subbanner ="<a href=\"https://XXXXX.COM/video-conf.php\"><img src=\"subbanner/videoconf.jpg\"></a>" ;}  else {  if ($sb <= 120 and $sb >= 91) { $m_subbanner ="<a href=\"https://XXXXX.COM/seo-marketing.php\"><img src=\"subbanner/seo.jpg\"></a>" ;}  else { $m_subbanner ="<img src=\"subbanner/default.jpg\">" ; } }} <div class="container text-center">  echo $m_subbanner;       {/php}   #### MY CODE ENDS         </div>                </section>     <div class="home-shortcuts">         <div class="container">             <div class="row">                 <div class="col-md-4 hidden-sm hidden-xs text-center">                     <p class="lead">                         {$LANG.howcanwehelp}                     </p>  
    • By servetas
      Hello All,
      I am trying to following part of code within the viewinvoice page but the paymentbutton is not updated. Is the smarty->assign option still supported?
      <?php function custom($vars) { global $smarty; if ($vars['filename'] == 'viewinvoice' && $vars['status'] == 'Unpaid') { $smarty->assign('paymentbutton', "BG"); } } add_hook('ClientAreaPage', 1, 'custom'); ?> The hook seems to run but the paymentbutton is not updated. Does anyone have the same issue? How can we update the paymentbutton?
    • By didier1
      Hello, I'm trying to build an email template that will use a custom field date that  is  already created with this format  (DD/MM/YY) and will add 1 day or 1 month depending of our needs as follow.
      We are working on something like that but need help for the syntax 
      {$service_custom_fields.0 + 1 } 
      ( will give 31 on a custom field value of 30/06/2018 - we are expecting 01/07/2018
      Do we need to convert that value into number and than add +1 than reconverting ? 
      many thanks again guys
    • By ModulesGarden
      ModulesGarden already feels the unrestrained thrill of Halloween, giving a special treat to everyone! You will be enchanted to discover how little stands between you and our breathtaking bargain featuring 75% and 25% discounts. Take part in our Spooktacular Contest and your tenacity will be handsomely rewarded!

      cPanel Dispatcher ushers in the future of custom software development! This standalone, tailor-made system built for XXL Webhosting to facilitate their reselling business is a grand project completed by ModulesGarden with the help of an ultramodern platform - Antares Project. Delve into the brainstorming discussion held with XXL Webhosting Founder, Sander Cruiming, to see with your own eyes how spectacular the results of this groundbreaking venture turned out to be!

      We have just sparked off a new Client Area Designer For WHMCS era with its 1.1.0 version! If you put the satisfaction of your customers first, just like us, a pretty bundle of the new additions will surely prove a useful tool for giving them the best treatment they deserve.

      These are the features ready to aid you in fully customizing your client area:
      Benefit greatly from WHMCS 7.3 compatibility. Take advantage of Smarty template engine to modify the body and footer content of sidebar components and widgets. Enhance your client area with fully adjustable slideshows of images or HTML bodies. Lay down even more detailed conditions of displaying particular features than before! Satisfy the innermost desires of your customers with Client Area Designer For WHMCS!

      Learn All About Client Area Designer For WHMCS!

      31st October is already upon us which means our Fall Promotion for custom software development services is nearly at its closure. If you have not submitted your project request yet, it is strongly advised that you comply with all formalities by the end of the month. You surely wouldn’t like to see the phenomenal 50% discount slip down the drain, would you?

      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
  • Recently Browsing   0 members

    No registered users viewing this page.


Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated