View Full Version : Adding external links in the navbar
dutchbb
06-20-2007, 09:48 PM
I know how to do it, but the links are not clickable?
When I view the source I see this strange html coming from nowhere???
This is it (look at the style):
<div class="vbmenu_popup" id="adv1menu_menu" style="position: absolute; z-index: 50; clip: rect(auto, auto, auto, auto); left: 765px; top: 191px; display: none;">
How does that come there I never wrote that and it's not in the template!?
Dismounted
06-21-2007, 05:41 AM
Can you post what you're putting into the template?
dutchbb
06-21-2007, 07:39 PM
Can you post what you're putting into the template?
Ok, this for the pop up menu:
<if condition="$bbuserinfo[usergroupid] == 6">
<!-- admin links menu -->
<div class="vbmenu_popup" id="navbar_adminlinks_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">Admin Panels</td></tr>
<tr><td class="vbmenu_option"><a href="http://www.mydomain.com/awstats/" target="blanc">Awstats</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.mydomain.com:2222/" target="blanc">DirectAdmin</a></td></tr>
<tr><td class="thead">vBulletin - Mijn forum</td></tr>
<tr><td class="vbmenu_option"><a href="http://www.mydomain.com/forumtest/index.php" target="blanc">Test Forum</a></td></tr>
<tr><td class="vbmenu_option"><a href="https://vborg.vbsupport.ru/" target="blanc">vBulletin.org</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.vbulletin.com/forum/" target="blanc">vBulletin.com</a></td></tr>
<tr><td class="vbmenu_option"><a href="http://www.big-boards.com/highlight/1314/" target="blanc">Big Boards</a></td></tr>
</table>
</div>
<!-- / admin links menu -->
</if>
This for the navbar link:
<if condition="$bbuserinfo[usergroupid] == 6"><td id="navbar_adminlinks" class="vbmenu_control"><a href="$show[nojs_link]#navbar_adminlinks">Admin Links</a><script type="text/javascript">vbmenu_register("navbar_adminlinks");</script></td></if>
Again: internal links (same domain) to pages work perfectly, it's external links that gives me this error.
Dismounted
06-22-2007, 06:04 AM
target="blanc" should be target="_blank".
dutchbb
06-22-2007, 02:22 PM
Well you are right that is the correct code , but that wasn't it but it works now anyway. I'm not sure what I have done different to make it work though...
Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.