where would i put something that...

plastikman

Joined: 2002-09-17
Posts: 39
Posted: Wed, 2002-11-06 04:44

where would i put something that goes right before the </body> tag in an original html page? would that be in the wrapper.footer?

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Wed, 2002-11-06 18:33

Not in wrapper footer... that's for code that decides whether Gallery is embedded (say, in *Nuke). You want to put the code in each of the other footer files: album, gallery, photo, search, slideshow. You could add a <?php include("...") ?> line to each of these so you'd only have to edit one file to change something.

 
plastikman

Joined: 2002-09-17
Posts: 39
Posted: Thu, 2002-11-07 05:49

but i want the code to be used at the top of each page...but for some reason javascript codes wont work...im always getting syntax errors on my page
because what i want to do is have a dhtml nav bar at the top of the page and one of the extention files goes right before the </body> tag in an original html document and the other one goes in the <head> tag but ive gotten that one to work :grin:
the dhtml nav bar by the way looks like this <!-- BBCode Start --><A HREF="http://www.anime-portfolio.com/frames.html" TARGET="_blank">here</A><!-- BBCode End --> does this change anything to the answer you gave me or do i still put the code in the files you told me? thanks!

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Fri, 2002-11-08 00:51

You can put your <style> tags in the css/standalone_style.css file. The JavaScript <script> tags should be fine below the body, so just place them right above your code for the nav bar (in those files I mentioned before) and all should work fine. As far as I recall, the placement of your JavaScript code in the page is not critical.

What syntax errors are you getting? Can you provide the link to the broken page?

-Beckett (beck@beckettmw.com)

 
plastikman

Joined: 2002-09-17
Posts: 39
Posted: Sat, 2002-11-09 03:33

my error says
line:2
char:1
error:syntax error
code:0
URL:<!-- BBCode Start --><A HREF="http://www.anime-portfolio.com/gallery/album01" TARGET="_blank">http://www.anime-portfolio.com/gallery/album01</A><!-- BBCode End -->
this encloses the link and the syntax error...and ive done everything that you told me to do :sad:

 
plastikman

Joined: 2002-09-17
Posts: 39
Posted: Sat, 2002-11-09 04:04

ok...it seems that i got the ending code right before the </body> tag where its suppose to be...now the only trouble that im having is getting the right code in <head> tag...where would i plop that in at for it to work? because i tried putting it in the "standalone css" folder but when i view source on the page its not reading the code i put in there...

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Tue, 2002-11-12 04:17

Okay... since it's been a while, and I'm forgetful, please e-mail me the code you're trying to insert (all of the style and javascript declarations, along with the files they're trying to link to), and I'll make an attempt to get them working just in the header files. It's kind of hard to see exactly what you're doing here.

-Beckett (beck@beckettmw.com)