add flash horizontal navbar
dj zen masta k
Joined: 2009-03-09
Posts: 12 |
Posted: Mon, 2009-03-09 19:42 |
how would i go about doing this? i've looked in the theme files and the gallery files, and i can't, for the life of me, figure out what i need to do to add this in. below is the code i need added. my gallery is located here: http://totalxr.com/gallery <!-- in the head --> <script type="text/javascript" src="swf2007.js"> <!--> <!-- in the body --> <!-- Begin NavBar Code: Crystal Button / NavBar Maker --> <div id="flashcontent"><a href="http://totalxr.com">Home</a>|<a href="http://totalxr.com/listen.html">Listen</a>|<a href="http://totalxr.com/store.html">Store</a>|<a href="http://totalxr.com/xtremeteam.html">Xtreme Team</a>|<a href="http://totalxr.com/webcalendar">Schedule</a>|<a href="http://totalxr.com/contact.html">Contact Us</a>|<a href="http://totalxr.com/wordpress">Blog</a>|<a href="http://totalxr.com/gallery">Gallery</a>|<a href="http://www.crystalbutton.com">InMotion! Buttons</a></div> <script type="text/javascript">var so = new SWFObject("nav1.swf","nav1","1064","47","8","#FFFFFF"); so.addParam("allowScriptAccess","always"); so.write("flashcontent");</script> <!-- End NavBar Code: Crystal Button / NavBar Maker --> <!--> |
|
Posts: 16504
Depends on where you want it, but I'd start with /themes/<YourTheme>/templates/theme.tpl
Read this for an overview on editing template files
http://codex.gallery2.org/Gallery2:Editing_Templates
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 12
thanks for the reply. i've edited the theme.tpl and added in those codes, but i can't figure out why the navbar won't show up properly. the navbar does appear in the text form, but the flash version does not. this is the exact same code i use on my other pages, so i know the code is good.
i've deleted the template cache, same thing.
Posts: 12
okay, i have no idea why, but now the main page is completely screwed up. the site admin page still looks okay. i didn't change anything in main.php.
Posts: 12
nevermind. clearing the template cache took care of it.
is there another solution other than editing the theme.tpl? for whatever reason when i do it in the theme.tpl it screws the page up.
Posts: 16504
Make the edit, leave it and let me know when the change it in effect. I'll take a look at it. I'm suspecting there is a path issue.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 12
okay then. i readded the code, cleared the template cache, all screwed up.
check her out: http://totalxr.com/gallery
it's gotta be getting messed up with the other javascript.
Posts: 16504
Ah simple, you're missing the closing tag for <script> You also need to specify the path to your script.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 12
the script is in the same folder as the document. but yeah, that would certainly help if i closed the script. lol
Posts: 16504
No, it's not. The way you have it, the script would need to be located in http://totalxr.com/gallery
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 12
oh, right, because it's main.php pulling from theme.tpl. i'm learning. lol
that fixed it, closing the script. thank you for your time on this.