jeffs Posted November 4, 2007 Share Posted November 4, 2007 Does WHMCS allow javascript to be used in its templates? I have used javascipt to create a border around my web site, and now I am trying to integrate the javascript into WHMCS, but it's not working. The page goes completely blank when using javascript. url: helpinghandhost.com whmcs url: helpinghandhost.com/support/ javascript I want to integrate: ruzee.com/blog/shadedborder Thanks! - I meant to post this into Customisation & Integration Questions - 0 Quote Link to comment Share on other sites More sharing options...
robbo Posted November 4, 2007 Share Posted November 4, 2007 Insert the javascript into its own file. Eg: background.js then add this into your header.tpl between <head> </head> tags: <script language="javascript" src="background.js" type="text/javascript"></script> The { and } in the javascript is causing Smarty (not WHMCS!) to think its a variable or something similar. 0 Quote Link to comment Share on other sites More sharing options...
Dominic Posted November 4, 2007 Share Posted November 4, 2007 ^ It's not WHMCS, it's Smarty. You can use the {literal}....{/literal} syntax to wrap around JS to stop Smarty trying to parse it 0 Quote Link to comment Share on other sites More sharing options...
jeffs Posted November 4, 2007 Author Share Posted November 4, 2007 Thank you robbo and Dominic, I got it working, didn't take me more than a couple minutes. check it out: helpinghandhost.com/support 0 Quote Link to comment Share on other sites More sharing options...
ANRE Posted November 9, 2007 Share Posted November 9, 2007 @Jeffs how did you add the tutorials section? is it a static page? 0 Quote Link to comment Share on other sites More sharing options...
Baja Posted November 10, 2007 Share Posted November 10, 2007 @Jeffs how did you add the tutorials section? is it a static page?I'm not jeffs but.....Theres a couple of ways to do it. I wrote a tutorial if you want to check out one way of going about it: http://forums.whmcs.com/viewtopic.php?t=7453 0 Quote Link to comment Share on other sites More sharing options...
isdoo Posted November 10, 2007 Share Posted November 10, 2007 Thank you robbo and Dominic, I got it working, didn't take me more than a couple minutes. check it out: helpinghandhost.com/support Jeffs - just to let you know your order link on SSl certificates goes to an incorrect URL 0 Quote Link to comment Share on other sites More sharing options...
Redsign Posted November 12, 2007 Share Posted November 12, 2007 check it out: helpinghandhost.com/support Jeffs, just so you know your site is giving the following error: Critical Error Could not connect to the database You're probably aware but just in case! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.