Page 1 of 1

Including a Javascript File from Admin

Posted: Tue Jul 22, 2008 9:02 pm
by jevchance
Greetings.

I am using PHPBB 2.0.21 in a hosted environment. I do not have developer access to the application.

I would however like to include a javascript include on every page of the board. The code looks something like this:
<script src="http://www.xyz.com/xyz.js"></script>

Is there anyway to include this on every page from the administration tool?

Re: Including a Javascript File from Admin

Posted: Tue Jul 22, 2008 9:10 pm
by Brf
If you cannot access your files, you are out of luck.

Re: Including a Javascript File from Admin

Posted: Tue Jul 22, 2008 10:44 pm
by ric323
What do you mean a "hosted environment"? Are you on a "free forum host", meaning you did not install phpBB yourself?
If so, then as brf said, you cannot make any changes.
If this was a "one-click install", but you can see your board files via FTP, then you can make changes.

Re: Including a Javascript File from Admin

Posted: Tue Jul 22, 2008 11:49 pm
by Lumpy Burgertushie
and if you do have the access, simply add your javascript to the <head> section of the overall_header.tpl file for whatever style you are using.

that will make the script run on every page.


robert

Re: Including a Javascript File from Admin

Posted: Thu Jul 24, 2008 10:07 am
by compt 134
jevchance wrote:Greetings.

I am using PHPBB 2.0.21 in a hosted environment. I do not have developer access to the application.

I would however like to include a javascript include on every page of the board. The code looks something like this:
<script src="http://www.xyz.com/xyz.js"></script>

Is there anyway to include this on every page from the administration tool?
Is it really possible? I mean is it safe to do have access like that?

Re: Including a Javascript File from Admin

Posted: Thu Jul 24, 2008 10:18 am
by ric323
compt 134 wrote:
jevchance wrote:Greetings.

I am using PHPBB 2.0.21 in a hosted environment. I do not have developer access to the application.

I would however like to include a javascript include on every page of the board. The code looks something like this:
<script src="http://www.xyz.com/xyz.js"></script>

Is there anyway to include this on every page from the administration tool?
Is it really possible? I mean is it safe to do have access like that?
What do you mean? It is NORMAL for the forum adminstrator to have full FTP access to all the phpBB files.