Add link to own javascript file

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Get Involved
Bednarus3
Registered User
Posts: 3
Joined: Sat Apr 13, 2024 1:04 pm

Add link to own javascript file

Post by Bednarus3 »

There are links to javascript scripts at the end of the body tag. How can I add a link to my own script there?
Image
Last edited by Mick on Mon Apr 15, 2024 7:07 am, edited 1 time in total.
Reason: Solved.
User avatar
JLA
Registered User
Posts: 617
Joined: Tue Nov 16, 2004 5:23 pm
Location: USA
Name: JLA FORUMS

Re: Add link to own javascript file

Post by JLA »

What version are you on?
User avatar
Sniper_E
Registered User
Posts: 1147
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: Add link to own javascript file

Post by Sniper_E »

Those scripts are in the bottom of your template/overall_footer.html
You can add your script in with those scripts or by adding it in using a event/overall_footer_after.html from an extension.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
Bednarus3
Registered User
Posts: 3
Joined: Sat Apr 13, 2024 1:04 pm

Re: Add link to own javascript file

Post by Bednarus3 »

Thank You Sniper_E. I created my own extension based on the instructions from this page https://area51.phpbb.com/docs/dev/3.3.x ... index.html
After running it, my script appeared in the expected place. Happy day.

Return to “phpBB Discussion”