inject custom code in to header and footer

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Scam Warning
Post Reply
User avatar
Walther
Registered User
Posts: 283
Joined: Fri Jul 09, 2004 5:21 pm
Location: The Netherlands

inject custom code in to header and footer

Post by Walther »

derived from Piwik Analytics

An extension wich gives the possibility to add custom code just before the </head> tag in the header, and a custom code just before the </body> tag in the footer.

I would like to see a 'page' in the EXTENSIONS tab, divided in two input forms.
The top input form is where you can admit the code which you want additional run just before the </head> in the header of any theme
The bottom input form is where you can admit the code which you want additional run just before the </body> in the header of any theme.

Would be nice if there is an [TRY] option to see what the output would be before it is saved :idea:
NanaM
Registered User
Posts: 32
Joined: Tue Oct 21, 2008 6:59 am
Contact:

Re: inject custom code in to header and footer

Post by NanaM »

+1

Good idea, otherwise one would need an extension for each analytics software or code to insert in header/footer, and that would be a mess.

How about security, though ? i.e. how to make sure that the inserted code is functional and not malicious ?
User avatar
Lumpy Burgertushie
Registered User
Posts: 67923
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: inject custom code in to header and footer

Post by Lumpy Burgertushie »

the board owner would be the one inserting the code and therefore it would be their responsibility to make sure what they are adding to their boards.

robertr
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
User avatar
Walther
Registered User
Posts: 283
Joined: Fri Jul 09, 2004 5:21 pm
Location: The Netherlands

Re: inject custom code in to header and footer

Post by Walther »

NanaM wrote:How about security, though ? i.e. how to make sure that the inserted code is functional and not malicious ?
Well, that is a risk which exist right now too, when a board owner edits the overall_header or overall_footer.
Hence my suggestion for the [TRY] or [PREVIEW] option

And of course:
Lumpy Burgertushie wrote:the board owner would be the one inserting the code and therefore it would be their responsibility
User avatar
Walther
Registered User
Posts: 283
Joined: Fri Jul 09, 2004 5:21 pm
Location: The Netherlands

Re: inject custom code in to header and footer

Post by Walther »

Yes, someone picked this request up : [ALPHA] Custom Code
Post Reply

Return to “Extension Requests”