vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Menu Control (https://vborg.vbsupport.ru/showthread.php?t=104725)

Marky 02-13-2006 08:27 PM

Quote:

Originally Posted by ncangler
Just to make sure...when you say "turned the menu on in the main options display?", you mean as in the attached image correct?

Yes that is correct. :)
I gotta go offline now - so i'll help in the morning

Saxon 02-14-2006 11:23 AM

Quote:

Originally Posted by Marky
Yup it can be done if enough people would like that as an option :)

Yes please. I too would like the option of only certain links opening in new window rather than all. Cheers.

mfizzel 02-17-2006 07:40 PM

I like it, thanks!!

ncangler 02-18-2006 01:55 AM

Marky, Any development on the problem with the 1.3 menu not showing up when I change the code in navbar template? Thanks!

Quote:

Originally Posted by Marky
Yes that is correct. :)
I gotta go offline now - so i'll help in the morning


Smiry Kin's 02-18-2006 01:56 AM

Quote:

Originally Posted by ncangler
Marky, Any development on the problem with the 1.3 menu not showing up when I change the code in navbar template? Thanks!

change what code, and what you change it to?

ncangler 02-18-2006 01:58 AM

Is there anyway to add a navbar menu link that opens in a new window now? I only want to open a new window on a couple of links out of about 20. Any input is most appreciated!

ncangler 02-18-2006 02:03 AM

The second step of the 1.2 to 1.3 upgrade is to change the code in the Navbar template as indicated here:
Quote:

2. Go to 'Style Manager' and in the 'Navbar' template:

Find:

<!-- Menu Control - Version 1.2 - Created by Marky (MgArcade.com) -->
<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="$vboptions[menu_status]">
<td class="vbmenu_control"><a href="http://{$vboptions['menu_link_one']}">
<font color="#{$vboptions['menu_item_one_colour']}">{$vboptions['menu_item_one']}</font></a></td>
<td class="vbmenu_control"><a href="http://{$vboptions['menu_link_two']}">
<font color="#{$vboptions['menu_item_two_colour']}">{$vboptions['menu_item_two']}</a></td>
<td class="vbmenu_control"><a href="http://{$vboptions['menu_link_three']}">
<font color="#{$vboptions['menu_item_three_colour']}">{$vboptions['menu_item_three']}</a></td>
<td class="vbmenu_control"><a href="http://{$vboptions['menu_link_four']}">
<font color="#{$vboptions['menu_item_four_colour']}">{$vboptions['menu_item_four']}</a></td>
<td class="vbmenu_control"><a href="http://{$vboptions['menu_link_five']}">
<font color="#{$vboptions['menu_item_five_colour']}">{$vboptions['menu_item_five']}</a></td>
<td class="vbmenu_control"><a href="http://{$vboptions['menu_link_six']}">
<font color="#{$vboptions['menu_item_six_colour']}">{$vboptions['menu_item_six']}</a></td>
<td class="vbmenu_control"><a href="http://{$vboptions['menu_link_seven']}">
<font color="#{$vboptions['menu_item_seven_colour']}">{$vboptions['menu_item_seven']}</a></td>
<td class="vbmenu_control"><a href="http://{$vboptions['menu_link_eight']}">
<font color="#{$vboptions['menu_item_eight_colour']}">{$vboptions['menu_item_eight']}</a></td>
<td class="vbmenu_control"><a href="http://{$vboptions['menu_link_nine']}">
<font color="#{$vboptions['menu_item_nine_colour']}">{$vboptions['menu_item_nine']}</a></td></if>
</tr>
</table>
</div>
<!-- / #End Menu Control -->

And Replace with:
$menucontrol
When I made this change the second menu did not show up. I had to add the code back and delete '$menucontrol'.

forte 02-18-2006 03:06 AM

Is it possible to add more links than 9?

Marky 02-18-2006 08:13 AM

Quote:

Originally Posted by forte
Is it possible to add more links than 9?

Not yet - Version 2.0 will include Admin control of the original Navbar!

Quote:

Originally Posted by ncangler
When I made this change the second menu did not show up. I had to add the code back and delete '$menucontrol'.

Have you turned the menu online because I believe it is defaulted to off.
If your still having trouble, contact me through PM and i'll tell ya my msn and i'll do it for you :)

Marky 02-18-2006 04:34 PM

If you'd like to change the window options for each settings you can edit the template to the code below for the time being:

Code:

