This is a discussion on "Adding javascript to phpbb" within the JavaScript Forum section. This forum, and the thread "Adding javascript to phpbb are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Adding javascript to phpbb
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Adding javascript to phpbb
I'm trying to add a piece of javascript code - it's meant to go just above the <body> tag so I added it in the overall_header template below the </head> tag as this would be before the body tag but it doesnt work.
Any ideas to get it to work.
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
|
|
|
|||
|
Re: Adding javascript to phpbb
Between head and body?! What is the, never neverland?! ^^
I would try to add it in head OR body.. Prefering HEAD! |
|
||||
|
Re: Adding javascript to phpbb
What?
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
|
||||
|
Re: Adding javascript to phpbb
lol, let me translate:
Between head and body?! That's never never land?! ^^ Put it in the head or in the body. Most scripts go in the head.
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
||||
|
Re: Adding javascript to phpbb
I tried that - neither seemed to work (is this yuor friend?)
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
|
||||
|
Re: Adding javascript to phpbb
yep
Well, check your javascript error console. Are you getting any errors?
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
||||
|
Re: Adding javascript to phpbb
What?
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
|
|||
|
Re: Adding javascript to phpbb
Oh, i am sorry, i thought it would be readable. ^^
To check Javascript errors, first you need Firefox. Then go to "Extras -> Error Console". Hit the Delete Buton there to wipe the list. Than, open your page, and look inside the error list... anything there? |
|
||||
|
Re: Adding javascript to phpbb
Hi Daniel,
The actual javascript is fine ( I just tested for you in IE & FF)... You need to place the script before the </head>. With PHPBB, how is the template printed to the screen? Is it echo'd or printed? If it is, you will need to escape all of your data ie. add backslashes to all single/double quotes Also, in the page you are adding this script to, does it already have a window.onload = something? Cheers,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
||||
|
Re: Adding javascript to phpbb
I dunno - I'm not gonna bother with this script cause it was only a couple of ghosts.
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| phpBB | alexgeek | Website Planning | 34 | Oct 2nd, 2007 23:30 |
| Help with Phpbb forum | Ofear | Scripts and Online Services | 8 | Jul 24th, 2007 13:00 |
| Free PHPBB? | collinsc | PHP Forum | 13 | Mar 12th, 2007 18:01 |
| phpbb Forums mod | saltedm8 | PHP Forum | 10 | May 9th, 2006 22:27 |
| PHPbb forum help | RSStites | PHP Forum | 5 | Aug 8th, 2005 00:10 |