{"id":7198,"date":"2014-05-27T09:08:46","date_gmt":"2014-05-27T09:08:46","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/27\/problem-about-whmcs-collection-of-common-programming-errors\/"},"modified":"2014-05-27T09:08:46","modified_gmt":"2014-05-27T09:08:46","slug":"problem-about-whmcs-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/27\/problem-about-whmcs-collection-of-common-programming-errors\/","title":{"rendered":"problem about whmcs-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a9f08c4ce7e43b2bf332357d84efb857?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPaul Rusu<br \/>\nphp smarty whmcs<br \/>\nI have added the function.bnr_exchange.php to the includes\/smarty\/plugins directory. It contains smarty_function_bnr_exchange which returns a string.I also modified invoicepdf.tpl $pdf-&gt;Cell(0,6,{bnr_exchange} . &#8221;,0,1,&#8217;L&#8217;,&#8217;1&#8242;);which gives error: unexpected { I tried with &#8220;{bnr_exchange}&#8221; but then it writes the text {bnr_exchange}If i simply write {bnr_exchange} in the template it says unexpected } in that line. So it doesn&#8217;t recognize the plugin &#8220;bnr_exchange&#8221;. My question is how do I tell w<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n<p>I discovery a place to host code\u3001demo\u3001 blog and websites.<br \/>\nSite access is fast but not money<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.m5zn.com\/newuploads\/2014\/01\/30\/jpg\/e7da807964b1fff.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Paul Rusu php smarty whmcs I have added the function.bnr_exchange.php to the includes\/smarty\/plugins directory. It contains smarty_function_bnr_exchange which returns a string.I also modified invoicepdf.tpl $pdf-&gt;Cell(0,6,{bnr_exchange} . &#8221;,0,1,&#8217;L&#8217;,&#8217;1&#8242;);which gives error: unexpected { I tried with &#8220;{bnr_exchange}&#8221; but then it writes the text {bnr_exchange}If i simply write {bnr_exchange} in the template it says unexpected } in that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7198","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7198"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7198\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}