<!-- Menu Control - Version 1.3 Final -->
<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="$vboptions[menu_status]">
                <td class="vbmenu_control"><a target="targetwindowlink1" href="http://{$vboptions['menu_link_one']}">
        <if condition="$vboptions[menu_image_switch]"><img border="0" src="{$vboptions['menu_image_one']}">  </if><if condition="$vboptions[menu_colour_switch]"><font color="#{$vboptions['menu_item_one_colour']}"></if>{$vboptions['menu_item_one']}<if condition="$vboptions[menu_colour_switch]"></font></if></a></td>
                <td class="vbmenu_control"><a target="targetwindowlink2" href="http://{$vboptions['menu_link_two']}">
                <if condition="$vboptions[menu_image_switch]"><img border="0" src="{$vboptions['menu_image_two']}">  </if><if condition="$vboptions[menu_colour_switch]"><font color="#{$vboptions['menu_item_two_colour']}"></if>{$vboptions['menu_item_two']}<if condition="$vboptions[menu_colour_switch]"></font></if></a></td>
                <td class="vbmenu_control"><a target="targetwindowlink3" href="http://{$vboptions['menu_link_three']}">
                <if condition="$vboptions[menu_image_switch]"><img border="0" src="{$vboptions['menu_image_three']}">  </if><if condition="$vboptions[menu_colour_switch]"><font color="#{$vboptions['menu_item_three_colour']}"></if>{$vboptions['menu_item_three']}<if condition="$vboptions[menu_colour_switch]"></font></if></a></td>
                <td class="vbmenu_control"><a target="targetwindowlink4" href="http://{$vboptions['menu_link_four']}">
                <if condition="$vboptions[menu_image_switch]"><img border="0" src="{$vboptions['menu_image_four']}">  </if><if condition="$vboptions[menu_colour_switch]"><font color="#{$vboptions['menu_item_four_colour']}"></if>{$vboptions['menu_item_four']}<if condition="$vboptions[menu_colour_switch]"></font></if></a></td>
                <td class="vbmenu_control"><a target="targetwindowlink5" href="http://{$vboptions['menu_link_five']}">
                <if condition="$vboptions[menu_image_switch]"><img border="0" src="{$vboptions['menu_image_five']}">  </if><if condition="$vboptions[menu_colour_switch]"><font color="#{$vboptions['menu_item_five_colour']}"></if>{$vboptions['menu_item_five']}<if condition="$vboptions[menu_colour_switch]"></font></if></a></td>
                <td class="vbmenu_control"><a target="targetwindowlink6" href="http://{$vboptions['menu_link_six']}">
                <if condition="$vboptions[menu_image_switch]"><img border="0" src="{$vboptions['menu_image_six']}">  </if><if condition="$vboptions[menu_colour_switch]"><font color="#{$vboptions['menu_item_six_colour']}"></if>{$vboptions['menu_item_six']}<if condition="$vboptions[menu_colour_switch]"></font></if></a></td>
                <td class="vbmenu_control"><a target="targetwindowlink7" href="http://{$vboptions['menu_link_seven']}">
                <if condition="$vboptions[menu_image_switch]"><img border="0" src="{$vboptions['menu_image_seven']}">  </if><if condition="$vboptions[menu_colour_switch]"><font color="#{$vboptions['menu_item_seven_colour']}"></if>{$vboptions['menu_item_seven']}<if condition="$vboptions[menu_colour_switch]"></font></if></a></td>
                <td class="vbmenu_control"><a target="targetwindowlink8" href="http://{$vboptions['menu_link_eight']}">
                <if condition="$vboptions[menu_image_switch]"><img border="0" src="{$vboptions['menu_image_eight']}">  </if><if condition="$vboptions[menu_colour_switch]"><font color="#{$vboptions['menu_item_eight_colour']}"></if>{$vboptions['menu_item_eight']}<if condition="$vboptions[menu_colour_switch]"></font></if></a></td>
                <td class="vbmenu_control"><a target="targetwindowlink9" href="http://{$vboptions['menu_link_nine']}">
                <if condition="$vboptions[menu_image_switch]"><img border="0" src="{$vboptions['menu_image_nine']}">  </if><if condition="$vboptions[menu_colour_switch]"><font color="#{$vboptions['menu_item_nine_colour']}"></if>{$vboptions['menu_item_nine']}<if condition="$vboptions[menu_colour_switch]"></font></if></a></td></if>
        </tr>
        </table>
</div>
<!-- / #End Menu Control - Version 1.3 Final -->

Just open up the template 'menucontrol', edit the code in bold to the menu option, for example _blank (Different options are included in the addon read me in the zip file :)) and copy the code and overwrite the current code in the template.

Hope this helps until I put it into the next version :)

Thanks,

Marky


All times are GMT. The time now is 10:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01368 seconds
  • Memory Usage 1,769KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete