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 05-02-2006 05:00 PM

Quote:

Originally Posted by Boofo
Any add this to the top of the navbar instead of under the other one? ;)

Instructions for this are included in the zip file :)

Quote:

Originally Posted by patsalko
hello! great hack
however where do you put the images in order for them to show on the menu???
the documentation does not say

TIA

Do you mean where you choose what images are on what links? Because each link gets a different image URL link, it is in the admincp options :)

ncangler 05-02-2006 05:17 PM

Marky, Thank you for this addon. It has really helped me develop more options for my forums. I have noticed one small problem that I am hoping you can help me with. When you select "New Posts" from the vBulletin navbar and there are no new posts then the additional navbar does not appear. Do you know how I can adjust the code to have the second navbar show up in every instance? Thanks.
Randy

bashy 05-03-2006 10:26 PM

Hi peeps
Dont matter, sorted it :)

mkdevo 05-04-2006 02:25 PM

Quote:

Originally Posted by mkdevo
marky - quick question...

when you position the new menu at the top of the navbar, it 'doubles up' the border between the menu and the navbar, making that border thicker than the one between the bottom of the navbar and the bottom menu.

any idea how to fix? thanks..

marky - any idea about this? still happens with the newest version. see pic below..

bada_bing 05-04-2006 03:21 PM

Quote:

Originally Posted by bada_bing
I have installed this hack on my other site but it wont display. I am using a different skin then the original VB one. here is my navbar. Where and what code do I place to make this show up. Yes its enabled in admin cp


