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)
-   -   Mini Mods - CMS - Sections menu navbar as pop-up (https://vborg.vbsupport.ru/showthread.php?t=246837)

napy8gen 07-17-2010 10:00 PM

CMS - Sections menu navbar as pop-up
 
1 Attachment(s)
I think this mod is useful for those who has many sections, the navbar cannot hold to much sections, that you ended up picking in the forntpage editor which sections can sit in the navbar.

please see screenshot.

style manager> style name>edit templates> vbulletin cms templates> vbcms_navbar_link

replace all:

HTML Code:

<vb:if condition="$vboptions['selectednavtab'] == 'vbcms'">
<li class="selected">
        <vb:if condition="$vboptions['vbcms_url']">
                <a class="navtab" href="{vb:raw vboptions.vbcms_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
        <vb:else />
                <a class="navtab" href="{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
        </vb:if>
        <ul class="floatcontainer">
                {vb:raw template_hook.vbcms_navbar_start}
                <vb:if condition="$links">

<li class="popupmenu" id="yui-gen0">
<a accesskey="6" class="popupctrl" href="javascript://" id="yui-gen2">Sections</a>
<ul class="popupbody" id="yui-gen1" style="display: none; left: 0px; top: 23px;">
                                                       
<vb:each from="links" value="link">
                                <li><a href="{vb:raw link.url}">{vb:raw link.title}</a></li>
                        </vb:each>
                <vb:else />
                        <li class="hidden">&nbsp;</li>
                </vb:if>
{vb:raw template_hook.vbcms_navbar_end}
                                                       
</ul>
</li>

               
        </ul>
</li>
<vb:else />
        <li>
        <vb:if condition="$vboptions['vbcms_url']">
                <a class="navtab" href="{vb:raw vboptions.vbcms_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
        <vb:else />
                <a class="navtab" href="{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
        </vb:if>
        </li>
</vb:if>


Lon 07-21-2010 01:04 AM

100% working and Marking as Installed <3

Any possibility of adding another menu to the right for custom links?

Tivar 08-11-2010 01:09 AM

Is it possible to add the article counter behind?

Documentation(5)
News(10)
...
.....

napy8gen 08-11-2010 05:37 PM

Quote:

Originally Posted by Lon (Post 2072244)
100% working and Marking as Installed <3

Any possibility of adding another menu to the right for custom links?

here is the code . same location as above, only working at cms home.
PHP Code:


<vb:if condition="$vboptions['selectednavtab'] == 'vbcms'">
<
li class="selected">
    <
vb:if condition="$vboptions['vbcms_url']">
        <
class="navtab" href="{vb:raw vboptions.vbcms_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
    <
vb:else />
        <
class="navtab" href="{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
    </
vb:if>
    <
ul class="floatcontainer">
        {
vb:raw template_hook.vbcms_navbar_start}
        <
vb:if condition="$links">

<
li class="popupmenu" id="yui-gen0">
<
a accesskey="6" class="popupctrl" href="javascript://" id="yui-gen2">Sections</a>
<
ul class="popupbody" id="yui-gen1" style="display: none; left: 0px; top: 23px;">
                            
<
vb:each from="links" value="link">
                <
li><a href="{vb:raw link.url}">{vb:raw link.title}</a></li>
            </
vb:each>
        <
vb:else />
            <
li class="hidden">&nbsp;</li>
        </
vb:if>
{
vb:raw template_hook.vbcms_navbar_end}
                            
</
ul>
</
li>

<!-- 
start second custom menu at cms -->
<
li class="popupmenu" id="yui-gen0">
<
a accesskey="6" class="popupctrl" href="javascript://" id="yui-gen2">My Custom Menu At the CMS index </a>
<
ul class="popupbody" id="yui-gen1" style="display: none; left: 0px; top: 23px;">
                            
<
li><a href="{vb:raw link.url}">Custom Link One</a></li>
<
li><a href="{vb:raw link.url}">Custom Link One</a></li>
<
li><a href="{vb:raw link.url}">Custom Link One</a></li>
<
li><a href="{vb:raw link.url}">Custom Link One</a></li>
<
li><a href="{vb:raw link.url}">Custom Link One</a></li>
                        
</
ul>
</
li>
<!-- 
end second custom menu at cms -->
        
    </
ul>
</
li>
<
vb:else />
    <
li>
    <
vb:if condition="$vboptions['vbcms_url']">
        <
class="navtab" href="{vb:raw vboptions.vbcms_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
    <
vb:else />
        <
class="navtab" href="{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a>
    </
vb:if>
    </
li>
</
vb:if> 


napy8gen 08-11-2010 05:38 PM

Quote:

Originally Posted by Tivar (Post 2081964)
Is it possible to add the article counter behind?

Documentation(5)
News(10)
...
.....

I cannot do this I am not a programmer. I am just an advanced designer

Didzi 08-15-2012 02:40 PM

Update for vB 4.2 ?

XLCR GODFATHER 02-01-2013 01:41 AM

Quote:

Originally Posted by Didzi (Post 2357146)
Update for vB 4.2 ?

Agree.

Would love to be able to do this in 4.2

ahobilam 06-13-2013 04:10 PM

Is there any mod or article to create a jquery menu for Forums like this one:
https://vborg.vbsupport.ru/

Toorak Times 06-24-2013 05:41 PM

Thanks for this, someone thinking of CMS...4.2.1...please?


All times are GMT. The time now is 08:59 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.03531 seconds
  • Memory Usage 1,770KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete