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 -->
<!-->
 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-03-09 20:26

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

 
dj zen masta k

Joined: 2009-03-09
Posts: 12
Posted: Mon, 2009-03-09 20:51

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.

 
dj zen masta k

Joined: 2009-03-09
Posts: 12
Posted: Mon, 2009-03-09 21:40

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.

 
dj zen masta k

Joined: 2009-03-09
Posts: 12
Posted: Mon, 2009-03-09 21:55

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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-03-09 22:01

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

 
dj zen masta k

Joined: 2009-03-09
Posts: 12
Posted: Mon, 2009-03-09 22: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.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-03-09 22:35

Ah simple, you're missing the closing tag for <script> You also need to specify the path to your script.

<script type="text/javascript" src="Enter/Correct/Path/Here/swf2007.js"></script>
</head>
<body class="gallery">	    
<div id="gallery" class="gecko">
<div id="gsHeader">

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
dj zen masta k

Joined: 2009-03-09
Posts: 12
Posted: Mon, 2009-03-09 22:50

the script is in the same folder as the document. but yeah, that would certainly help if i closed the script. lol

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-03-09 22:54
Quote:
the script is in the same folder as the document

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

 
dj zen masta k

Joined: 2009-03-09
Posts: 12
Posted: Mon, 2009-03-09 23:06

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.