View Single Post
  #4  
Old 01-21-2008, 06:28 PM
slappy slappy is offline
 
Join Date: Apr 2003
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Generally, things in the navbar, in the form of actual "buttons," go in the section which starts with:

Code:
<!-- nav buttons bar -->

For example, the first entry in a stock 3.6.8 navbar for this section is:

<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>
This is the code for the "button" which appears on the far left of the navbar as "Register" if you are not logged in, and "UserCP" if you are logged in.

Unless you have Projects and/or Blogs installed, the next "stock" button would be:

Code:
<!--    <td class="vbmenu_control"><a href="faq.php?$session[sessionurl]" ">$vbphrase[faq]</a></td> -->
And so on across the list.

What you should notice, is that each entry has the following configuration: a reference to a .php file and a $vbphrase.

Code:
<td class="vbmenu_control"><a href="faq.php?$session[sessionurl]" accesskey="5">$vbphrase[faq]</a></td> -->
This one happens to be to the FAQ.

I would assume, without having seen your Arcade addon, that it would have similar language to add it's link to the navbar. This is just a sample, but probably looks something similar to your navbar code:

Code:
<td class="vbmenu_control"><a href="arcade.php$session[sessionurl_q]">$vbphrase[Arcade]</a></td>
Technically, I would believe you could put your navbar link to the Arcade in any position along the navbar that you want, as long as the <a href=" finds your php file for the Arcade and the $vbphrase listing contains the "text" which shows on the navbar.

You can adjust it's position shown on the navbar by where you place it among the existing code list of "buttons" already on the navbar.

Again, this is just general information on how the navbar is configured, without seeing the code for your Arcade plugin.

Hope that helps.

Regards,
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01126 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete