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 03-10-2006 05:39 PM

Quote:

Originally Posted by ravenes
Marky, the colors switch is not working for me...can you give me a hand please?

Sure PM me your MSN address and i'll help you out :)

Ashiro 03-10-2006 06:28 PM

Can I make a suggestion?

Rather than just allowing the colour to be changed. Allow people to add their own html styling. You know usergroup titles can have html styling and is provided by having two text boxes that allow you to enter begin and end tags?

So have two boxes for the begin and end tag that could allow someone to do something like this:

Code:

FIRST BOX:
<span style="color:FF0000; font-family:arial; font-weight:normal;">

SECOND BOX:
</span>

That way you aren't just allowing them to change the colour of that menu item but the whole style of it.

Those two values would obviously be added either side of the link text and url.

If you need any help with this then let me know.

Smiry Kin's 03-12-2006 06:47 PM

is is possible to set a dimentsion for say a pop up. e.g for chat, i dont want it to be full page, i want it to be half or sumit?? please help dude :P

brvheart 03-20-2006 06:39 PM

Quote:

Originally Posted by Marky
Sure PM me your MSN address and i'll help you out :)

did you get the pm?

VTXCafe.com 03-21-2006 04:43 AM

I have a question, I read thru all the pages and didn't see it answered.

I have 5 links I'm using, don't need all 9 right now. I want to use the image function but when I turn the image function it adds the red X for the link I'm not using. I have the other 4 links (6-9) blank, is there a way to use images in the 5 links I'm using without having the X's?

Marky 03-21-2006 03:34 PM

Quote:

Originally Posted by ravenes
did you get the pm?

I just got your PM :)
Replied too :)

Quote:

Originally Posted by VTXCafe.com
I have 5 links I'm using, don't need all 9 right now. I want to use the image function but when I turn the image function it adds the red X for the link I'm not using. I have the other 4 links (6-9) blank, is there a way to use images in the 5 links I'm using without having the X's?

Wow... I can't believe I've not thought of that! Sorry, this is not included in this version, but I will include it in the next version!

On the same subject, I have decided since I need to add so many new features to this modification, I will be bringing out version 1.4 before I bring out 2.0.
So the next version will be 1.4 Final. You can expect this update to be released just after I have opened vBDiscussion.com.

Thanks,

Marky

bada_bing 03-27-2006 07:28 PM

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>

bloodwrath 04-03-2006 02:33 AM

awesome
installed

patsalko 05-01-2006 11:29 PM

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

Boofo 05-01-2006 11:34 PM

Any add this to the top of the navbar instead of under the other one? ;)


All times are GMT. The time now is 07:31 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.01685 seconds
  • Memory Usage 1,851KB
  • 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
  • (4)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