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:

<script type="text/javascript" src="http://ss.webring.com/navbar?f=j;y=rayvenhaus;u=10102599"></script>
<noscript><center><table bgcolor=gray cellspacing=0 border=2 bordercolor=red>
<tr><td><table cellpadding=2 cellspacing=0 border=0><tr><td align=center>
<font face=arial size=-1>This site is a member of WebRing.
To browse visit <a href="http://ss.webring.com/navbar?f=l;y=rayvenhaus;u=10102599">
here</a>.</font></td></tr></table></td></tr></table></center></noscript>

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.

<noscript><center><table bgcolor=gray cellspacing=0 border=2 bordercolor=red>

in the above you could set bgcolor=transparent and set border=0

and you could create a new background image like this one ( a rough guesstimate 10x75):

Resized Image





just some ideas for you.

edit: the XOOPS poweredby.gif would be an issue, but you could remove and add text to footer just below your java script.

Login

Who's Online

218 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 218


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits