Navbar and flash

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pope Viper
    Senior Member
    • Mar 2006
    • 825

    Navbar and flash

    I've got a flash animation that contains all the main nav buttons (user CP, FAQ,etc), I would I intergrate this into my site??
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Edit this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Navigation / Breadcrumb Templates -> navbar

    This is the block of code that represents the navlinks:

    Code:
    <!-- nav buttons bar -->
    <div align="center">
    	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
    	<tr align="center">
    		<if condition="$show['member']">
    			<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
    		</if>
    		<if condition="$show['registerbutton']">
    			<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
    		</if>
    		<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
    		<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
    		<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
    		<if condition="$show['popups']">		
    			<if condition="$show['searchbuttons']">
    				<if condition="$show['member']">
    				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
    				<else />
    				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
    				</if>
    				<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
    			</if>
    			<if condition="$bbuserinfo['userid']">
    				<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>		
    			</if>
    		<else />		
    			<if condition="$show['searchbuttons']">
    				<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
    				<if condition="$show['member']">
    				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
    				<else />
    				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
    				</if>
    			</if>
    			<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
    			<if condition="$bbuserinfo['userid']">			
    				<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>			
    			</if>			
    		</if>
    		<if condition="$bbuserinfo['userid']">
    			<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
    		</if>
    	</tr>
    	</table>
    </div>
    <!-- / nav buttons bar -->
    You can embed a flash object by using code like this:

    Code:
    <embed src="[color=red]path/to/flash.swf[/color]" />

    Comment

    • Pope Viper
      Senior Member
      • Mar 2006
      • 825

      #3
      Arghhh. Well, here's my Navbar code


      No matter where I insert the embed src comment, I get a white box, followed by black.


      Well, I think I figured out one of my problems, I created a nav bar as one complete piece, whereas I should have created an individual animation to replace each button.

      Knowing that, how would I incorporate each button/animation to the navbar?
      Last edited by Pope Viper; Mon 10 Jul '06, 11:45am.

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        You would need to embed each and every flash object. Duplicate the code I posted.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...