vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Add-On Releases - Manual Add Navbar Links [Plus Image Menu] (https://vborg.vbsupport.ru/showthread.php?t=246687)

gopherhockey 07-20-2010 09:24 PM

Quote:

Originally Posted by SoltanWorld (Post 2071921)
you can use this code

Code:

        <vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
            <li class="selected"><a class="navtab" href="link">title</a>
        <vb:else />
            <li><a class="navtab" href="link">title</a></li>
        </vb:if>



Thanks... only issue is the link is highlighted along with Forum now. Its highlighted almost everywhere I go within the forums but isn't if I go to my wiki or blog tabs.

SoltanWorld 07-22-2010 04:35 AM

You should use something like this for your mod

Code:

<vb:if condition="$vbulletin->options['selectednavtab'] == 'ldm'">
ldm is the name of the hack "Links and Download Manager"
Just place this with var you have

Jay Lee 07-22-2010 07:07 AM

Quote:

Originally Posted by SoltanWorld (Post 2071383)
Thanks dear,I think this would works :

Code:

<li><a class="navtab" href="YourLink">Link Title</a>
<ul class="floatcontainer">
                                        {vb:raw template_hook.navbar_start}
                                       
                                                <li><a href="link">title</a></li>
                               
                                        {vb:raw template_hook.navbar_end}
                                </ul>
</li>

but when i check the original code of navbar template, it contains some raw like

{vb:raw template_hook.navbar_after_faq}
{vb:raw template_hook.navbar_after_pm}

and i think for popup menu it would work too

Code:

<li><a class="navtab" href="YourLink">Link Title</a>
<li class="popupmenu">
                                                <a href="javascript://" class="popupctrl">navbar link title</a>
                                                <ul class="popupbody popuphover">
                                                        <li><a href="link">sub menu title 1</a></li>
                                                        <li><a href="link">sub menu title 2</a></li>
                                                        <li><a href="link">sub menu title 3</a></li>
                                                </ul>
                                        </li>
</li>


Thanks for the code. Although it doesn't work yet, I think it's a good start. What happens is that the link appears over the other links. I'll do some more testing before I post more questions. This thing has been driving me crazy the last few days. But I still need to get it done, so with your help I think eventually I'll get there! :)

zonaenlinea 09-12-2010 07:25 PM

for 4.0.6 ?

SoltanWorld 09-19-2010 05:18 AM

You can edit this in all 4.0.x versions.

pportuese 09-23-2010 04:42 PM

Where do you add the code for this? Where in style manager?

SoltanWorld 09-30-2010 12:40 PM

yeah : in navbar template


All times are GMT. The time now is 03:39 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.00990 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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