1
Kerjin
Adding javascript to footer.php
  • 2004/5/27 22:14

  • Kerjin

  • Just popping in

  • Posts: 48

  • Since: 2004/3/10


I've got a segment of javascript code that comes from webrings.com. I need to add this code at the bottom of my page (It's where I want to put it, not where they are telling me to put it.) I can't use the banners section as the code has to show upm on each page for each ring, not randomly.

I'd like to add this to the footer.php and not have to add it on a theme by theme basis.

Can anyone tell me what needs to be done and where to put it? (Please me gentle! )

Here's the code:

Quote:




2
tjnemez
Re: Adding javascript to footer.php
  • 2004/5/27 22:23

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey Kerjin,

if you add to your footer it will likely tile the footer image which in my opinion will not look that good. consider making a custom block, position center/center and weight it so it displays last and you have the option to show on all pages or just start page.

edit: by the way your site looks good!

3
Mithrandir
Re: Adding javascript to footer.php

Either way, you should not add this to the footer.php.

Footer.php does not add the footer, but instead it post-processes the content to be shown and invokes the display of the theme.

If you want something to be shown in the footer of every page either edit your theme(s) to include the code or add it to the footer field in system admin -> preferences -> Meta Tags and Footer.
Not all themes use the XOOPS footer, though.

4
intel352
Re: Adding javascript to footer.php
  • 2004/5/27 22:35

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


javascript works in the admin-saved footer entry?

5
Mithrandir
Re: Adding javascript to footer.php

I don't know for sure - try it out

6
tjnemez
Re: Adding javascript to footer.php
  • 2004/5/27 22:39

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21



Quote:
If you want something to be shown in the footer of every page either edit your theme(s) to include the code or add it to the footer field in system admin -> preferences -> Meta Tags and Footer.


considering the theme you are using, it will tile your background image.

7
Kerjin
Re: Adding javascript to footer.php
  • 2004/5/28 2:57

  • Kerjin

  • Just popping in

  • Posts: 48

  • Since: 2004/3/10


Well, just adding it to the footer as it sat and making sure each theme did the footer call got it working!

Thanks to all!

8
tjnemez
Re: Adding javascript to footer.php
  • 2004/5/28 3:36

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


you may do something like this to remove tile effect.

Latest GitHub Commits