javascript code after the </body> tag on index only?

Support for phpBB mods/hacks.

Moderator: Moderators

javascript code after the </body> tag on index only?

Postby elephantspike2 on Fri Nov 14, 2008 7:50 pm

I'm trying to add a searchbox for a hotel booking site to my forum index page. The problem is that it needs to have a strip of javascript added after the </body> tag in order to run, but the </body> tag is in overall_footer.tpl, so when ever you navigate to any other page that doesn't have the <div> tag on it to place the searchbox, it gives an alert box that says the <div> tag is missing and won't open the page.

Is there some kind of switch statement I can use to make this JS script run after the </body> tag, but only on the forum index?

Thanks
User avatar
elephantspike2
Registered User
Registered User
 
Posts: 13
Joined: Wed Nov 16, 2005 9:20 pm

Return to phpBB Mods

Who is online

Users browsing this forum: No registered users and 3 guests