MyBB Community Forums

Full Version: Java Script Header
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to put a javascript file to run on all pages on Mybb, how would i go on doing that (It says i need to put it in the <head>), i was thinking of adding it to global (since isn't that ran on every page?)

Here's the Javascript i need to run,
<script language="JavaScript" type="text/JavaScript" src="http://www.yourdomain.com/whmcs
/modules/livehelp/include/javascript.php"></script>
I would add it to global.php and then call it in the template.
If you want it in a template, put it in headerinclude
Ok i see it now. i know where to put it, Thanks N.Malcolm
No problem, anytime. Smile
(2010-08-02, 11:06 PM)N.Malcolm Wrote: [ -> ]If you want it in a template, put it in headerinclude

Yep, this is what you want to do. Don't put it in global.php Wink
Gah, Since this is releated to this, how can i add a global code between the <body> code. Possible? Toungue

Would it just go in to index template?