<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(gray scale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
<br />
<div class="breadcrumb" nowrap="nowrap"><a href="#" onclick="history.back(1); return false;" style="float: $stylevar[left]"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="" style="float: $stylevar[right]" /><div class="breadcrumbtext" style="float: $stylevar[right]"><span class="navbar"><span class="smallfont">

<if condition="$show['member']">

<if condition="$bbuserinfo['pmunread'] AND $show['pmstats']"><a href="private.php$session[sessionurl_q]"><img src="$stylevar[imgdir_button]/pmnew.gif" alt="$vbphrase[private_messages]" border="0" /></a></if>
<if condition="$show['popups']">
<a href="$show[nojs_link]#memberinfo" title="<phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase>" id="memberinfo">$bbuserinfo[username]</a> <script type="text/javascript"> vbmenu_register("memberinfo"); </script>
<else />
<a href="usercp.php$session[sessionurl_q]" title="$vbphrase[user_control_panel]">$bbuserinfo[username]</a></if>

<else />
<if condition="$show['popups']">
<a href="$show[nojs_link]#login" title="$vbphrase[enter_username_to_login_or_register]" id="login"><if condition="$show['registerbutton']">$vbphrase[register] / </if>$vbphrase[log_in]</a> <script type="text/javascript"> vbmenu_register("login"); </script>
<else />
<if condition="$show['registerbutton']">
<a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></if>
</if>

</if>


</span></span>
</div>

<if condition="is_array($navbits)">
<div class="breadcrumbtext"><span class="navbar" ><strong><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></strong> $navbits[breadcrumb]
<if condition="THIS_SCRIPT == 'showthread' or THIS_SCRIPT == 'newreply' or THIS_SCRIPT == 'editpost' or THIS_SCRIPT == 'private'"><else />
$navbits[lastelement]</if></span></div>
<else />
<div class="breadcrumbtext" nowrap="nowrap"><span class="navbar"><strong>$vboptions[bbtitle]</strong></span></div>
</if>

</div>


<br />
<if condition="!$show['popups']">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td valign="top">

<if condition="$show['guest']">
<!-- guest welcome message -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
<tr>
<td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</tr>
<tr>
<td class="alt1">
<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
</td>
</tr>
</table>
<!-- / guest welcome message -->
</if>

</td>
<if condition=" $show['guest']">
<td style="padding: $stylevar[cellpadding];">&nbsp;</td>
<td valign="top">
<!-- login -->
<div align="$stylevar[right]">
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="250">
<tr>
<td class="thead" colspan="3" nowrap="nowrap"><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></td>
</tr>
<tr>
<!-- login form -->



<td class="alt1" valign="top" nowrap="nowrap">
<input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" />
</td>

<td class="alt2" valign="top" nowrap="nowrap">
<input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" />
</td>
<td class="alt1" valign="top" nowrap="nowrap">
<input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" style="visibility:vboptions[rememberme]" checked="checked" />
</td>
<!-- / login form -->

</tr>
</table><input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form></div><!-- / login -->
</td>
<else />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" ><tr>
<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>

</div>
</td></tr></table>


</if>
</tr>
</table>
<br />
</if>



<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<if condition="THIS_SCRIPT == 'showthread'">
<tr>
<td class="tcat" width="100%"><div style="float: $stylevar[right]">
<if condition="$vboptions['allowthreadedmode']">
<!-- ************************************************** ** -->

<!-- thread display mode menu -->

<if condition="$show['linearmode']">
<img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear_on.gif" alt="$vbphrase[linear_mode]" />
<else />
<a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=linear$highlightwords#post $FIRSTPOSTID"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[switch_to_linear_mode]" border="0" /></a>
</if>

<if condition="$show['hybridmode']">
<img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid_on.gif" alt="$vbphrase[hybrid_mode]" />
<else />
<a href="showthread.php?$session[sessionurl]mode=hybrid&amp;t=$thread[threadid]$highlightwords"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[switch_to_hybrid_mode]" border="0" /></a>
</if>

<if condition="$show['threadedmode']">
<img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded_on.gif" alt="$vbphrase[threaded_mode]" /> <else />
<a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=threaded$highlightwords#po st$FIRSTPOSTID"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[switch_to_threaded_mode]" border="0" /></a>
</if>


<!-- / thread display mode menu -->


</if>
</div>
$vbphrase[thread]: $thread[title]
</td>
</tr>
</if>
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
<else />
<if condition="THIS_SCRIPT == 'showthread'">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tr>
<td class="tcat" width="100%">
<div style="float: $stylevar[right]">
<if condition="$vboptions['allowthreadedmode']">
<!-- ************************************************** ** -->

<!-- thread display mode menu -->

<if condition="$show['linearmode']">
<img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear_on.gif" alt="$vbphrase[linear_mode]" />
<else />
<a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=linear$highlightwords#post $FIRSTPOSTID"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_linear.gif" alt="$vbphrase[switch_to_linear_mode]" border="0" /></a>
</if>

<if condition="$show['hybridmode']">
<img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid_on.gif" alt="$vbphrase[hybrid_mode]" />
<else />
<a href="showthread.php?$session[sessionurl]mode=hybrid&amp;t=$thread[threadid]$highlightwords"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_hybrid.gif" alt="$vbphrase[switch_to_hybrid_mode]" border="0" /></a>
</if>

<if condition="$show['threadedmode']">
<img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded_on.gif" alt="$vbphrase[threaded_mode]" /> <else />
<a href="showthread.php?$session[sessionurl]p=$FIRSTPOSTID&amp;mode=threaded$highlightwords#po st$FIRSTPOSTID"><img class="inlineimg" src="$stylevar[imgdir_button]/mode_threaded.gif" alt="$vbphrase[switch_to_threaded_mode]" border="0" /></a>
</if>


<!-- / thread display mode menu -->


</if>
</div>
$vbphrase[thread]: $thread[title]
</td>
</tr>

</table><br /></if>
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="text" class="bginput" name="query" size="20" />&nbsp;$gobutton<br />
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">

<!-- memberinfo -->
<div class="vbmenu_popup" id="memberinfo_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">
<phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase>&nbsp;&nbsp;
<if condition="is_browser('safari')"><input type="submit" onclick="window.location=\'usercp.php$session[sessionurl_q]\'; return false" class="button" value="$vbphrase[user_cp]" /><else />
( <a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a> )</if></td>
</tr>
<tr>
<td class="alt1">
<span class="smallfont"><phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if></span>
</td>
</tr>
<tr><td class="vbmenu_option"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a>
</td></tr>
</table>
</div>
<!-- / memberinfo -->
<else />
<!-- login -->
<div class="vbmenu_popup" id="login_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead"><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></td>
</tr>
<tr>
<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[username]</td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" style="visibility:vboptions[rememberme]" checked="checked" /></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[password]</td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>
</tr>
<if condition="$show['registerbutton']">
<tr><td class="vbmenu_option"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a>

</td></tr></if>
</table>
</div>
<!-- / login -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=n o,menubar=no,toolbar=no,scrollbars=yes,resizable=y es,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a>
</td></tr>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>

anyone before i uninstall

Marky 05-04-2006 05:59 PM

Quote:

Originally Posted by bada_bing
anyone before i uninstall

PM me your MSN and I will personally take a look for you as soon as I can. Sorry for the delay.

Quote:

Originally Posted by mkdevo
marky - any idea about this? still happens with the newest version. see pic below..

I'd also like to help you by taking a look at your admincp, so PM me your MSN so we can talk easier ;)

As I've mentioned in my latest post in my Google Banner Manage modification, I have GCSE examinations coming up very fast indeed, and so progress on the next version will continue in about a month, im very sorry for the delay in the update, but Im sure your going to love the new features :p

Thanks,

Marky

Dr.Viggy 05-05-2006 03:11 PM

this is awesome. makes it easier to control navigation and keeps the main navbar uncluttered. thanks alot for this.

*clicks install

william5 05-05-2006 10:23 PM

Awesome! I've been looking around for something like this.

*clicks install

Marky 05-07-2006 08:00 PM

Glad you like ;)

Titania 05-11-2006 03:14 AM

A quick tip if you are using images and want less than nine links. Create a 1 x 1 pixel transparent gif image and use that for the unwanted links. Make sure there is no text in that link either. Just leave all fields (except for the 1 px image field!) blank. :)
See attached pic.

Good luck with your exams Marky :)


All times are GMT. The time now is 08:58 AM.

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.01446 seconds
  • Memory Usage 1,850KB
  • 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
  • (6)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